|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilStudyProgrammeType. More...
Inheritance diagram for ilStudyProgrammeType:
Collaboration diagram for ilStudyProgrammeType:Public Member Functions | |
| __construct ($primary_key=0) | |
| getTitle ($a_lang_code='') | |
| Get the title of an StudyProgramme type. More... | |
| setTitle ($a_title, $a_lang_code='') | |
| Set title of StudyProgramme type. More... | |
| getDescription ($a_lang_code='') | |
| Get the description of an StudyProgramme type. More... | |
| setDescription ($a_description, $a_lang_code='') | |
| Set description of StudyProgramme type. More... | |
| getAssignedStudyProgrammes ($include_deleted=true) | |
| Get an array of ilObjStudyProgramme objects using this type. More... | |
| getAssignedStudyProgrammeIds () | |
| getAssignedAdvancedMDRecords ($a_only_active=false) | |
| Get assigned AdvancedMDRecord objects. More... | |
| processAndStoreIconFile (array $file_data) | |
| Resize and store an icon file for this object. More... | |
| removeIconFile () | |
| Remove the icon file on disk. More... | |
| setTranslations ($translations) | |
| Getters & Setters. More... | |
| getTranslations () | |
| Returns the loaded translation objects. More... | |
| setOwner ($owner) | |
| getOwner () | |
| setLastUpdate ($last_update) | |
| getLastUpdate () | |
| getId () | |
| setIcon ($icon) | |
| Set new Icon filename. More... | |
| getIcon () | |
| getIconPath ($append_filename=false) | |
| Return the path to the icon. More... | |
| getDefaultLang () | |
| setCreateDate ($create_date) | |
| getCreateDate () | |
Public Member Functions inherited from ActiveRecord | |
| getArConnector () | |
| getArFieldList () | |
| getConnectorContainerName () | |
| setConnectorContainerName ($connector_container_name) | |
| getPrimaryFieldValue () | |
| setPrimaryFieldValue ($value) | |
| __construct ($primary_key=0, arConnector $connector=null) | |
| storeObjectToCache () | |
| __getConvertedDateFieldsAsArray ($format=null) | |
| __asCsv ($separator=';', $header=false) | |
| __asArray () | |
| __asStdClass () | |
| __asSerializedObject () | |
| buildFromArray (array $array) | |
| fixDateField ($field_name, $value) | |
| sleep ($field_name) | |
| wakeUp ($field_name, $field_value) | |
| getArrayForDb () | |
| getArrayForConnector () | |
| installConnector () | |
| store () | |
| save () | |
| create () | |
| copy ($new_id=0) | |
| afterObjectLoad () | |
| read () | |
| update () | |
| delete () | |
| __call ($name, $arguments) | |
Static Public Member Functions | |
| static | returnDbTableName () |
| static | getAllTypes () |
| Public. More... | |
| static | getAllTypesArray ($add_empty_on_begin=true) |
| static | getAvailableAdvancedMDRecords () |
| Get all available AdvancedMDRecord objects for StudyProgrammes/Types. More... | |
| static | getIconPathByStudyProgrammObjId ($obj_id) |
| Return the path to the icon by studyprogramme obj id. More... | |
Static Public Member Functions inherited from ActiveRecord | |
| static | returnDbTableName () |
| static | installDB () |
| static | renameDBField ($old_name, $new_name) |
| static | tableExists () |
| static | fieldExists ($field_name) |
| static | removeDBField ($field_name) |
| static | updateDB () |
| static | resetDB () |
| static | truncateDB () |
| static | flushDB () |
| static | preloadObjects () |
| static | additionalParams (array $additional_params) |
| static | findOrFail ($primary_key, array $add_constructor_args=array()) |
| Tries to find the object and throws an Exception if object is not found, instead of returning null. More... | |
| static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
| static | where ($where, $operator=null) |
| static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
| static | innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
| static | leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
| static | orderBy ($orderBy, $orderDirection='ASC') |
| static | dateFormat ($date_format='d.m.Y - H:i:s') |
| static | limit ($start, $end) |
| static | affectedRows () |
| static | count () |
| static | get () |
| static | debug () |
| static | first () |
| static | getCollection () |
| static | last () |
| static | getFirstFromLastQuery () |
| static | connector (arConnector $connector) |
| static | raw ($set_raw=true) |
| static | getArray ($key=null, $values=null) |
| static | _toCamelCase ($str, $capitalise_first_char=false) |
Data Fields | |
| const | WEB_DATA_FOLDER = 'prg_data' |
| Folder in ILIAS webdir to store the icons. More... | |
Data Fields inherited from ActiveRecord | |
| const | ACTIVE_RECORD_VERSION = '2.0.7' |
Protected Member Functions | |
| getTranslation ($a_member, $a_lang_code) | |
| Protected. More... | |
| loadTranslation ($a_lang_code) | |
| Helper function to load a translation. More... | |
| updateable () | |
| Helper function to check if this type can be updated. More... | |
Protected Member Functions inherited from ActiveRecord | |
| serializeToCSV ($field) | |
| This method is called for every field of your instance if you use __asCsv. More... | |
| installDatabase () | |
Protected Attributes | |
| $id = 0 | |
| $default_lang = '' | |
| $owner | |
| $create_date | |
| $last_update | |
| $icon | |
| $amd_records_assigned | |
| $log | |
| $user | |
| $pluginAdmin | |
| $active_plugins | |
| $lng | |
| $translations | |
| $changed_translations = array() | |
Protected Attributes inherited from ActiveRecord | |
| $ar_safe_read = true | |
| $connector_container_name = '' | |
Static Protected Attributes | |
| static | $amd_records_available |
Additional Inherited Members | |
Static Protected Member Functions inherited from ActiveRecord | |
| static | getCalledClass () |
| static | fromCamelCase ($str) |
Class ilStudyProgrammeType.
Definition at line 16 of file class.ilStudyProgrammeType.php.
| ilStudyProgrammeType::__construct | ( | $primary_key = 0 | ) |
| int | $a_id |
| ilStudyProgrammeTypeException |
Definition at line 139 of file class.ilStudyProgrammeType.php.
References $DIC, $ilDB, $ilLog, $ilUser, $lng, and user().
Here is the call graph for this function:
|
static |
Public.
Get array of all instances of ilStudyProgrammeType objects
Definition at line 164 of file class.ilStudyProgrammeType.php.
References ActiveRecord\get().
Here is the call graph for this function:
|
static |
Definition at line 168 of file class.ilStudyProgrammeType.php.
References $out.
Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().
Here is the caller graph for this function:| ilStudyProgrammeType::getAssignedAdvancedMDRecords | ( | $a_only_active = false | ) |
Get assigned AdvancedMDRecord objects.
| bool | $a_only_active | True if only active AMDRecords are returned |
Definition at line 398 of file class.ilStudyProgrammeType.php.
References getId(), and ActiveRecord\where().
Here is the call graph for this function:| ilStudyProgrammeType::getAssignedStudyProgrammeIds | ( | ) |
Definition at line 379 of file class.ilStudyProgrammeType.php.
References $out, and getAssignedStudyProgrammes().
Here is the call graph for this function:| ilStudyProgrammeType::getAssignedStudyProgrammes | ( | $include_deleted = true | ) |
Get an array of ilObjStudyProgramme objects using this type.
| bool | $include_deleted | True if also deleted StudyProgrammes are returned |
Definition at line 375 of file class.ilStudyProgrammeType.php.
References getId(), and ActiveRecord\where().
Referenced by getAssignedStudyProgrammeIds().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all available AdvancedMDRecord objects for StudyProgrammes/Types.
Definition at line 444 of file class.ilStudyProgrammeType.php.
References $amd_records_available, and ilAdvancedMDRecord\_getActivatedRecordsByObjectType().
Here is the call graph for this function:| ilStudyProgrammeType::getCreateDate | ( | ) |
Definition at line 962 of file class.ilStudyProgrammeType.php.
References $create_date.
| ilStudyProgrammeType::getDefaultLang | ( | ) |
Definition at line 946 of file class.ilStudyProgrammeType.php.
References $default_lang.
Referenced by getTranslation(), setDescription(), and setTitle().
Here is the caller graph for this function:| ilStudyProgrammeType::getDescription | ( | $a_lang_code = '' | ) |
Get the description of an StudyProgramme type.
If no language code is given, a translation in the user-language is returned. If no such translation exists, the description of the default language is substituted. If a language code is provided, returns description for the given language or null.
| string | $a_lang_code |
Definition at line 351 of file class.ilStudyProgrammeType.php.
References getTranslation().
Here is the call graph for this function:| ilStudyProgrammeType::getIcon | ( | ) |
Definition at line 857 of file class.ilStudyProgrammeType.php.
References $icon.
Referenced by getIconPath(), and processAndStoreIconFile().
Here is the caller graph for this function:| ilStudyProgrammeType::getIconPath | ( | $append_filename = false | ) |
Return the path to the icon.
| bool | $append_filename | If true, append filename of icon |
Definition at line 869 of file class.ilStudyProgrammeType.php.
References $path, getIcon(), getId(), and ilUtil\getWebspaceDir().
Referenced by processAndStoreIconFile(), and removeIconFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Return the path to the icon by studyprogramme obj id.
| int | $obj_id | study prgramm obj id |
Definition at line 885 of file class.ilStudyProgrammeType.php.
References $DIC, $ilDB, $path, $res, $row, and ilUtil\getWebspaceDir().
Here is the call graph for this function:| ilStudyProgrammeType::getId | ( | ) |
Definition at line 829 of file class.ilStudyProgrammeType.php.
References $id.
Referenced by getAssignedAdvancedMDRecords(), getAssignedStudyProgrammes(), getIconPath(), and loadTranslation().
Here is the caller graph for this function:| ilStudyProgrammeType::getLastUpdate | ( | ) |
Definition at line 821 of file class.ilStudyProgrammeType.php.
References $last_update.
| ilStudyProgrammeType::getOwner | ( | ) |
Definition at line 805 of file class.ilStudyProgrammeType.php.
References $owner.
| ilStudyProgrammeType::getTitle | ( | $a_lang_code = '' | ) |
Get the title of an StudyProgramme type.
If no language code is given, a translation in the user-language is returned. If no such translation exists, the translation of the default language is substituted. If a language code is provided, returns title for the given language or null.
| string | $a_lang_code |
Definition at line 324 of file class.ilStudyProgrammeType.php.
References getTranslation().
Here is the call graph for this function:
|
protected |
Protected.
Helper method to return a translation for a given member and language
| $a_member | |
| $a_lang_code |
Definition at line 610 of file class.ilStudyProgrammeType.php.
References $lang, getDefaultLang(), loadTranslation(), and user().
Referenced by getDescription(), and getTitle().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeType::getTranslations | ( | ) |
Returns the loaded translation objects.
Definition at line 773 of file class.ilStudyProgrammeType.php.
References $translations.
|
protected |
Helper function to load a translation.
Returns translation object from cache or null, if no translation exists for the given code.
| string | $a_lang_code | A language code |
Definition at line 725 of file class.ilStudyProgrammeType.php.
References ActiveRecord\count(), getId(), and ActiveRecord\where().
Referenced by getTranslation().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeType::processAndStoreIconFile | ( | array | $file_data | ) |
Resize and store an icon file for this object.
| array | $file_data | The array containing file information from the icon from PHPs $_FILES array |
Definition at line 566 of file class.ilStudyProgrammeType.php.
References $filename, ActiveRecord\count(), getIcon(), getIconPath(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), and updateable().
Here is the call graph for this function:| ilStudyProgrammeType::removeIconFile | ( | ) |
Remove the icon file on disk.
Definition at line 587 of file class.ilStudyProgrammeType.php.
References getIconPath(), setIcon(), and updateable().
Here is the call graph for this function:
|
static |
Reimplemented from ActiveRecord.
Definition at line 130 of file class.ilStudyProgrammeType.php.
| ilStudyProgrammeType::setCreateDate | ( | $create_date | ) |
| string | $create_date |
Definition at line 954 of file class.ilStudyProgrammeType.php.
References $create_date.
| ilStudyProgrammeType::setDescription | ( | $a_description, | |
$a_lang_code = '' |
|||
| ) |
Set description of StudyProgramme type.
If no lang code is given, sets description for default language.
| $a_description | ||
| string | $a_lang_code |
Definition at line 363 of file class.ilStudyProgrammeType.php.
References $lang, and getDefaultLang().
Here is the call graph for this function:| ilStudyProgrammeType::setIcon | ( | $icon | ) |
Set new Icon filename.
Note that if you did also send a new icon image file with a form, make sure to call ilStudyProgrammeType::processAndStoreIconFile() to store the file additionally on disk.
If you want to delete the icon, set call ilStudyProgrammeType::removeIconFile() first and set an empty string here.
| string | $icon |
| ilStudyProgrammeTypeException |
Definition at line 846 of file class.ilStudyProgrammeType.php.
References $icon.
Referenced by removeIconFile().
Here is the caller graph for this function:| ilStudyProgrammeType::setLastUpdate | ( | $last_update | ) |
| string | $last_update |
Definition at line 813 of file class.ilStudyProgrammeType.php.
References $last_update.
| ilStudyProgrammeType::setOwner | ( | $owner | ) |
| int | $owner |
Definition at line 797 of file class.ilStudyProgrammeType.php.
References $owner.
| ilStudyProgrammeType::setTitle | ( | $a_title, | |
$a_lang_code = '' |
|||
| ) |
Set title of StudyProgramme type.
If no lang code is given, sets title for default language.
| $a_title | ||
| string | $a_lang_code |
Definition at line 336 of file class.ilStudyProgrammeType.php.
References $lang, and getDefaultLang().
Here is the call graph for this function:| ilStudyProgrammeType::setTranslations | ( | $translations | ) |
Getters & Setters.
| array | $translations |
Definition at line 763 of file class.ilStudyProgrammeType.php.
References $translations.
|
protected |
Helper function to check if this type can be updated.
Definition at line 745 of file class.ilStudyProgrammeType.php.
Referenced by processAndStoreIconFile(), and removeIconFile().
Here is the caller graph for this function:
|
protected |
Definition at line 109 of file class.ilStudyProgrammeType.php.
|
protected |
Definition at line 84 of file class.ilStudyProgrammeType.php.
|
staticprotected |
Definition at line 89 of file class.ilStudyProgrammeType.php.
Referenced by getAvailableAdvancedMDRecords().
|
protected |
Definition at line 123 of file class.ilStudyProgrammeType.php.
|
protected |
Definition at line 60 of file class.ilStudyProgrammeType.php.
Referenced by getCreateDate(), and setCreateDate().
|
protected |
Definition at line 42 of file class.ilStudyProgrammeType.php.
Referenced by getDefaultLang().
|
protected |
Definition at line 78 of file class.ilStudyProgrammeType.php.
|
protected |
Definition at line 33 of file class.ilStudyProgrammeType.php.
Referenced by getId().
|
protected |
Definition at line 69 of file class.ilStudyProgrammeType.php.
Referenced by getLastUpdate(), and setLastUpdate().
|
protected |
Definition at line 114 of file class.ilStudyProgrammeType.php.
Referenced by __construct().
|
protected |
Definition at line 94 of file class.ilStudyProgrammeType.php.
|
protected |
Definition at line 51 of file class.ilStudyProgrammeType.php.
Referenced by getOwner(), and setOwner().
|
protected |
Definition at line 104 of file class.ilStudyProgrammeType.php.
|
protected |
Definition at line 119 of file class.ilStudyProgrammeType.php.
Referenced by getTranslations(), and setTranslations().
|
protected |
Definition at line 99 of file class.ilStudyProgrammeType.php.
| const ilStudyProgrammeType::WEB_DATA_FOLDER = 'prg_data' |
Folder in ILIAS webdir to store the icons.
Definition at line 21 of file class.ilStudyProgrammeType.php.