ILIAS  release_8 Revision v8.23
ilOrgUnitPathStorage Class Reference

Class ilOrgUnitPathStorage. More...

+ Inheritance diagram for ilOrgUnitPathStorage:
+ Collaboration diagram for ilOrgUnitPathStorage:

Public Member Functions

 store ()
 
 getConnectorContainerName ()
 
 getRefId ()
 
 setRefId (int $ref_id)
 
 getPath ()
 
 setPath (string $path)
 
 getObjId ()
 
 setObjId (int $obj_id)
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 Return the Name of your Connector Table More...
 
 setConnectorContainerName (string $connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy (int $new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static getAllOrguRefIds ()
 
static getTextRepresentationOfOrgUnits (bool $sort_by_title=true)
 Get ref id path array. More...
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField (string $old_name, string $new_name)
 
static tableExists ()
 
static fieldExists (string $field_name)
 
static removeDBField (string $field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 never use in ILIAS Core, Plugins only More...
 
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, array $fields=array(' *'), string $operator='=', $both_external=false)
 
static innerjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static leftjoin ( $tablename, $on_this, $on_external, array $fields=array(' *'), string $operator='=', bool $both_external=false)
 
static orderBy ($orderBy, string $orderDirection='ASC')
 
static dateFormat (string $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 (bool $set_raw=true)
 
static getArray (?string $key=null, $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 

Data Fields

const GLUE = ' > '
 
const GLUE_SIMPLE = ' - '
 
const ORG_SEPARATOR = ' | '
 
const TABLE_NAME = 'orgu_path_storage'
 
const MAX_MIDDLE_PATH_LENGTH = 50
 

Protected Attributes

int $ref_id = 0
 
int $obj_id = 0
 
string $path = ''
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Static Protected Attributes

static array $orgu_names = array()
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 Returns an instance of the instatiated calling active record (needs to be done in static methods) : This should be cached somehow More...
 
static fromCamelCase (string $str)
 

Detailed Description

Member Function Documentation

◆ getAllOrguRefIds()

static ilOrgUnitPathStorage::getAllOrguRefIds ( )
static
Returns
string[]

Definition at line 61 of file class.ilOrgUnitPathStorage.php.

Referenced by ilCronUpdateOrgUnitPaths\run().

61  : array
62  {
63  $names = self::getAllOrguNames();
64 
65  return array_keys($names);
66  }
+ Here is the caller graph for this function:

◆ getConnectorContainerName()

ilOrgUnitPathStorage::getConnectorContainerName ( )

Definition at line 204 of file class.ilOrgUnitPathStorage.php.

204  : string
205  {
206  return self::TABLE_NAME;
207  }

◆ getObjId()

ilOrgUnitPathStorage::getObjId ( )

Definition at line 229 of file class.ilOrgUnitPathStorage.php.

References $obj_id.

229  : int
230  {
231  return $this->obj_id;
232  }

◆ getPath()

ilOrgUnitPathStorage::getPath ( )

Definition at line 219 of file class.ilOrgUnitPathStorage.php.

References $path.

219  : string
220  {
221  return $this->path;
222  }

◆ getRefId()

ilOrgUnitPathStorage::getRefId ( )

Definition at line 209 of file class.ilOrgUnitPathStorage.php.

References $ref_id.

Referenced by store().

209  : int
210  {
211  return $this->ref_id;
212  }
+ Here is the caller graph for this function:

◆ getTextRepresentationOfOrgUnits()

static ilOrgUnitPathStorage::getTextRepresentationOfOrgUnits ( bool  $sort_by_title = true)
static

Get ref id path array.

Parameters
bool$sort_by_title
Returns
array

Definition at line 126 of file class.ilOrgUnitPathStorage.php.

References $data, $DIC, $ilDB, $ref_id, $res, ilObjOrgUnitTree\_getInstance(), ilObject\_lookupObjectId(), ActiveRecord\count(), ActiveRecord\getArray(), ilObjOrgUnit\getRootOrgRefId(), and ActiveRecord\orderBy().

Referenced by ilUserSearchOptions\_getSearchableFieldsInfo(), ilMStListCoursesTableGUI\getTextRepresentationOfOrgUnits(), ilMStShowUserCoursesTableGUI\getTextRepresentationOfOrgUnits(), ilParticipantTableGUI\initFilter(), ILIAS\MyStaff\ListCompetences\Skills\ilMStListCompetencesSkillsTableGUI\initFilter(), ILIAS\MyStaff\ListCertificates\ilMStListCertificatesTableGUI\initFilter(), and ILIAS\MyStaff\ListUsers\ilMStListUsersTableGUI\initFilter().

126  : array
127  {
128  if ($sort_by_title) {
129  return ilOrgUnitPathStorage::orderBy('path')->getArray('ref_id', 'path');
130  }
131  return ilOrgUnitPathStorage::getArray('ref_id', 'path');
132  }
static orderBy($orderBy, string $orderDirection='ASC')
static getArray(?string $key=null, $values=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setObjId()

ilOrgUnitPathStorage::setObjId ( int  $obj_id)

Definition at line 234 of file class.ilOrgUnitPathStorage.php.

References $obj_id.

234  : void
235  {
236  $this->obj_id = $obj_id;
237  }

◆ setPath()

ilOrgUnitPathStorage::setPath ( string  $path)

Definition at line 224 of file class.ilOrgUnitPathStorage.php.

References $path.

224  : void
225  {
226  $this->path = $path;
227  }

◆ setRefId()

ilOrgUnitPathStorage::setRefId ( int  $ref_id)

Definition at line 214 of file class.ilOrgUnitPathStorage.php.

References $ref_id.

214  : void
215  {
216  $this->ref_id = $ref_id;
217  }

◆ store()

ilOrgUnitPathStorage::store ( )

Definition at line 68 of file class.ilOrgUnitPathStorage.php.

References $DIC, $ilDB, $res, ilObjOrgUnitTree\_getInstance(), ActiveRecord\create(), getRefId(), ActiveRecord\update(), and ActiveRecord\where().

68  : void
69  {
70  if (self::where(array('ref_id' => $this->getRefId()))->hasSets()) {
71  $this->update();
72  } else {
73  $this->create();
74  }
75  }
+ Here is the call graph for this function:

Field Documentation

◆ $obj_id

int ilOrgUnitPathStorage::$obj_id = 0
protected

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

Referenced by getObjId(), and setObjId().

◆ $orgu_names

array ilOrgUnitPathStorage::$orgu_names = array()
staticprotected

Definition at line 56 of file class.ilOrgUnitPathStorage.php.

◆ $path

string ilOrgUnitPathStorage::$path = ''
protected

Definition at line 54 of file class.ilOrgUnitPathStorage.php.

Referenced by getPath(), and setPath().

◆ $ref_id

int ilOrgUnitPathStorage::$ref_id = 0
protected

◆ GLUE

const ilOrgUnitPathStorage::GLUE = ' > '

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

◆ GLUE_SIMPLE

const ilOrgUnitPathStorage::GLUE_SIMPLE = ' - '

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

◆ MAX_MIDDLE_PATH_LENGTH

const ilOrgUnitPathStorage::MAX_MIDDLE_PATH_LENGTH = 50

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

◆ ORG_SEPARATOR

const ilOrgUnitPathStorage::ORG_SEPARATOR = ' | '

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

◆ TABLE_NAME

const ilOrgUnitPathStorage::TABLE_NAME = 'orgu_path_storage'

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


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