ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilOrgUnitType Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilOrgUnitType:

Public Member Functions

 __construct (int $a_id=0)
 
 save ()
 Wrapper around create() and update() methods. More...
 
 getTitle (string $a_lang_code='')
 Get the title of an OrgUnit type. More...
 
 setTitle (string $a_title, string $a_lang_code='')
 Set title of OrgUnit type. More...
 
 getDescription (string $a_lang_code='')
 Get the description of an OrgUnit type. More...
 
 setDescription (string $a_description, string $a_lang_code='')
 Set description of OrgUnit type. More...
 
 getOrgUnitIds (bool $include_deleted=true)
 Get an array of IDs of ilObjOrgUnit objects using this type. More...
 
 getOrgUnits (bool $include_deleted=true)
 Get an array of ilObjOrgUnit objects using this type. More...
 
 getAssignedAdvancedMDRecords (bool $a_only_active=false)
 Get assigned AdvancedMDRecord objects. More...
 
 getActivePlugins ()
 Get array of all acitve plugins for the ilOrgUnitTypeHook plugin slot. More...
 
 setTranslations (array $translations)
 Getters & Setters. More...
 
 getTranslations ()
 Returns the loaded translation objects. More...
 
 setOwner (int $owner)
 
 getOwner ()
 
 setLastUpdate (string $last_update)
 
 getLastUpdate ()
 
 getId ()
 
 withIconIdentifier (string $identifier)
 
 getIconIdentifier ()
 
 getDefaultLang ()
 
 setCreateDate (string $create_date)
 
 getCreateDate ()
 
 removeIconFromIrss (string $identifier)
 
 getIconSrc ()
 

Static Public Member Functions

static getInstance (int $a_id)
 Get instance of an ilOrgUnitType object Returns object from cache or from database, returns null if no object was found. 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'
 

Protected Member Functions

 getTranslation (string $a_member, string $a_lang_code)
 Protected. More...
 
 loadTranslation (string $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

int $id = 0
 
string $default_lang = ''
 
int $owner
 
string $create_date
 
string $last_update
 
string $icon = ''
 
array $translations = array()
 
array $amd_records_assigned
 
array $orgus = []
 
array $orgus_ids = []
 
ilDBInterface $db
 
ILIAS DI LoggingServices $log
 
ilObjUser $user
 
array $active_plugins
 
ilLanguage $lng
 
ilComponentFactory $component_factory
 
IRSS $irss
 

Static Protected Attributes

static array $amd_records_available = null
 
static array $instances = array()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitType

Author
: Stefan Wanzenried sw@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Constructor & Destructor Documentation

◆ __construct()

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

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

References $DIC, ILIAS\Repository\int(), ILIAS\Repository\lng(), read(), and ILIAS\Repository\user().

54  {
55  global $DIC;
56  $this->component_factory = $DIC['component.factory'];
57  $this->db = $DIC->database();
58  $this->log = $DIC->logger();
59  $this->user = $DIC->user();
60  $this->lng = $DIC->language();
61  $this->id = (int) $a_id;
62  if ($a_id) {
63  $this->read();
64  }
65  $this->irss = $DIC['resource_storage'];
66  }
read()
Read object data from database.
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ getActivePlugins()

ilOrgUnitType::getActivePlugins ( )

Get array of all acitve plugins for the ilOrgUnitTypeHook plugin slot.

Returns
array

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

Referenced by getAllTypes(), getAvailableAdvancedMDRecords(), getIconIdentifier(), getTranslation(), save(), and updateable().

597  : array
598  {
599  return iterator_to_array($this->component_factory->getActivePluginsInSlot("orgutypehk"));
600  }
+ Here is the caller graph for this function:

◆ getAllTypes()

static ilOrgUnitType::getAllTypes ( )
static

Get array of all instances of ilOrgUnitType objects.

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

References $DIC, $ilDB, $lang, XapiProxy\$plugin, getActivePlugins(), getDefaultLang(), getIconIdentifier(), getId(), getOwner(), getTranslation(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

Referenced by ilOrgUnitTypeGUI\getTableDataRetrieval(), and ilObjOrgUnitSettingsFormGUI\saveObject().

96  : array
97  {
98  global $DIC;
99  $ilDB = $DIC['ilDB'];
100  $sql = 'SELECT id FROM ' . self::TABLE_NAME;
101  $set = $ilDB->query($sql);
102  $types = array();
103  while ($rec = $ilDB->fetchObject($set)) {
104  $type = new self($rec->id);
105  $types[] = $type;
106  self::$instances[$rec->id] = $type;
107  }
108 
109  return $types;
110  }
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAssignedAdvancedMDRecords()

ilOrgUnitType::getAssignedAdvancedMDRecords ( bool  $a_only_active = false)

Get assigned AdvancedMDRecord objects.

Parameters
bool$a_only_activeTrue if only active AMDRecords are returned
Returns
ilAdvancedMDRecord[]

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

References getId().

358  : array
359  {
360  $active = ($a_only_active) ? 1 : 0; // Cache key
361  if (isset($this->amd_records_assigned[$active])) {
362  return $this->amd_records_assigned[$active];
363  }
364  $this->amd_records_assigned[$active] = [];
365  $sql = 'SELECT * FROM orgu_types_adv_md_rec WHERE type_id = ' . $this->db->quote($this->getId(), 'integer');
366  $set = $this->db->query($sql);
367  while ($rec = $this->db->fetchObject($set)) {
368  $amd_record = new ilAdvancedMDRecord((int) $rec->rec_id);
369  if ($a_only_active) {
370  if ($amd_record->isActive()) {
371  $this->amd_records_assigned[1][] = $amd_record;
372  }
373  } else {
374  $this->amd_records_assigned[0][] = $amd_record;
375  }
376  }
377 
378  return $this->amd_records_assigned[$active];
379  }
+ Here is the call graph for this function:

◆ getAvailableAdvancedMDRecords()

static ilOrgUnitType::getAvailableAdvancedMDRecords ( )
static

Get all available AdvancedMDRecord objects for OrgUnits/Types.

Returns
ilAdvancedMDRecord[]

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

References XapiProxy\$plugin, ilAdvancedMDRecord\_getActivatedRecordsByObjectType(), getActivePlugins(), getId(), getOrgUnitIds(), ILIAS\Repository\lng(), and ilAdvancedMDRecord\saveObjRecSelection().

Referenced by ilOrgUnitTypeGUI\getAvailableAMDRecords().

401  : array
402  {
403  if (is_array(self::$amd_records_available)) {
404  return self::$amd_records_available;
405  }
406  self::$amd_records_available = ilAdvancedMDRecord::_getActivatedRecordsByObjectType('orgu', 'orgu_type');
407 
408  return self::$amd_records_available;
409  }
static _getActivatedRecordsByObjectType(string $a_obj_type, string $a_sub_type="", bool $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 ( )

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

References $create_date.

771  : string
772  {
773  return $this->create_date;
774  }

◆ getDefaultLang()

ilOrgUnitType::getDefaultLang ( )

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

References $default_lang.

Referenced by getAllTypes(), ilOrgUnitTypeGUI\getEditForm(), getTranslation(), setDescription(), and setTitle().

761  : string
762  {
763  return $this->default_lang;
764  }
+ Here is the caller graph for this function:

◆ getDescription()

ilOrgUnitType::getDescription ( string  $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.

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

References getTranslation().

Referenced by ilOrgUnitTypeGUI\getEditForm().

277  : ?string
278  {
279  return $this->getTranslation('description', $a_lang_code);
280  }
getTranslation(string $a_member, string $a_lang_code)
Protected.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIconIdentifier()

ilOrgUnitType::getIconIdentifier ( )

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

References $default_lang, $icon, XapiProxy\$plugin, getActivePlugins(), and ILIAS\Repository\lng().

Referenced by getAllTypes(), getIconSrc(), and save().

724  : string
725  {
726  return $this->icon;
727  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIconSrc()

ilOrgUnitType::getIconSrc ( )

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

References getIconIdentifier().

783  : string
784  {
785  $rid = $this->irss->manage()->find($this->getIconIdentifier());
786  if (!$rid) {
787  return '';
788  }
789  return $this->irss->consume()->src($rid)->getSrc();
790  }
+ Here is the call graph for this function:

◆ getId()

ilOrgUnitType::getId ( )

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

References $id.

Referenced by getAllTypes(), getAssignedAdvancedMDRecords(), getAvailableAdvancedMDRecords(), ilOrgUnitTypeGUI\getEditForm(), getOrgUnitIds(), getTranslation(), getTranslations(), loadTranslation(), and save().

712  : int
713  {
714  return $this->id;
715  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilOrgUnitType::getInstance ( int  $a_id)
static

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

References Vendor\Package\$e, and null.

Referenced by ilObjOrgUnit\getIconsCache(), ilObjOrgUnit\getOrgUnitType(), and ilModulesOrgUnitTest\testIfOrgUnitHasRequiredLocalRoles().

74  : ?ilOrgUnitType
75  {
76  if (!$a_id) {
77  return null;
78  }
79  if (isset(self::$instances[$a_id])) {
80  return self::$instances[$a_id];
81  } else {
82  try {
83  $type = new self($a_id);
84  self::$instances[$a_id] = $type;
85 
86  return $type;
87  } catch (ilOrgUnitTypeException $e) {
88  return null;
89  }
90  }
91  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the caller graph for this function:

◆ getLastUpdate()

ilOrgUnitType::getLastUpdate ( )

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

References $last_update.

707  : string
708  {
709  return $this->last_update;
710  }

◆ getOrgUnitIds()

ilOrgUnitType::getOrgUnitIds ( bool  $include_deleted = true)

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

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

References getId().

Referenced by getAvailableAdvancedMDRecords(), and getOrgUnits().

295  : array
296  {
297  $cache_key = ($include_deleted) ? 1 : 0;
298 
299  if (array_key_exists($cache_key, $this->orgus_ids)
300  && is_array($this->orgus_ids[$cache_key])
301  ) {
302  return $this->orgus_ids[$cache_key];
303  }
304  if ($include_deleted) {
305  $sql = 'SELECT * FROM orgu_data WHERE orgu_type_id = ' . $this->db->quote($this->getId(), 'integer');
306  } else {
307  $sql
308  = 'SELECT DISTINCT orgu_id FROM orgu_data od ' . 'JOIN object_reference oref ON oref.obj_id = od.orgu_id ' . 'WHERE od.orgu_type_id = '
309  . $this->db->quote($this->getId(), 'integer') . ' AND oref.deleted IS NULL';
310  }
311  $set = $this->db->query($sql);
312  $this->orgus_ids[$cache_key] = array();
313  while ($rec = $this->db->fetchObject($set)) {
314  $this->orgus_ids[$cache_key][] = $rec->orgu_id;
315  }
316 
317  return $this->orgus_ids[$cache_key];
318  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOrgUnits()

ilOrgUnitType::getOrgUnits ( bool  $include_deleted = true)

Get an array of ilObjOrgUnit objects using this type.

Parameters
bool$include_deletedTrue if also deleted OrgUnits are returned
Returns
int[]

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

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

Referenced by save().

325  : array
326  {
327  $cache_key = ($include_deleted) ? 1 : 0;
328 
329  if (array_key_exists($cache_key, $this->orgus)
330  && is_array($this->orgus[$cache_key])
331  ) {
332  return $this->orgus[$cache_key];
333  }
334  $this->orgus[$cache_key] = array();
335  $ids = $this->getOrgUnitIds($include_deleted);
336  foreach ($ids as $id) {
337  $orgu = new ilObjOrgUnit($id, false);
338  if (!$include_deleted) {
339  // Check if OrgUnit is in trash (each OrgUnit does only have one reference)
340  $ref_ids = ilObject::_getAllReferences($id);
341  $ref_ids = array_values($ref_ids);
342  $ref_id = $ref_ids[0];
344  continue;
345  }
346  }
347  $this->orgus[$cache_key][] = $orgu;
348  }
349 
350  return $this->orgus[$cache_key];
351  }
static _getAllReferences(int $id)
get all reference ids for object ID
$ref_id
Definition: ltiauth.php:65
getOrgUnitIds(bool $include_deleted=true)
Get an array of IDs of ilObjOrgUnit objects using this type.
static _isInTrash(int $ref_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOwner()

ilOrgUnitType::getOwner ( )

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

References $owner.

Referenced by getAllTypes().

697  : int
698  {
699  return $this->owner;
700  }
+ Here is the caller graph for this function:

◆ getTitle()

ilOrgUnitType::getTitle ( string  $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 empty string.

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

References getTranslation().

Referenced by ilOrgUnitTypeGUI\getEditForm().

257  : string
258  {
259  return $this->getTranslation('title', $a_lang_code) ?? '';
260  }
getTranslation(string $a_member, string $a_lang_code)
Protected.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTranslation()

ilOrgUnitType::getTranslation ( string  $a_member,
string  $a_lang_code 
)
protected

Protected.

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

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

References $lang, XapiProxy\$plugin, getActivePlugins(), getDefaultLang(), getId(), ILIAS\Repository\lng(), loadTranslation(), null, and ILIAS\Repository\user().

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

510  : ?string
511  {
512  $lang = ($a_lang_code) ? $a_lang_code : $this->user->getLanguage();
513  $trans_obj = $this->loadTranslation($lang);
514  if (!is_null($trans_obj)) {
515  $translation = $trans_obj->getMember($a_member);
516  // If the translation does exist but is an empty string and there was no lang code given,
517  // substitute default language anyway because an empty string provides no information
518  if (!$a_lang_code && !$translation) {
519  $trans_obj = $this->loadTranslation($this->getDefaultLang());
520 
521  return $trans_obj->getMember($a_member);
522  }
523 
524  return $translation;
525  } else {
526  // If no lang code was given and there was no translation found, return string in default language
527  if (!$a_lang_code) {
528  $trans_obj = $this->loadTranslation($this->getDefaultLang());
529 
530  return $trans_obj->getMember($a_member);
531  }
532 
533  return null;
534  }
535  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
loadTranslation(string $a_lang_code)
Helper function to load a translation.
$lang
Definition: xapiexit.php:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTranslations()

ilOrgUnitType::getTranslations ( )

Returns the loaded translation objects.

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

References $translations, and getId().

673  : array
674  {
675  return $this->translations;
676  }
+ Here is the call graph for this function:

◆ loadTranslation()

ilOrgUnitType::loadTranslation ( string  $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 608 of file class.ilOrgUnitType.php.

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

Referenced by getTranslation().

609  {
610  if (isset($this->translations[$a_lang_code])) {
611  return $this->translations[$a_lang_code];
612  } else {
613  $trans_obj = ilOrgUnitTypeTranslation::getInstance($this->getId(), $a_lang_code);
614  if (!is_null($trans_obj)) {
615  $this->translations[$a_lang_code] = $trans_obj;
616 
617  return $trans_obj;
618  }
619  }
620 
621  return null;
622  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getInstance(int $a_orgu_type_id, string $a_lang_code)
Get instance of an ilOrgUnitType object Returns object from cache or from database, returns null if no object was found.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilOrgUnitType::read ( )
protected

Read object data from database.

Exceptions
ilOrgUnitTypeException

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

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

Referenced by __construct().

628  : void
629  {
630  $sql = 'SELECT * FROM ' . self::TABLE_NAME . ' WHERE id = ' . $this->db->quote($this->id, 'integer');
631  $set = $this->db->query($sql);
632  if (!$this->db->numRows($set)) {
633  throw new ilOrgUnitTypeException("OrgUnit type with id {$this->id} does not exist in database");
634  }
635  $rec = $this->db->fetchObject($set);
636  $this->default_lang = $rec->default_lang; // Don't use Setter because of unnecessary plugin checks
637  $this->setCreateDate($rec->create_date);
638  $this->setLastUpdate($rec->last_update);
639  $this->setOwner($rec->owner);
640  $this->icon = $rec->icon ?? '';
641  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setCreateDate(string $create_date)
setLastUpdate(string $last_update)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeIconFromIrss()

ilOrgUnitType::removeIconFromIrss ( string  $identifier)

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

Referenced by save().

776  : void
777  {
778  if ($rid = $this->irss->manage()->find($identifier)) {
779  $this->irss->manage()->remove($rid, new ilOrgUnitTypeStakeholder());
780  }
781  }
+ Here is the caller graph for this function:

◆ save()

ilOrgUnitType::save ( )

Wrapper around create() and update() methods.

Exceptions
ilOrgUnitTypePluginException

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

References XapiProxy\$plugin, getActivePlugins(), getIconIdentifier(), getId(), getOrgUnits(), ILIAS\Repository\lng(), and removeIconFromIrss().

188  : void
189  {
190  if ($this->getId() > 0) {
191  $this->update();
192  } else {
193  $this->create();
194  }
195  }
+ Here is the call graph for this function:

◆ setCreateDate()

ilOrgUnitType::setCreateDate ( string  $create_date)

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

References $create_date.

Referenced by read().

767  {
768  $this->create_date = $create_date;
769  }
+ Here is the caller graph for this function:

◆ setDescription()

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

Set description of OrgUnit type.

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

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

References $lang, and getDefaultLang().

Referenced by ilOrgUnitTypeGUI\getEditForm().

286  : void
287  {
288  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
289  $this->setTranslation('description', $a_description, $lang);
290  }
$lang
Definition: xapiexit.php:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLastUpdate()

ilOrgUnitType::setLastUpdate ( string  $last_update)

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

References $last_update.

Referenced by read().

703  {
704  $this->last_update = $last_update;
705  }
+ Here is the caller graph for this function:

◆ setOwner()

ilOrgUnitType::setOwner ( int  $owner)

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

References $owner.

Referenced by read().

693  {
694  $this->owner = $owner;
695  }
+ Here is the caller graph for this function:

◆ setTitle()

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

Set title of OrgUnit type.

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

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

References $lang, and getDefaultLang().

Referenced by ilOrgUnitTypeGUI\getEditForm().

267  {
268  $lang = ($a_lang_code) ? $a_lang_code : $this->getDefaultLang();
269  $this->setTranslation('title', $a_title, $lang);
270  }
$lang
Definition: xapiexit.php:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTranslations()

ilOrgUnitType::setTranslations ( array  $translations)

Getters & Setters.

Parameters
string[]$translations

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

References $translations.

666  {
667  $this->translations = $translations;
668  }

◆ updateable()

ilOrgUnitType::updateable ( )
protected

Helper function to check if this type can be updated.

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

References XapiProxy\$plugin, and getActivePlugins().

646  : bool
647  {
648  foreach ($this->getActivePlugins() as $plugin) {
649  if (!$plugin->allowUpdate($this->getId())) {
650  return false;
651  }
652  }
653 
654  return true;
655  }
getActivePlugins()
Get array of all acitve plugins for the ilOrgUnitTypeHook plugin slot.
+ Here is the call graph for this function:

◆ withIconIdentifier()

ilOrgUnitType::withIconIdentifier ( string  $identifier)

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

717  : self
718  {
719  $clone = clone $this;
720  $clone->icon = $identifier;
721  return $clone;
722  }

Field Documentation

◆ $active_plugins

array ilOrgUnitType::$active_plugins
protected

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

◆ $amd_records_assigned

array ilOrgUnitType::$amd_records_assigned
protected

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

◆ $amd_records_available

array ilOrgUnitType::$amd_records_available = null
staticprotected

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

◆ $component_factory

ilComponentFactory ilOrgUnitType::$component_factory
protected

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

◆ $create_date

string ilOrgUnitType::$create_date
protected

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

Referenced by getCreateDate(), and setCreateDate().

◆ $db

ilDBInterface ilOrgUnitType::$db
protected

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

◆ $default_lang

string ilOrgUnitType::$default_lang = ''
protected

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

Referenced by getDefaultLang(), and getIconIdentifier().

◆ $icon

string ilOrgUnitType::$icon = ''
protected

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

Referenced by getIconIdentifier().

◆ $id

int ilOrgUnitType::$id = 0
protected

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

Referenced by getId().

◆ $instances

array ilOrgUnitType::$instances = array()
staticprotected
Parameters
self[]

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

◆ $irss

IRSS ilOrgUnitType::$irss
protected

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

◆ $last_update

string ilOrgUnitType::$last_update
protected

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

Referenced by getLastUpdate(), and setLastUpdate().

◆ $lng

ilLanguage ilOrgUnitType::$lng
protected

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

◆ $log

ILIAS DI LoggingServices ilOrgUnitType::$log
protected

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

◆ $orgus

array ilOrgUnitType::$orgus = []
protected

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

◆ $orgus_ids

array ilOrgUnitType::$orgus_ids = []
protected

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

◆ $owner

int ilOrgUnitType::$owner
protected

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

Referenced by getOwner(), and setOwner().

◆ $translations

array ilOrgUnitType::$translations = array()
protected

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

Referenced by getTranslations(), and setTranslations().

◆ $user

ilObjUser ilOrgUnitType::$user
protected

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

◆ TABLE_NAME

const ilOrgUnitType::TABLE_NAME = 'orgu_types'

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


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