ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 101 of file class.ilOrgUnitType.php.

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

101  {
102  global $ilDB, $ilLog, $ilUser, $ilPluginAdmin, $lng;
103  $this->db = $ilDB;
104  $this->log = $ilLog;
105  $this->user = $ilUser;
106  $this->pluginAdmin = $ilPluginAdmin;
107  $this->lng = $lng;
108  if ($a_id) {
109  $this->id = (int)$a_id;
110  $this->read();
111  }
112  }
read()
Read object data from database.
global $ilUser
Definition: imgupload.php:15
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 150 of file class.ilOrgUnitType.php.

References $default_lang, $ilDB, $lang, getDefaultLang(), getIcon(), getId(), getOwner(), and getTranslation().

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

150  {
151  global $ilDB;
152  $sql = 'SELECT id FROM ' . self::TABLE_NAME;
153  $set = $ilDB->query($sql);
154  $types = array();
155  while ($rec = $ilDB->fetchObject($set)) {
156  $type = new self($rec->id);
157  $types[] = $type;
158  self::$instances[$rec->id] = $type;
159  }
160 
161  return $types;
162  }
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 433 of file class.ilOrgUnitType.php.

References getId().

433  {
434  $active = ($a_only_active) ? 1 : 0; // Cache key
435  if (is_array($this->amd_records_assigned[$active])) {
436  return $this->amd_records_assigned[$active];
437  }
438  $this->amd_records_assigned[$active] = array();
439  $sql = 'SELECT * FROM orgu_types_adv_md_rec WHERE type_id = ' . $this->db->quote($this->getId(), 'integer');
440  $set = $this->db->query($sql);
441  while ($rec = $this->db->fetchObject($set)) {
442  $amd_record = new ilAdvancedMDRecord($rec->rec_id);
443  if ($a_only_active) {
444  if ($amd_record->isActive()) {
445  $this->amd_records_assigned[1][] = $amd_record;
446  }
447  } else {
448  $this->amd_records_assigned[0][] = $amd_record;
449  }
450  }
451 
452  return $this->amd_records_assigned[$active];
453  }
+ 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 479 of file class.ilOrgUnitType.php.

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

Referenced by ilOrgUnitTypeAdvancedMetaDataFormGUI\saveObject().

479  {
480  if (is_array(self::$amd_records_available)) {
481  return self::$amd_records_available;
482  }
483  self::$amd_records_available = ilAdvancedMDRecord::_getActivatedRecordsByObjectType('orgu', 'orgu_type');
484 
485  return self::$amd_records_available;
486  }
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="")
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 977 of file class.ilOrgUnitType.php.

References $create_date.

977  {
978  return $this->create_date;
979  }

◆ getDefaultLang()

ilOrgUnitType::getDefaultLang ( )
Returns
string

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

References $default_lang.

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

961  {
962  return $this->default_lang;
963  }
+ 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 347 of file class.ilOrgUnitType.php.

References getTranslation().

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

◆ getIcon()

ilOrgUnitType::getIcon ( )
Returns
string

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

References $icon.

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

906  {
907  return $this->icon;
908  }
+ 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 918 of file class.ilOrgUnitType.php.

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

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

918  {
919  $path = ilUtil::getWebspaceDir() . '/' . self::WEB_DATA_FOLDER . '/' . 'type_' . $this->getId() . '/';
920  if ($append_filename) {
921  $path .= $this->getIcon();
922  }
923 
924  return $path;
925  }
$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:

◆ getId()

ilOrgUnitType::getId ( )
Returns
int

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

References $id.

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

878  {
879  return $this->id;
880  }
+ 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 126 of file class.ilOrgUnitType.php.

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

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

◆ getLastUpdate()

ilOrgUnitType::getLastUpdate ( )
Returns
string

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

References $last_update.

870  {
871  return $this->last_update;
872  }

◆ 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 372 of file class.ilOrgUnitType.php.

References getId().

Referenced by getAvailableAdvancedMDRecords(), and getOrgUnits().

372  {
373  $cache_key = ($include_deleted) ? 1 : 0;
374  if (is_array($this->orgus_ids[$cache_key])) {
375  return $this->orgus_ids[$cache_key];
376  }
377  if ($include_deleted) {
378  $sql = 'SELECT * FROM orgu_data WHERE orgu_type_id = ' . $this->db->quote($this->getId(), 'integer');
379  } else {
380  $sql =
381  'SELECT DISTINCT orgu_id FROM orgu_data od ' . 'JOIN object_reference oref ON oref.obj_id = od.orgu_id ' . 'WHERE od.orgu_type_id = '
382  . $this->db->quote($this->getId(), 'integer') . ' AND oref.deleted IS NULL';
383  }
384  $set = $this->db->query($sql);
385  $this->orgus_ids[$cache_key] = array();
386  while ($rec = $this->db->fetchObject($set)) {
387  $this->orgus_ids[$cache_key][] = $rec->orgu_id;
388  }
389 
390  return $this->orgus_ids[$cache_key];
391  }
+ 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 401 of file class.ilOrgUnitType.php.

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

Referenced by save().

401  {
402  $cache_key = ($include_deleted) ? 1 : 0;
403  if (is_array($this->orgus[$cache_key])) {
404  return $this->orgus[$cache_key];
405  }
406  $this->orgus[$cache_key] = array();
407  $ids = $this->getOrgUnitIds($include_deleted);
408  foreach ($ids as $id) {
409  $orgu = new ilObjOrgUnit($id, false);
410  if (!$include_deleted) {
411  // Check if OrgUnit is in trash (each OrgUnit does only have one reference)
412  $ref_ids = ilObject::_getAllReferences($id);
413  $ref_ids = array_values($ref_ids);
414  $ref_id = $ref_ids[0];
415  if ($orgu->_isInTrash($ref_id)) {
416  continue;
417  }
418  }
419  $this->orgus[$cache_key][] = $orgu;
420  }
421 
422  return $this->orgus[$cache_key];
423  }
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.
$ref_id
Definition: sahs_server.php:39
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOwner()

ilOrgUnitType::getOwner ( )
Returns
int

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

References $owner.

Referenced by getAllTypes().

854  {
855  return $this->owner;
856  }
+ 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 320 of file class.ilOrgUnitType.php.

References getTranslation().

320  {
321  return $this->getTranslation('title', $a_lang_code);
322  }
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 637 of file class.ilOrgUnitType.php.

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

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

637  {
638  $lang = ($a_lang_code) ? $a_lang_code : $this->user->getLanguage();
639  $trans_obj = $this->loadTranslation($lang);
640  if (!is_null($trans_obj)) {
641  $translation = $trans_obj->getMember($a_member);
642  // If the translation does exist but is an empty string and there was no lang code given,
643  // substitute default language anyway because an empty string provides no information
644  if (!$a_lang_code && !$translation) {
645  $trans_obj = $this->loadTranslation($this->getDefaultLang());
646 
647  return $trans_obj->getMember($a_member);
648  }
649 
650  return $translation;
651  } else {
652  // If no lang code was given and there was no translation found, return string in default language
653  if (!$a_lang_code) {
654  $trans_obj = $this->loadTranslation($this->getDefaultLang());
655 
656  return $trans_obj->getMember($a_member);
657  }
658 
659  return NULL;
660  }
661  }
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 822 of file class.ilOrgUnitType.php.

References $translations, and getId().

822  {
823  return $this->translations;
824  }
+ 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 753 of file class.ilOrgUnitType.php.

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

Referenced by getTranslation().

753  {
754  if (isset($this->translations[$a_lang_code])) {
755  return $this->translations[$a_lang_code];
756  } else {
757  $trans_obj = ilOrgUnitTypeTranslation::getInstance($this->getId(), $a_lang_code);
758  if (!is_null($trans_obj)) {
759  $this->translations[$a_lang_code] = $trans_obj;
760 
761  return $trans_obj;
762  }
763  }
764 
765  return NULL;
766  }
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 593 of file class.ilOrgUnitType.php.

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

593  {
594  if (!$this->updateable()) {
595  return false;
596  }
597  if (!count($file_data) || !$file_data['name']) {
598  return false;
599  }
600  if (!is_dir($this->getIconPath())) {
602  }
603  $filename = $this->getIcon() ? $this->getIcon() : $file_data['name'];
604  $return = ilUtil::moveUploadedFile($file_data['tmp_name'], $filename, $this->getIconPath(true), false);
605 
606  // TODO Resize
607  return $return;
608  }
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.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
$filename
Definition: buildRTE.php:89
+ Here is the call graph for this function:

◆ read()

ilOrgUnitType::read ( )
protected

Read object data from database.

Exceptions
ilOrgUnitTypeException

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

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

Referenced by __construct().

774  {
775  $sql = 'SELECT * FROM ' . self::TABLE_NAME . ' WHERE id = ' . $this->db->quote($this->id, 'integer');
776  $set = $this->db->query($sql);
777  if (!$this->db->numRows($set)) {
778  throw new ilOrgUnitTypeException("OrgUnit type with id {$this->id} does not exist in database");
779  }
780  $rec = $this->db->fetchObject($set);
781  $this->default_lang = $rec->default_lang; // Don't use Setter because of unnecessary plugin checks
782  $this->setCreateDate($rec->create_date);
783  $this->setLastUpdate($rec->last_update);
784  $this->setOwner($rec->owner);
785  $this->setIcon($rec->icon);
786  }
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 614 of file class.ilOrgUnitType.php.

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

614  {
615  if (!$this->updateable()) {
616  return;
617  }
618  if (is_file($this->getIconPath(true))) {
619  unlink($this->getIconPath(true));
620  $this->setIcon('');
621  }
622  }
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 244 of file class.ilOrgUnitType.php.

References $orgus, getIconPath(), getId(), and getOrgUnits().

244  {
245  if ($this->getId()) {
246  $this->update();
247  } else {
248  $this->create();
249  }
250  }
+ Here is the call graph for this function:

◆ setCreateDate()

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

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

References $create_date.

Referenced by read().

969  {
970  $this->create_date = $create_date;
971  }
+ 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 359 of file class.ilOrgUnitType.php.

References $lang, and getDefaultLang().

359  {
360  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
361  $this->setTranslation('description', $a_description, $lang);
362  }
+ 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 895 of file class.ilOrgUnitType.php.

References $icon.

Referenced by read(), and removeIconFile().

895  {
896  if ($icon AND !preg_match('/\.(svg)$/', $icon)) {
897  throw new ilOrgUnitTypeException('Icon must be set with file extension svg');
898  }
899  $this->icon = $icon;
900  }
Class ilOrgUnitTypeException.
+ Here is the caller graph for this function:

◆ setLastUpdate()

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

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

References $last_update.

Referenced by read().

862  {
863  $this->last_update = $last_update;
864  }
+ Here is the caller graph for this function:

◆ setOwner()

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

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

References $owner.

Referenced by read().

846  {
847  $this->owner = $owner;
848  }
+ 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 332 of file class.ilOrgUnitType.php.

References $lang, and getDefaultLang().

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

◆ setTranslations()

ilOrgUnitType::setTranslations (   $translations)

Getters & Setters.

Parameters
array$translations

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

References $translations.

812  {
813  $this->translations = $translations;
814  }

◆ updateable()

ilOrgUnitType::updateable ( )
protected

Helper function to check if this type can be updated.

Returns
bool

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

Referenced by processAndStoreIconFile(), and removeIconFile().

794  {
795  foreach ($this->getActivePlugins() as $plugin) {
796  if (!$plugin->allowUpdate($this->getId())) {
797  return false;
798  }
799  }
800 
801  return true;
802  }
+ Here is the caller graph for this function:

Field Documentation

◆ $active_plugins

ilOrgUnitType::$active_plugins
protected

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

Referenced by getTranslation().

◆ $amd_records_assigned

ilOrgUnitType::$amd_records_assigned
protected

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

◆ $amd_records_available

ilOrgUnitType::$amd_records_available
staticprotected

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

◆ $create_date

ilOrgUnitType::$create_date
protected

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

Referenced by getCreateDate(), and setCreateDate().

◆ $db

ilOrgUnitType::$db
protected

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

◆ $default_lang

ilOrgUnitType::$default_lang = ''
protected

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

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

◆ $icon

ilOrgUnitType::$icon
protected

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

Referenced by getIcon(), and setIcon().

◆ $id

ilOrgUnitType::$id = 0
protected

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

Referenced by getId(), and getOrgUnits().

◆ $instances

ilOrgUnitType::$instances = array()
staticprotected

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

◆ $last_update

ilOrgUnitType::$last_update
protected

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

Referenced by getLastUpdate(), and setLastUpdate().

◆ $lng

ilOrgUnitType::$lng
protected

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

Referenced by __construct().

◆ $log

ilOrgUnitType::$log
protected

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

◆ $orgus

ilOrgUnitType::$orgus
protected

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

Referenced by save().

◆ $orgus_ids

ilOrgUnitType::$orgus_ids
protected

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

◆ $owner

ilOrgUnitType::$owner
protected

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

Referenced by getOwner(), and setOwner().

◆ $pluginAdmin

ilOrgUnitType::$pluginAdmin
protected

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

◆ $translations

ilOrgUnitType::$translations = array()
protected

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

Referenced by getTranslations(), and setTranslations().

◆ $user

ilOrgUnitType::$user
protected

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

◆ TABLE_NAME

const ilOrgUnitType::TABLE_NAME = 'orgu_types'

Definition at line 15 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 19 of file class.ilOrgUnitType.php.


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