ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilOrgUnitPathStorage Class Reference

Class ilOrgUnitPathStorage. More...

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

Public Member Functions

 store ()
 
 getConnectorContainerName ()
 
 getRefId ()
 
 setRefId ($ref_id)
 
 getPath ()
 
 setPath ($path)
 
 getObjId ()
 
 setObjId ($obj_id)
 
- 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)
 
 fixDateField ($field_name, $value)
 
 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 getAllOrguRefIds ()
 
static getTextRepresentationOfOrgUnits ($sort_by_title=true)
 Get ref id path array. 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 GLUE = ' > '
 
const GLUE_SIMPLE = ' - '
 
const ORG_SEPARATOR = ' | '
 
const TABLE_NAME = 'orgu_path_storage'
 
- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 

Protected Attributes

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

Static Protected Attributes

static $orgu_names = array()
 

Additional Inherited Members

- Protected Member Functions inherited from ActiveRecord
 serializeToCSV ($field)
 This method is called for every field of your instance if you use __asCsv. More...
 
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 
static fromCamelCase ($str)
 

Detailed Description

Member Function Documentation

◆ getAllOrguRefIds()

static ilOrgUnitPathStorage::getAllOrguRefIds ( )
static
Returns
array

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

References $names.

Referenced by ilCronUpdateOrgUnitPaths\run().

49  {
50  $names = self::getAllOrguNames();
51 
52  return array_keys($names);
53  }
+ Here is the caller graph for this function:

◆ getConnectorContainerName()

ilOrgUnitPathStorage::getConnectorContainerName ( )
Returns
string

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

229  {
230  return self::TABLE_NAME;
231  }

◆ getObjId()

ilOrgUnitPathStorage::getObjId ( )
Returns
int

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

References $obj_id.

269  {
270  return $this->obj_id;
271  }

◆ getPath()

ilOrgUnitPathStorage::getPath ( )
Returns
string

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

References $path.

253  {
254  return $this->path;
255  }

◆ getRefId()

ilOrgUnitPathStorage::getRefId ( )
Returns
int

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

References $ref_id.

Referenced by store().

237  {
238  return $this->ref_id;
239  }
+ Here is the caller graph for this function:

◆ getTextRepresentationOfOrgUnits()

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

Get ref id path array.

Parameters
bool$sort_by_title
Returns
array

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

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

Referenced by ilUserSearchOptions\_getSearchableFieldsInfo(), and ilParticipantTableGUI\initFilter().

109  {
110  if ($sort_by_title) {
111  return ilOrgUnitPathStorage::orderBy('path')->getArray('ref_id', 'path');
112  } else {
113  return ilOrgUnitPathStorage::getArray('ref_id', 'path');
114  }
115  }
static getArray($key=null, $values=null)
static orderBy($orderBy, $orderDirection='ASC')
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setObjId()

ilOrgUnitPathStorage::setObjId (   $obj_id)
Parameters
int$obj_id

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

References $obj_id.

277  {
278  $this->obj_id = $obj_id;
279  }

◆ setPath()

ilOrgUnitPathStorage::setPath (   $path)
Parameters
string$path

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

References $path.

261  {
262  $this->path = $path;
263  }

◆ setRefId()

ilOrgUnitPathStorage::setRefId (   $ref_id)
Parameters
int$ref_id

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

References $ref_id.

245  {
246  $this->ref_id = $ref_id;
247  }

◆ store()

ilOrgUnitPathStorage::store ( )

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

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

56  {
57  if (self::where(array( 'ref_id' => $this->getRefId() ))->hasSets()) {
58  $this->update();
59  } else {
60  $this->create();
61  }
62  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

Field Documentation

◆ $obj_id

ilOrgUnitPathStorage::$obj_id = 0
protected

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

Referenced by getObjId(), and setObjId().

◆ $orgu_names

ilOrgUnitPathStorage::$orgu_names = array()
staticprotected

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

◆ $path

ilOrgUnitPathStorage::$path = ''
protected

◆ $ref_id

ilOrgUnitPathStorage::$ref_id = 0
protected

◆ GLUE

const ilOrgUnitPathStorage::GLUE = ' > '

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

◆ GLUE_SIMPLE

const ilOrgUnitPathStorage::GLUE_SIMPLE = ' - '

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

◆ ORG_SEPARATOR

const ilOrgUnitPathStorage::ORG_SEPARATOR = ' | '

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

◆ TABLE_NAME

const ilOrgUnitPathStorage::TABLE_NAME = 'orgu_path_storage'

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


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