External C# Function: BaileyWeb.University.Data.Modules
The External C# Function class Modules contains the following public methods used across the Inline C# Functions related to the output of module data (Page Datafolder BaileyWeb.University.Modules) as XML.
Files
The following files are supplied with the University Package:
- ~/App_Code/BaileyWeb/University/Data/Modules.cs
Public Methods
Method: | Description: | Output type: |
---|---|---|
ListModules() |
Outputs a collection of flat record nodes. Used to show a list of modules on the website. | XElement |
ListModulesEnumerable() |
Outputs a collection of flat record nodes. Used to show a list of modules on the website, or for searches. | IEnumerable<XElement> |
ListModulesFromCSV(string ModulesCSV) |
Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of modules within a record page on the website. | XElement |
ListModuleDescendantsFromModuleId(Guid ModuleId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of modules within a record page on the website. | XElement |
ListModulesFromEducationLevelId(Guid? EducationLevelId) |
Outputs a collection of flat record nodes from a GUID Id value. Used to show sub-lists of modules within a record page on the website. | XElement |
GetModuleConcise(Guid ModuleId) |
Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a module within a record page on the website. | XElement |
GetModuleFull(Guid ModuleId) |
Outputs a single nested record node. Contains all fields from the record, with Data References often shown in sub-nodes. Used to show record of a module on the website. | XElement |
AssembleModuleTitle(string ModuleCode, string ModuleName, string ModuleLevelName, string ModuleTypeName, int Credits) |
Combines input parameters and outputs the title of a module. | String |
AssembleModuleURL(string ModuleCode) |
Combines input parameters and outputs the URL of a module. | String |