External C# Function: BaileyWeb.University.Data.Subjects

The External C# Function Subjects class contains methods used across the Inline C# Functions related to the output of subject data (Page Datafolder BaileyWeb.University.Subjects) as XML.

Files

The following files are supplied with the University Package:

  • ~/App_Code/BaileyWeb/University/Data/Subjects.cs

Methods

Method: Description: Output type:
GetSubjectsListLong(string SubjectsCSV) From a comma-separated values list of Subject.Id GUID values, outputs a collection of XML nodes containing full data for specified subjects. XElement
GetSubjectsListShort(string SubjectsCSV) From a comma-separated values list of Subject.Id GUID values, outputs a collection of XML nodes containing concise data for specified subjects. XElement
GetSubjectsByModuleQueryShort(Guid ModuleId) From a Module.Id GUID value, outputs a collection of XML nodes containing concise data for all subjects that include the specified module. XElement
GetSubjectsByPersonQueryShort(Guid PersonId) From a Person.Id GUID value, outputs a collection of XML nodes containing concise data for all subjects taught by the specified person. XElement
AssembleSubjectTitle(string SubjectName, string SubjectLevelName) Combines input parameters and outputs the title of a subject. String
AssembleSubjectURL(string SubjectCode) Combines input parameters and outputs the URL of a subject. String

Updated: 18 March 2020