ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilStudyProgrammeType Class Reference

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)
 
 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)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilStudyProgrammeType::__construct (   $primary_key = 0)
Parameters
int$a_id
Exceptions
ilStudyProgrammeTypeException

Definition at line 139 of file class.ilStudyProgrammeType.php.

References $ilDB, $ilLog, $ilUser, and $lng.

139  {
140  global $ilDB, $ilLog, $ilUser, $ilPluginAdmin, $lng;
141  $this->db = $ilDB;
142  $this->log = $ilLog;
143  $this->user = $ilUser;
144  $this->pluginAdmin = $ilPluginAdmin;
145  $this->lng = $lng;
146 
147  parent::__construct($primary_key);
148  }
global $ilUser
Definition: imgupload.php:15
global $ilDB

Member Function Documentation

◆ getAllTypes()

static ilStudyProgrammeType::getAllTypes ( )
static

Public.

Get array of all instances of ilStudyProgrammeType objects

Returns
array

Definition at line 159 of file class.ilStudyProgrammeType.php.

Referenced by ilStudyProgrammeTypeTableGUI\initColumns().

159  {
160  return self::get();
161  }
+ Here is the caller graph for this function:

◆ getAllTypesArray()

static ilStudyProgrammeType::getAllTypesArray (   $add_empty_on_begin = true)
static

Definition at line 163 of file class.ilStudyProgrammeType.php.

References $default_lang, $lang, $out, $records, ActiveRecord\count(), ActiveRecord\create(), ilStudyProgrammeTypeTranslation\deleteAllTranslations(), getDefaultLang(), getIconPath(), getId(), ilObject\getTitle(), getTranslation(), IL_CAL_UNIX, setCreateDate(), setLastUpdate(), setOwner(), ActiveRecord\update(), and ActiveRecord\where().

Referenced by ilObjStudyProgrammeSettingsGUI\buildForm().

163  {
164  $out = array();
165 
166  foreach(self::getAllTypes() as $type) {
167  $out[$type->getId()] = $type->getTitle();
168  }
169 
170  if($add_empty_on_begin)
171  $out = array('-'=>'-') + $out;
172 
173  return $out;
174  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignedAdvancedMDRecords()

ilStudyProgrammeType::getAssignedAdvancedMDRecords (   $a_only_active = false)

Get assigned AdvancedMDRecord objects.

Parameters
bool$a_only_activeTrue if only active AMDRecords are returned
Returns
array

Definition at line 393 of file class.ilStudyProgrammeType.php.

References getId(), and ActiveRecord\where().

393  {
394  $active = ($a_only_active) ? 1 : 0; // Cache key
395  if (is_array($this->amd_records_assigned[$active])) {
396  return $this->amd_records_assigned[$active];
397  }
398  $this->amd_records_assigned[$active] = array();
399  $sets = ilStudyProgrammeAdvancedMetadataRecord::where(array('type_id'=>$this->getId()))->get();
400 
401  foreach($sets as $set) {
402  $amd_record = new ilAdvancedMDRecord($set->getRecId());
403  if ($a_only_active) {
404  if ($amd_record->isActive()) {
405  $this->amd_records_assigned[1][] = $amd_record;
406  }
407  } else {
408  $this->amd_records_assigned[0][] = $amd_record;
409  }
410  }
411 
412  return $this->amd_records_assigned[$active];
413  }
static where($where, $operator=NULL)
+ Here is the call graph for this function:

◆ getAssignedStudyProgrammeIds()

ilStudyProgrammeType::getAssignedStudyProgrammeIds ( )

Definition at line 374 of file class.ilStudyProgrammeType.php.

References $out, and getAssignedStudyProgrammes().

Referenced by getAvailableAdvancedMDRecords().

374  {
375  $study_programmes = $this->getAssignedStudyProgrammes();
376 
377  $out = array();
378  foreach($study_programmes as $study_program) {
379  $out[] = $study_program->getObjId();
380  }
381 
382  return $out;
383  }
getAssignedStudyProgrammes($include_deleted=true)
Get an array of ilObjStudyProgramme objects using this type.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignedStudyProgrammes()

ilStudyProgrammeType::getAssignedStudyProgrammes (   $include_deleted = true)

Get an array of ilObjStudyProgramme objects using this type.

Parameters
bool$include_deletedTrue if also deleted StudyProgrammes are returned
Returns
array

Definition at line 370 of file class.ilStudyProgrammeType.php.

References getId(), and ActiveRecord\where().

Referenced by getAssignedStudyProgrammeIds().

370  {
371  return ilStudyProgramme::where(array('subtype_id'=>$this->getId()))->get();
372  }
static where($where, $operator=NULL)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAvailableAdvancedMDRecords()

static ilStudyProgrammeType::getAvailableAdvancedMDRecords ( )
static

Get all available AdvancedMDRecord objects for StudyProgrammes/Types.

Returns
array

Definition at line 439 of file class.ilStudyProgrammeType.php.

References $records, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), ActiveRecord\count(), getAssignedStudyProgrammeIds(), getId(), ilAdvancedMDRecord\saveObjRecSelection(), and ActiveRecord\where().

Referenced by ilStudyProgrammeTypeAdvancedMetaDataFormGUI\saveObject().

439  {
440  if (is_array(self::$amd_records_available)) {
441  return self::$amd_records_available;
442  }
443  self::$amd_records_available = ilAdvancedMDRecord::_getActivatedRecordsByObjectType('prg', 'prg_type');
444 
445  return self::$amd_records_available;
446  }
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="", $a_only_optional=false)
Get activated records by object type.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCreateDate()

ilStudyProgrammeType::getCreateDate ( )
Returns
string

Definition at line 956 of file class.ilStudyProgrammeType.php.

References $create_date.

956  {
957  return $this->create_date;
958  }

◆ getDefaultLang()

ilStudyProgrammeType::getDefaultLang ( )
Returns
string

Definition at line 940 of file class.ilStudyProgrammeType.php.

References $default_lang.

Referenced by getAllTypesArray(), getTranslation(), setDescription(), and setTitle().

+ Here is the caller graph for this function:

◆ getDescription()

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.

Parameters
string$a_lang_code
Returns
null|string

Definition at line 346 of file class.ilStudyProgrammeType.php.

References getTranslation().

346  {
347  return $this->getTranslation('description', $a_lang_code);
348  }
getTranslation($a_member, $a_lang_code)
Protected.
+ Here is the call graph for this function:

◆ getIcon()

ilStudyProgrammeType::getIcon ( )
Returns
string

Definition at line 852 of file class.ilStudyProgrammeType.php.

References $icon.

Referenced by getIconPath(), and processAndStoreIconFile().

852  {
853  return $this->icon;
854  }
+ Here is the caller graph for this function:

◆ getIconPath()

ilStudyProgrammeType::getIconPath (   $append_filename = false)

Return the path to the icon.

Parameters
bool$append_filenameIf true, append filename of icon
Returns
string

Definition at line 864 of file class.ilStudyProgrammeType.php.

References $path, getIcon(), getId(), and ilUtil\getWebspaceDir().

Referenced by getAllTypesArray(), processAndStoreIconFile(), and removeIconFile().

864  {
865  $path = ilUtil::getWebspaceDir() . '/' . self::WEB_DATA_FOLDER . '/' . 'type_' . $this->getId() . '/';
866  if ($append_filename) {
867  $path .= $this->getIcon();
868  }
869 
870  return $path;
871  }
$path
Definition: index.php:22
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIconPathByStudyProgrammObjId()

static ilStudyProgrammeType::getIconPathByStudyProgrammObjId (   $obj_id)
static

Return the path to the icon by studyprogramme obj id.

Parameters
int$obj_idstudy prgramm obj id
Returns
string icon path

Definition at line 880 of file class.ilStudyProgrammeType.php.

References $default_lang, $ilDB, $path, $res, $row, ActiveRecord\count(), and ilUtil\getWebspaceDir().

880  {
881  global $ilDB;
882 
883  $sql = "SELECT prgt.id, prgt.icon\n"
884  ." FROM prg_type prgt\n"
885  ." JOIN prg_settings prgs\n"
886  ." ON prgt.id = prgs.subtype_id\n"
887  ." WHERE prgs.obj_id = ".$ilDB->quote($obj_id,"integer")."\n";
888 
889  $res = $ilDB->query($sql);
890 
891  if($ilDB->numRows($res) == 1) {
892  $row = $ilDB->fetchAssoc($res);
893 
894  if($row["icon"]) {
895  $path = ilUtil::getWebspaceDir() . '/' . self::WEB_DATA_FOLDER . '/' . 'type_' . $row["id"] . '/';
896  $path .= $row["icon"];
897 
898  return $path;
899  }
900 
901  return null;
902  }
903 
904  return null;
905  }
$path
Definition: index.php:22
global $ilDB
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:

◆ getId()

ilStudyProgrammeType::getId ( )

◆ getLastUpdate()

ilStudyProgrammeType::getLastUpdate ( )
Returns
string

Definition at line 816 of file class.ilStudyProgrammeType.php.

References $last_update.

816  {
817  return $this->last_update;
818  }

◆ getOwner()

ilStudyProgrammeType::getOwner ( )
Returns
int

Definition at line 800 of file class.ilStudyProgrammeType.php.

References $owner.

800  {
801  return $this->owner;
802  }

◆ getTitle()

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.

Parameters
string$a_lang_code
Returns
null|string

Definition at line 319 of file class.ilStudyProgrammeType.php.

References getTranslation().

319  {
320  return $this->getTranslation('title', $a_lang_code);
321  }
getTranslation($a_member, $a_lang_code)
Protected.
+ Here is the call graph for this function:

◆ getTranslation()

ilStudyProgrammeType::getTranslation (   $a_member,
  $a_lang_code 
)
protected

Protected.

Helper method to return a translation for a given member and language

Parameters
$a_member
$a_lang_code
Returns
null|string

Definition at line 605 of file class.ilStudyProgrammeType.php.

References $active_plugins, $lang, ActiveRecord\count(), getDefaultLang(), getId(), IL_COMP_MODULE, loadTranslation(), and ActiveRecord\where().

Referenced by getAllTypesArray(), getDescription(), and getTitle().

605  {
606  $lang = ($a_lang_code) ? $a_lang_code : $this->user->getLanguage();
607 
608  $trans_obj = $this->loadTranslation($lang);
609  if (!is_null($trans_obj)) {
610  $translation = $trans_obj[$a_member];
611  // If the translation does exist but is an empty string and there was no lang code given,
612  // substitute default language anyway because an empty string provides no information
613  if (!$a_lang_code && !$translation) {
614  $trans_obj = $this->loadTranslation($this->getDefaultLang());
615 
616  return $trans_obj[$a_member];
617  }
618 
619  return $translation;
620  } else {
621  // If no lang code was given and there was no translation found, return string in default language
622  if (!$a_lang_code) {
623  $trans_obj = $this->loadTranslation($this->getDefaultLang());
624 
625  return $trans_obj[$a_member];
626  }
627 
628  return NULL;
629  }
630  }
loadTranslation($a_lang_code)
Helper function to load a translation.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTranslations()

ilStudyProgrammeType::getTranslations ( )

Returns the loaded translation objects.

Returns
array

Definition at line 768 of file class.ilStudyProgrammeType.php.

References $translations, getId(), and ActiveRecord\where().

+ Here is the call graph for this function:

◆ loadTranslation()

ilStudyProgrammeType::loadTranslation (   $a_lang_code)
protected

Helper function to load a translation.

Returns translation object from cache or null, if no translation exists for the given code.

Parameters
string$a_lang_codeA language code
Returns
ActiveRecordList|null

Definition at line 720 of file class.ilStudyProgrammeType.php.

References ActiveRecord\count(), getId(), and ActiveRecord\where().

Referenced by getTranslation().

720  {
721  if (isset($this->translations[$a_lang_code])) {
722  return $this->translations[$a_lang_code];
723  } else {
724  $trans_array = ilStudyProgrammeTypeTranslation::where(array('prg_type_id'=>$this->getId(), 'lang'=>$a_lang_code))->getArray('member', 'value');
725  if (count($trans_array)) {
726  $this->translations[$a_lang_code] = $trans_array;
727 
728  return $trans_array;
729  }
730  }
731 
732  return NULL;
733  }
static where($where, $operator=NULL)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processAndStoreIconFile()

ilStudyProgrammeType::processAndStoreIconFile ( array  $file_data)

Resize and store an icon file for this object.

Parameters
array$file_dataThe array containing file information from the icon from PHPs $_FILES array
Returns
bool

Definition at line 561 of file class.ilStudyProgrammeType.php.

References $filename, ActiveRecord\count(), getIcon(), getIconPath(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), and updateable().

561  {
562  if (!$this->updateable()) {
563  return false;
564  }
565  if (!count($file_data) || !$file_data['name']) {
566  return false;
567  }
568  if (!is_dir($this->getIconPath())) {
570  }
571  $filename = $this->getIcon() ? $this->getIcon() : $file_data['name'];
572  $return = ilUtil::moveUploadedFile($file_data['tmp_name'], $filename, $this->getIconPath(true), false);
573 
574  // TODO Resize
575  return $return;
576  }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
updateable()
Helper function to check if this type can be updated.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
getIconPath($append_filename=false)
Return the path to the icon.
$filename
Definition: buildRTE.php:89
+ Here is the call graph for this function:

◆ removeIconFile()

ilStudyProgrammeType::removeIconFile ( )

Remove the icon file on disk.

Definition at line 582 of file class.ilStudyProgrammeType.php.

References getIconPath(), setIcon(), and updateable().

582  {
583  if (!$this->updateable()) {
584  return;
585  }
586  if (is_file($this->getIconPath(true))) {
587  unlink($this->getIconPath(true));
588  $this->setIcon('');
589  }
590  }
updateable()
Helper function to check if this type can be updated.
setIcon($icon)
Set new Icon filename.
getIconPath($append_filename=false)
Return the path to the icon.
+ Here is the call graph for this function:

◆ returnDbTableName()

static ilStudyProgrammeType::returnDbTableName ( )
static
Returns
string Return the Name of your Database Table
Deprecated:

Definition at line 130 of file class.ilStudyProgrammeType.php.

130  {
131  return 'prg_type';
132  }

◆ setCreateDate()

ilStudyProgrammeType::setCreateDate (   $create_date)
Parameters
string$create_date

Definition at line 948 of file class.ilStudyProgrammeType.php.

References $create_date.

Referenced by getAllTypesArray().

948  {
949  $this->create_date = $create_date;
950  }
+ Here is the caller graph for this function:

◆ setDescription()

ilStudyProgrammeType::setDescription (   $a_description,
  $a_lang_code = '' 
)

Set description of StudyProgramme type.

If no lang code is given, sets description for default language.

Parameters
$a_description
string$a_lang_code

Definition at line 358 of file class.ilStudyProgrammeType.php.

References $lang, and getDefaultLang().

358  {
359  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
360  $this->setTranslation('description', $a_description, $lang);
361  }
+ Here is the call graph for this function:

◆ setIcon()

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.

Parameters
string$icon
Exceptions
ilStudyProgrammeTypeException

Definition at line 841 of file class.ilStudyProgrammeType.php.

References $icon.

Referenced by removeIconFile().

841  {
842  if ($icon AND !preg_match('/\.(svg)$/', $icon)) {
843  throw new ilStudyProgrammeTypeException('Icon must be set with file extension svg');
844  }
845  $this->icon = $icon;
846  }
Exception is thrown when errors occurs relating the subtype implementation.
+ Here is the caller graph for this function:

◆ setLastUpdate()

ilStudyProgrammeType::setLastUpdate (   $last_update)
Parameters
string$last_update

Definition at line 808 of file class.ilStudyProgrammeType.php.

References $last_update.

Referenced by getAllTypesArray().

808  {
809  $this->last_update = $last_update;
810  }
+ Here is the caller graph for this function:

◆ setOwner()

ilStudyProgrammeType::setOwner (   $owner)
Parameters
int$owner

Definition at line 792 of file class.ilStudyProgrammeType.php.

References $owner.

Referenced by getAllTypesArray().

792  {
793  $this->owner = $owner;
794  }
+ Here is the caller graph for this function:

◆ setTitle()

ilStudyProgrammeType::setTitle (   $a_title,
  $a_lang_code = '' 
)

Set title of StudyProgramme type.

If no lang code is given, sets title for default language.

Parameters
$a_title
string$a_lang_code

Definition at line 331 of file class.ilStudyProgrammeType.php.

References $lang, and getDefaultLang().

331  {
332  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
333  $this->setTranslation('title', $a_title, $lang);
334  }
+ Here is the call graph for this function:

◆ setTranslations()

ilStudyProgrammeType::setTranslations (   $translations)

Getters & Setters.

Parameters
array$translations

Definition at line 758 of file class.ilStudyProgrammeType.php.

References $translations.

758  {
759  $this->translations = $translations;
760  }

◆ updateable()

ilStudyProgrammeType::updateable ( )
protected

Helper function to check if this type can be updated.

Returns
bool

Definition at line 740 of file class.ilStudyProgrammeType.php.

Referenced by processAndStoreIconFile(), and removeIconFile().

740  {
741  foreach ($this->getActivePlugins() as $plugin) {
742  if (!$plugin->allowUpdate($this->getId())) {
743  return false;
744  }
745  }
746 
747  return true;
748  }
+ Here is the caller graph for this function:

Field Documentation

◆ $active_plugins

ilStudyProgrammeType::$active_plugins
protected

Definition at line 109 of file class.ilStudyProgrammeType.php.

Referenced by getTranslation().

◆ $amd_records_assigned

ilStudyProgrammeType::$amd_records_assigned
protected

Definition at line 84 of file class.ilStudyProgrammeType.php.

◆ $amd_records_available

ilStudyProgrammeType::$amd_records_available
staticprotected

Definition at line 89 of file class.ilStudyProgrammeType.php.

◆ $changed_translations

ilStudyProgrammeType::$changed_translations = array()
protected

Definition at line 123 of file class.ilStudyProgrammeType.php.

◆ $create_date

ilStudyProgrammeType::$create_date
protected

Definition at line 60 of file class.ilStudyProgrammeType.php.

Referenced by getCreateDate(), and setCreateDate().

◆ $default_lang

ilStudyProgrammeType::$default_lang = ''
protected

◆ $icon

ilStudyProgrammeType::$icon
protected

Definition at line 78 of file class.ilStudyProgrammeType.php.

Referenced by getIcon(), and setIcon().

◆ $id

ilStudyProgrammeType::$id = 0
protected

Definition at line 33 of file class.ilStudyProgrammeType.php.

Referenced by getId().

◆ $last_update

ilStudyProgrammeType::$last_update
protected

Definition at line 69 of file class.ilStudyProgrammeType.php.

Referenced by getLastUpdate(), and setLastUpdate().

◆ $lng

ilStudyProgrammeType::$lng
protected

Definition at line 114 of file class.ilStudyProgrammeType.php.

Referenced by __construct().

◆ $log

ilStudyProgrammeType::$log
protected

Definition at line 94 of file class.ilStudyProgrammeType.php.

◆ $owner

ilStudyProgrammeType::$owner
protected

Definition at line 51 of file class.ilStudyProgrammeType.php.

Referenced by getOwner(), and setOwner().

◆ $pluginAdmin

ilStudyProgrammeType::$pluginAdmin
protected

Definition at line 104 of file class.ilStudyProgrammeType.php.

◆ $translations

ilStudyProgrammeType::$translations
protected

Definition at line 119 of file class.ilStudyProgrammeType.php.

Referenced by getTranslations(), and setTranslations().

◆ $user

ilStudyProgrammeType::$user
protected

Definition at line 99 of file class.ilStudyProgrammeType.php.

◆ WEB_DATA_FOLDER

const ilStudyProgrammeType::WEB_DATA_FOLDER = 'prg_data'

Folder in ILIAS webdir to store the icons.

Definition at line 21 of file class.ilStudyProgrammeType.php.


The documentation for this class was generated from the following file: