ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilOrgUnitType Class Reference

Class ilOrgUnitType. More...

+ Collaboration diagram for ilOrgUnitType:

Public Member Functions

 __construct ($a_id=0)
 
 save ()
 Wrapper around create() and update() methods. More...
 
 getTitle ($a_lang_code='')
 Get the title of an OrgUnit type. More...
 
 setTitle ($a_title, $a_lang_code='')
 Set title of OrgUnit type. More...
 
 getDescription ($a_lang_code='')
 Get the description of an OrgUnit type. More...
 
 setDescription ($a_description, $a_lang_code='')
 Set description of OrgUnit type. More...
 
 getOrgUnitIds ($include_deleted=true)
 Get an array of IDs of ilObjOrgUnit objects using this type. More...
 
 getOrgUnits ($include_deleted=true)
 Get an array of ilObjOrgUnit objects using this type. More...
 
 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 ()
 

Static Public Member Functions

static getInstance ($a_id)
 Public. More...
 
static getAllTypes ()
 Get array of all instances of ilOrgUnitType objects. More...
 
static getAvailableAdvancedMDRecords ()
 Get all available AdvancedMDRecord objects for OrgUnits/Types. More...
 

Data Fields

const TABLE_NAME = 'orgu_types'
 
const WEB_DATA_FOLDER = 'orgu_data'
 Folder in ILIAS webdir to store the icons. More...
 

Protected Member Functions

 getTranslation ($a_member, $a_lang_code)
 Protected. More...
 
 loadTranslation ($a_lang_code)
 Helper function to load a translation. More...
 
 read ()
 Read object data from database. More...
 
 updateable ()
 Helper function to check if this type can be updated. More...
 

Protected Attributes

 $id = 0
 
 $default_lang = ''
 
 $owner
 
 $create_date
 
 $last_update
 
 $icon
 
 $translations = array()
 
 $amd_records_assigned
 
 $orgus
 
 $orgus_ids
 
 $db
 
 $log
 
 $user
 
 $pluginAdmin
 
 $active_plugins
 
 $lng
 

Static Protected Attributes

static $amd_records_available
 
static $instances = array()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitType::__construct (   $a_id = 0)
Parameters
int$a_id
Exceptions
ilOrgUnitTypeException

Definition at line 97 of file class.ilOrgUnitType.php.

References $DIC, $ilDB, $ilLog, $ilUser, $lng, read(), and user().

98  {
99  global $DIC;
100  $ilDB = $DIC['ilDB'];
101  $ilLog = $DIC['ilLog'];
102  $ilUser = $DIC['ilUser'];
103  $ilPluginAdmin = $DIC['ilPluginAdmin'];
104  $lng = $DIC['lng'];
105  $this->db = $ilDB;
106  $this->log = $ilLog;
107  $this->user = $ilUser;
108  $this->pluginAdmin = $ilPluginAdmin;
109  $this->lng = $lng;
110  if ($a_id) {
111  $this->id = (int) $a_id;
112  $this->read();
113  }
114  }
global $DIC
Definition: saml.php:7
user()
Definition: user.php:4
read()
Read object data from database.
$ilUser
Definition: imgupload.php:18
global $ilDB
+ Here is the call graph for this function:

Member Function Documentation

◆ getAllTypes()

static ilOrgUnitType::getAllTypes ( )
static

Get array of all instances of ilOrgUnitType objects.

Returns
array

Definition at line 153 of file class.ilOrgUnitType.php.

References $default_lang, $DIC, $ilDB, $lang, $title, $type, array, date, getDefaultLang(), getIcon(), getId(), getOwner(), getTranslation(), League\Flysystem\Adapter\Polyfill\update(), and user().

Referenced by ilOrgUnitTypeTableGUI\initColumns(), and ilObjOrgUnitSettingsFormGUI\saveObject().

154  {
155  global $DIC;
156  $ilDB = $DIC['ilDB'];
157  $sql = 'SELECT id FROM ' . self::TABLE_NAME;
158  $set = $ilDB->query($sql);
159  $types = array();
160  while ($rec = $ilDB->fetchObject($set)) {
161  $type = new self($rec->id);
162  $types[] = $type;
163  self::$instances[$rec->id] = $type;
164  }
165 
166  return $types;
167  }
$type
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignedAdvancedMDRecords()

ilOrgUnitType::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 448 of file class.ilOrgUnitType.php.

References array, and getId().

449  {
450  $active = ($a_only_active) ? 1 : 0; // Cache key
451  if (is_array($this->amd_records_assigned[$active])) {
452  return $this->amd_records_assigned[$active];
453  }
454  $this->amd_records_assigned[$active] = array();
455  $sql = 'SELECT * FROM orgu_types_adv_md_rec WHERE type_id = ' . $this->db->quote($this->getId(), 'integer');
456  $set = $this->db->query($sql);
457  while ($rec = $this->db->fetchObject($set)) {
458  $amd_record = new ilAdvancedMDRecord($rec->rec_id);
459  if ($a_only_active) {
460  if ($amd_record->isActive()) {
461  $this->amd_records_assigned[1][] = $amd_record;
462  }
463  } else {
464  $this->amd_records_assigned[0][] = $amd_record;
465  }
466  }
467 
468  return $this->amd_records_assigned[$active];
469  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getAvailableAdvancedMDRecords()

static ilOrgUnitType::getAvailableAdvancedMDRecords ( )
static

Get all available AdvancedMDRecord objects for OrgUnits/Types.

Returns
array

Definition at line 496 of file class.ilOrgUnitType.php.

References $key, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), array, getId(), getOrgUnitIds(), and ilAdvancedMDRecord\saveObjRecSelection().

Referenced by ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject().

497  {
498  if (is_array(self::$amd_records_available)) {
499  return self::$amd_records_available;
500  }
501  self::$amd_records_available = ilAdvancedMDRecord::_getActivatedRecordsByObjectType('orgu', 'orgu_type');
502 
503  return self::$amd_records_available;
504  }
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()

ilOrgUnitType::getCreateDate ( )
Returns
string

Definition at line 1020 of file class.ilOrgUnitType.php.

References $create_date.

1021  {
1022  return $this->create_date;
1023  }

◆ getDefaultLang()

ilOrgUnitType::getDefaultLang ( )
Returns
string

Definition at line 1002 of file class.ilOrgUnitType.php.

References $default_lang.

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

1003  {
1004  return $this->default_lang;
1005  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitType::getDescription (   $a_lang_code = '')

Get the description of an OrgUnit 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 358 of file class.ilOrgUnitType.php.

References getTranslation().

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

◆ getIcon()

ilOrgUnitType::getIcon ( )
Returns
string

Definition at line 944 of file class.ilOrgUnitType.php.

References $icon.

Referenced by getAllTypes(), getIconPath(), and processAndStoreIconFile().

945  {
946  return $this->icon;
947  }
+ Here is the caller graph for this function:

◆ getIconPath()

ilOrgUnitType::getIconPath (   $append_filename = false)

Return the path to the icon.

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

Definition at line 957 of file class.ilOrgUnitType.php.

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

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

958  {
959  $path = ilUtil::getWebspaceDir() . '/' . self::WEB_DATA_FOLDER . '/' . 'type_' . $this->getId() . '/';
960  if ($append_filename) {
961  $path .= $this->getIcon();
962  }
963 
964  return $path;
965  }
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getId()

ilOrgUnitType::getId ( )
Returns
int

Definition at line 914 of file class.ilOrgUnitType.php.

References $id.

Referenced by getAllTypes(), getAssignedAdvancedMDRecords(), getAvailableAdvancedMDRecords(), getIconPath(), getOrgUnitIds(), getTranslation(), getTranslations(), loadTranslation(), and save().

915  {
916  return $this->id;
917  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilOrgUnitType::getInstance (   $a_id)
static

Public.

Get instance of an ilOrgUnitType object Returns object from cache or from database, returns null if no object was found

Parameters
int$a_idID of the OrgUnit type
Returns
ilOrgUnitType|null

Definition at line 128 of file class.ilOrgUnitType.php.

References $type.

Referenced by ilObjOrgUnit\getOrgUnitType(), and ilObjOrgUnit\setOrgUnitTypeId().

129  {
130  if (!$a_id) {
131  return null;
132  }
133  if (isset(self::$instances[$a_id])) {
134  return self::$instances[$a_id];
135  } else {
136  try {
137  $type = new self($a_id);
138  self::$instances[$a_id] = $type;
139 
140  return $type;
141  } catch (ilOrgUnitTypeException $e) {
142  return null;
143  }
144  }
145  }
Class ilOrgUnitTypeException.
$type
+ Here is the caller graph for this function:

◆ getLastUpdate()

ilOrgUnitType::getLastUpdate ( )
Returns
string

Definition at line 905 of file class.ilOrgUnitType.php.

References $last_update.

906  {
907  return $this->last_update;
908  }

◆ getOrgUnitIds()

ilOrgUnitType::getOrgUnitIds (   $include_deleted = true)

Get an array of IDs of ilObjOrgUnit objects using this type.

Parameters
bool$include_deleted
Returns
array

Definition at line 385 of file class.ilOrgUnitType.php.

References array, and getId().

Referenced by getAvailableAdvancedMDRecords(), and getOrgUnits().

386  {
387  $cache_key = ($include_deleted) ? 1 : 0;
388  if (is_array($this->orgus_ids[$cache_key])) {
389  return $this->orgus_ids[$cache_key];
390  }
391  if ($include_deleted) {
392  $sql = 'SELECT * FROM orgu_data WHERE orgu_type_id = ' . $this->db->quote($this->getId(), 'integer');
393  } else {
394  $sql =
395  'SELECT DISTINCT orgu_id FROM orgu_data od ' . 'JOIN object_reference oref ON oref.obj_id = od.orgu_id ' . 'WHERE od.orgu_type_id = '
396  . $this->db->quote($this->getId(), 'integer') . ' AND oref.deleted IS NULL';
397  }
398  $set = $this->db->query($sql);
399  $this->orgus_ids[$cache_key] = array();
400  while ($rec = $this->db->fetchObject($set)) {
401  $this->orgus_ids[$cache_key][] = $rec->orgu_id;
402  }
403 
404  return $this->orgus_ids[$cache_key];
405  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOrgUnits()

ilOrgUnitType::getOrgUnits (   $include_deleted = true)

Get an array of ilObjOrgUnit objects using this type.

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

Definition at line 415 of file class.ilOrgUnitType.php.

References $id, ilObject\_getAllReferences(), ilObject\_isInTrash(), array, and getOrgUnitIds().

Referenced by save().

416  {
417  $cache_key = ($include_deleted) ? 1 : 0;
418  if (is_array($this->orgus[$cache_key])) {
419  return $this->orgus[$cache_key];
420  }
421  $this->orgus[$cache_key] = array();
422  $ids = $this->getOrgUnitIds($include_deleted);
423  foreach ($ids as $id) {
424  $orgu = new ilObjOrgUnit($id, false);
425  if (!$include_deleted) {
426  // Check if OrgUnit is in trash (each OrgUnit does only have one reference)
427  $ref_ids = ilObject::_getAllReferences($id);
428  $ref_ids = array_values($ref_ids);
429  $ref_id = $ref_ids[0];
430  if (ilObject::_isInTrash($ref_id)) {
431  continue;
432  }
433  }
434  $this->orgus[$cache_key][] = $orgu;
435  }
436 
437  return $this->orgus[$cache_key];
438  }
static _isInTrash($a_ref_id)
checks wether object is in trash
static _getAllReferences($a_id)
get all reference ids of object
getOrgUnitIds($include_deleted=true)
Get an array of IDs of ilObjOrgUnit objects using this type.
Class ilObjOrgUnit.
Create styles array
The data for the language used.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOwner()

ilOrgUnitType::getOwner ( )
Returns
int

Definition at line 887 of file class.ilOrgUnitType.php.

References $owner.

Referenced by getAllTypes().

888  {
889  return $this->owner;
890  }
+ Here is the caller graph for this function:

◆ getTitle()

ilOrgUnitType::getTitle (   $a_lang_code = '')

Get the title of an OrgUnit 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 329 of file class.ilOrgUnitType.php.

References getTranslation().

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

◆ getTranslation()

ilOrgUnitType::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 660 of file class.ilOrgUnitType.php.

References $active_plugins, $lang, array, getDefaultLang(), getId(), IL_COMP_MODULE, loadTranslation(), and user().

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

661  {
662  $lang = ($a_lang_code) ? $a_lang_code : $this->user->getLanguage();
663  $trans_obj = $this->loadTranslation($lang);
664  if (!is_null($trans_obj)) {
665  $translation = $trans_obj->getMember($a_member);
666  // If the translation does exist but is an empty string and there was no lang code given,
667  // substitute default language anyway because an empty string provides no information
668  if (!$a_lang_code && !$translation) {
669  $trans_obj = $this->loadTranslation($this->getDefaultLang());
670 
671  return $trans_obj->getMember($a_member);
672  }
673 
674  return $translation;
675  } else {
676  // If no lang code was given and there was no translation found, return string in default language
677  if (!$a_lang_code) {
678  $trans_obj = $this->loadTranslation($this->getDefaultLang());
679 
680  return $trans_obj->getMember($a_member);
681  }
682 
683  return null;
684  }
685  }
user()
Definition: user.php:4
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()

ilOrgUnitType::getTranslations ( )

Returns the loaded translation objects.

Returns
array

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

References $translations, and getId().

853  {
854  return $this->translations;
855  }
+ Here is the call graph for this function:

◆ loadTranslation()

ilOrgUnitType::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
ilOrgUnitTypeTranslation|null

Definition at line 779 of file class.ilOrgUnitType.php.

References getId(), and ilOrgUnitTypeTranslation\getInstance().

Referenced by getTranslation().

780  {
781  if (isset($this->translations[$a_lang_code])) {
782  return $this->translations[$a_lang_code];
783  } else {
784  $trans_obj = ilOrgUnitTypeTranslation::getInstance($this->getId(), $a_lang_code);
785  if (!is_null($trans_obj)) {
786  $this->translations[$a_lang_code] = $trans_obj;
787 
788  return $trans_obj;
789  }
790  }
791 
792  return null;
793  }
static getInstance($a_orgu_type_id, $a_lang_code)
Public.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processAndStoreIconFile()

ilOrgUnitType::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 614 of file class.ilOrgUnitType.php.

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

615  {
616  if (!$this->updateable()) {
617  return false;
618  }
619  if (!count($file_data) || !$file_data['name']) {
620  return false;
621  }
622  if (!is_dir($this->getIconPath())) {
624  }
625  $filename = $this->getIcon() ? $this->getIcon() : $file_data['name'];
626  $return = ilUtil::moveUploadedFile($file_data['tmp_name'], $filename, $this->getIconPath(true), false);
627 
628  // TODO Resize
629  return $return;
630  }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
updateable()
Helper function to check if this type can be updated.
getIconPath($append_filename=false)
Return the path to the icon.
+ Here is the call graph for this function:

◆ read()

ilOrgUnitType::read ( )
protected

Read object data from database.

Exceptions
ilOrgUnitTypeException

Definition at line 801 of file class.ilOrgUnitType.php.

References setCreateDate(), setIcon(), setLastUpdate(), and setOwner().

Referenced by __construct().

802  {
803  $sql = 'SELECT * FROM ' . self::TABLE_NAME . ' WHERE id = ' . $this->db->quote($this->id, 'integer');
804  $set = $this->db->query($sql);
805  if (!$this->db->numRows($set)) {
806  throw new ilOrgUnitTypeException("OrgUnit type with id {$this->id} does not exist in database");
807  }
808  $rec = $this->db->fetchObject($set);
809  $this->default_lang = $rec->default_lang; // Don't use Setter because of unnecessary plugin checks
810  $this->setCreateDate($rec->create_date);
811  $this->setLastUpdate($rec->last_update);
812  $this->setOwner($rec->owner);
813  $this->setIcon($rec->icon);
814  }
Class ilOrgUnitTypeException.
setIcon($icon)
Set new Icon filename.
setCreateDate($create_date)
setLastUpdate($last_update)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeIconFile()

ilOrgUnitType::removeIconFile ( )

Remove the icon file on disk.

Definition at line 636 of file class.ilOrgUnitType.php.

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

637  {
638  if (!$this->updateable()) {
639  return;
640  }
641  if (is_file($this->getIconPath(true))) {
642  unlink($this->getIconPath(true));
643  $this->setIcon('');
644  }
645  }
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:

◆ save()

ilOrgUnitType::save ( )

Wrapper around create() and update() methods.

Exceptions
ilOrgUnitTypePluginException

Definition at line 251 of file class.ilOrgUnitType.php.

References $orgus, array, getIconPath(), getId(), getOrgUnits(), and League\Flysystem\Adapter\Polyfill\update().

252  {
253  if ($this->getId()) {
254  $this->update();
255  } else {
256  $this->create();
257  }
258  }
update($pash, $contents, Config $config)
+ Here is the call graph for this function:

◆ setCreateDate()

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

Definition at line 1011 of file class.ilOrgUnitType.php.

References $create_date.

Referenced by read().

1012  {
1013  $this->create_date = $create_date;
1014  }
+ Here is the caller graph for this function:

◆ setDescription()

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

Set description of OrgUnit type.

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

Parameters
$a_description
string$a_lang_code

Definition at line 371 of file class.ilOrgUnitType.php.

References $lang, and getDefaultLang().

372  {
373  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
374  $this->setTranslation('description', $a_description, $lang);
375  }
+ Here is the call graph for this function:

◆ setIcon()

ilOrgUnitType::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 ilOrgUnitType::processAndStoreIconFile() to store the file additionally on disk.

If you want to delete the icon, set call ilOrgUnitType::removeIconFile() first and set an empty string here.

Parameters
string$icon
Exceptions
ilOrgUnitTypeException

Definition at line 932 of file class.ilOrgUnitType.php.

References $icon.

Referenced by read(), and removeIconFile().

933  {
934  if ($icon and !preg_match('/\.(svg)$/', $icon)) {
935  throw new ilOrgUnitTypeException('Icon must be set with file extension svg');
936  }
937  $this->icon = $icon;
938  }
Class ilOrgUnitTypeException.
+ Here is the caller graph for this function:

◆ setLastUpdate()

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

Definition at line 896 of file class.ilOrgUnitType.php.

References $last_update.

Referenced by read().

897  {
898  $this->last_update = $last_update;
899  }
+ Here is the caller graph for this function:

◆ setOwner()

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

Definition at line 878 of file class.ilOrgUnitType.php.

References $owner.

Referenced by read().

879  {
880  $this->owner = $owner;
881  }
+ Here is the caller graph for this function:

◆ setTitle()

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

Set title of OrgUnit type.

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

Parameters
$a_title
string$a_lang_code

Definition at line 342 of file class.ilOrgUnitType.php.

References $lang, and getDefaultLang().

343  {
344  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
345  $this->setTranslation('title', $a_title, $lang);
346  }
+ Here is the call graph for this function:

◆ setTranslations()

ilOrgUnitType::setTranslations (   $translations)

Getters & Setters.

Parameters
array$translations

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

References $translations.

842  {
843  $this->translations = $translations;
844  }

◆ updateable()

ilOrgUnitType::updateable ( )
protected

Helper function to check if this type can be updated.

Returns
bool

Definition at line 822 of file class.ilOrgUnitType.php.

Referenced by processAndStoreIconFile(), and removeIconFile().

823  {
824  foreach ($this->getActivePlugins() as $plugin) {
825  if (!$plugin->allowUpdate($this->getId())) {
826  return false;
827  }
828  }
829 
830  return true;
831  }
+ Here is the caller graph for this function:

Field Documentation

◆ $active_plugins

ilOrgUnitType::$active_plugins
protected

Definition at line 79 of file class.ilOrgUnitType.php.

Referenced by getTranslation().

◆ $amd_records_assigned

ilOrgUnitType::$amd_records_assigned
protected

Definition at line 47 of file class.ilOrgUnitType.php.

◆ $amd_records_available

ilOrgUnitType::$amd_records_available
staticprotected

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

◆ $create_date

ilOrgUnitType::$create_date
protected

Definition at line 31 of file class.ilOrgUnitType.php.

Referenced by getCreateDate(), and setCreateDate().

◆ $db

ilOrgUnitType::$db
protected

Definition at line 63 of file class.ilOrgUnitType.php.

◆ $default_lang

ilOrgUnitType::$default_lang = ''
protected

Definition at line 23 of file class.ilOrgUnitType.php.

Referenced by getAllTypes(), getDefaultLang(), and getIconPath().

◆ $icon

ilOrgUnitType::$icon
protected

Definition at line 39 of file class.ilOrgUnitType.php.

Referenced by getIcon(), and setIcon().

◆ $id

ilOrgUnitType::$id = 0
protected

Definition at line 19 of file class.ilOrgUnitType.php.

Referenced by getId(), and getOrgUnits().

◆ $instances

ilOrgUnitType::$instances = array()
staticprotected

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

◆ $last_update

ilOrgUnitType::$last_update
protected

Definition at line 35 of file class.ilOrgUnitType.php.

Referenced by getLastUpdate(), and setLastUpdate().

◆ $lng

ilOrgUnitType::$lng
protected

Definition at line 83 of file class.ilOrgUnitType.php.

Referenced by __construct().

◆ $log

ilOrgUnitType::$log
protected

Definition at line 67 of file class.ilOrgUnitType.php.

◆ $orgus

ilOrgUnitType::$orgus
protected

Definition at line 55 of file class.ilOrgUnitType.php.

Referenced by save().

◆ $orgus_ids

ilOrgUnitType::$orgus_ids
protected

Definition at line 59 of file class.ilOrgUnitType.php.

◆ $owner

ilOrgUnitType::$owner
protected

Definition at line 27 of file class.ilOrgUnitType.php.

Referenced by getOwner(), and setOwner().

◆ $pluginAdmin

ilOrgUnitType::$pluginAdmin
protected

Definition at line 75 of file class.ilOrgUnitType.php.

◆ $translations

ilOrgUnitType::$translations = array()
protected

Definition at line 43 of file class.ilOrgUnitType.php.

Referenced by getTranslations(), and setTranslations().

◆ $user

ilOrgUnitType::$user
protected

Definition at line 71 of file class.ilOrgUnitType.php.

◆ TABLE_NAME

const ilOrgUnitType::TABLE_NAME = 'orgu_types'

Definition at line 11 of file class.ilOrgUnitType.php.

◆ WEB_DATA_FOLDER

const ilOrgUnitType::WEB_DATA_FOLDER = 'orgu_data'

Folder in ILIAS webdir to store the icons.

Definition at line 15 of file class.ilOrgUnitType.php.


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