ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilContainer Class Reference

Class ilContainer. More...

+ Inheritance diagram for ilContainer:
+ Collaboration diagram for ilContainer:

Public Member Functions

 ilContainer ($a_id=0, $a_call_by_reference=true)
 Constructor @access public. More...
 
 createContainerDirectory ()
 Create directory for the container. More...
 
 getContainerDirectory ()
 Get the container directory. More...
 
 _getContainerDirectory ($a_id)
 Get the container directory. More...
 
 getBigIconPath ()
 Get path for big icon. More...
 
 getSmallIconPath ()
 Get path for small icon. More...
 
 getTinyIconPath ()
 Get path for tiny icon. More...
 
 getCustomIconPath ()
 Get path for custom icon. More...
 
 setHiddenFilesFound ($a_hiddenfilesfound)
 Set Found hidden files (set by getSubItems). More...
 
 getHiddenFilesFound ()
 Get Found hidden files (set by getSubItems). More...
 
 getStyleSheetId ()
 get ID of assigned style sheet object More...
 
 setStyleSheetId ($a_style_id)
 set ID of assigned style sheet object More...
 
 _lookupContainerSetting ($a_id, $a_keyword, $a_default_value=NULL)
 Lookup a container setting. More...
 
 _writeContainerSetting ($a_id, $a_keyword, $a_value)
 
 _lookupIconPath ($a_id, $a_size="big")
 lookup icon path More...
 
 saveIcons ($a_custom_icon)
 save container icons More...
 
 removeCustomIcon ()
 remove small icon More...
 
 cloneObject ($a_target_id, $a_copy_id=0)
 Clone container settings. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies (container sorting) More...
 
 cloneAllObject ($session_id, $client_id, $new_type, $ref_id, $clone_source, $options, $soap_call=false, $a_submode=1)
 clone all objects according to this container More...
 
 getViewMode ()
 Get container view mode. More...
 
 getOrderType ()
 Get order type default implementation. More...
 
 setOrderType ($a_value)
 
 getSubItems ($a_admin_panel_enabled=false, $a_include_side_block=false, $a_get_single=0)
 Get subitems of container. More...
 
 gotItems ()
 Check whether we got any items. More...
 
 addAdditionalSubItemInformation (&$object)
 Add additional information to sub item, e.g. More...
 
 getGroupedObjTypes ()
 Get grouped repository object types. More...
 
 enablePageEditing ()
 Check whether page editing is allowed for container. More...
 
 create ()
 Create. More...
 
 update ()
 Update. More...
 
 read ()
 read More...
 
- Public Member Functions inherited from ilObject
 ilObject ($a_id=0, $a_reference=true)
 Constructor @access public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ($a_force_db=false)
 read object data from db into object More...
 
 getId ()
 get object id @access public More...
 
 setId ($a_id)
 set object id @access public More...
 
 setRefId ($a_id)
 set reference id @access public More...
 
 getRefId ()
 get reference id @access public More...
 
 getType ()
 get object type @access public More...
 
 setType ($a_type)
 set object type @access public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title @access public More...
 
 getUntranslatedTitle ()
 get untranslated object title @access public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date @access public More...
 
 getLastUpdateDate ()
 get last update date @access public More...
 
 getDiskUsage ()
 
 setObjDataRecord ($a_record)
 set object_data record (note: this method should only be called from the ilObjectFactory class) More...
 
 create ()
 create More...
 
 update ()
 update object in db More...
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 updateOwner ()
 update owner of object in db More...
 
 _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
 _lookupOwner ($a_id)
 lookup object owner More...
 
 _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
 _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
 _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
 _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
 _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
 _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
 _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
 _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
 _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object More...
 
 setParentRolePermissions ($a_parent_ref)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 count references of object More...
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) @access public More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event passed, each object may decide how it reacts. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false)
 Clone object permissions, put in tree ... More...
 
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies. More...
 
 cloneMetaData ($target_obj)
 Copy meta data. More...
 
 _lookupCreationDate ($a_id)
 Lookup creation date. More...
 
 getPossibleSubObjects ($a_filter=true)
 get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static _getContainerSettings ($a_id)
 
static _deleteContainerSettings ($a_id, $a_keyword=null, $a_keyword_like=false)
 
static _exportContainerSettings (ilXmlWriter $a_xml, $a_obj_id)
 
static getCompleteDescriptions (array $objects)
 overwrites description fields to long or short description in an assoc array keys needed (obj_id and description) More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId ($a_import_id)
 
static _lookupImportId ($a_obj_id)
 
static _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupObjId ($a_id)
 
static setDeletedDates ($a_ref_ids)
 Set deleted date @global type $ilDB. More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data@access public More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $a_obj_ids)
 Get long description data. More...
 
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns. More...
 
static fixMissingTitles ($a_type, array &$a_obj_title_map)
 Try to fix missing object titles. More...
 
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course. More...
 

Data Fields

const VIEW_SESSIONS = 0
 
const VIEW_OBJECTIVE = 1
 
const VIEW_TIMING = 2
 
const VIEW_ARCHIVE = 3
 
const VIEW_SIMPLE = 4
 
const VIEW_BY_TYPE = 5
 
const VIEW_INHERIT = 6
 
const VIEW_DEFAULT = self::VIEW_BY_TYPE
 
const SORT_TITLE = 0
 
const SORT_MANUAL = 1
 
const SORT_ACTIVATION = 2
 
const SORT_INHERIT = 3
 
const SORT_CREATION = 4
 
const SORT_DIRECTION_ASC = 0
 
const SORT_DIRECTION_DESC = 1
 
const SORT_NEW_ITEMS_POSITION_TOP = 0
 
const SORT_NEW_ITEMS_POSITION_BOTTOM = 1
 
const SORT_NEW_ITEMS_ORDER_TITLE = 0
 
const SORT_NEW_ITEMS_ORDER_CREATION = 1
 
const SORT_NEW_ITEMS_ORDER_ACTIVATION = 2
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 max length of object title More...
 
const DESC_LENGTH = 128
 
 $ilias
 
 $lng
 
 $id
 
 $ref_id
 
 $type
 
 $title
 
 $untranslatedTitle
 
 $desc
 
 $long_desc
 
 $owner
 
 $create_date
 
 $last_update
 
 $import_id
 
 $register = false
 
 $referenced
 
 $objectList
 
 $max_title
 
 $max_desc
 
 $add_dots
 
 $obj_data_record
 object_data record More...
 

Static Public Attributes

static $data_preloaded = false
 

Protected Attributes

 $order_type = 0
 
 $hiddenfilesfound = false
 

Detailed Description

Class ilContainer.

Base class for all container objects (categories, courses, groups)

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

◆ _deleteContainerSettings()

static ilContainer::_deleteContainerSettings (   $a_id,
  $a_keyword = null,
  $a_keyword_like = false 
)
static

Definition at line 270 of file class.ilContainer.php.

271 {
272 global $ilDB;
273
274 if(!$a_id)
275 {
276 return;
277 }
278
279 $sql = "DELETE FROM container_settings WHERE ".
280 " id = ".$ilDB->quote($a_id ,'integer');
281 if($a_keyword)
282 {
283 if(!$a_keyword_like)
284 {
285 $sql .= " AND keyword = ".$ilDB->quote($a_keyword, "text");
286 }
287 else
288 {
289 $sql .= " AND ".$ilDB->like("keyword", "text", $a_keyword);
290 }
291 }
292 $ilDB->manipulate($sql);
293 }
global $ilDB

References $ilDB.

Referenced by ilObjCategoryGUI\updateTaxonomySettingsObject().

+ Here is the caller graph for this function:

◆ _exportContainerSettings()

static ilContainer::_exportContainerSettings ( ilXmlWriter  $a_xml,
  $a_obj_id 
)
static

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

296 {
297 // container settings
298 $settings = self::_getContainerSettings($a_obj_id);
299 if(sizeof($settings))
300 {
301 $a_xml->xmlStartTag("ContainerSettings");
302
303 foreach($settings as $keyword => $value)
304 {
305 // :TODO: proper custom icon export/import
306 if(stristr($keyword, "icon"))
307 {
308 continue;
309 }
310
311 $a_xml->xmlStartTag(
312 'ContainerSetting',
313 array(
314 'id' => $keyword,
315 )
316 );
317
318 $a_xml->xmlData($value);
319 $a_xml->xmlEndTag("ContainerSetting");
320 }
321
322 $a_xml->xmlEndTag("ContainerSettings");
323 }
324 }
static _getContainerSettings($a_id)
xmlEndTag($tag)
Writes an endtag.
xmlData($data, $encode=TRUE, $escape=TRUE)
Writes data.
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.

References _getContainerSettings(), ilXmlWriter\xmlData(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

Referenced by ilCategoryXmlWriter\export(), ilCourseXMLWriter\start(), and ilGroupXMLWriter\start().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getContainerDirectory()

ilContainer::_getContainerDirectory (   $a_id)

Get the container directory.

Returns
string container directory

Definition at line 122 of file class.ilContainer.php.

123 {
124 return ilUtil::getWebspaceDir()."/container_data/obj_".$a_id;
125 }
static getWebspaceDir($mode="filesystem")
get webspace directory

References ilUtil\getWebspaceDir().

Referenced by ilObject\_getIcon(), _lookupIconPath(), and getContainerDirectory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getContainerSettings()

static ilContainer::_getContainerSettings (   $a_id)
static

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

254 {
255 global $ilDB;
256
257 $res = array();
258
259 $sql = "SELECT * FROM container_settings WHERE ".
260 " id = ".$ilDB->quote($a_id ,'integer');
261 $set = $ilDB->query($sql);
262 while($row = $ilDB->fetchAssoc($set))
263 {
264 $res[$row["keyword"]] = $row["value"];
265 }
266
267 return $res;
268 }

References $ilDB, $res, and $row.

Referenced by _exportContainerSettings(), ilObjCategoryGUI\getActiveBlocks(), and ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId().

+ Here is the caller graph for this function:

◆ _lookupContainerSetting()

ilContainer::_lookupContainerSetting (   $a_id,
  $a_keyword,
  $a_default_value = NULL 
)

Lookup a container setting.

Parameters
intcontainer id
stringsetting keyword
Returns
string setting value

Definition at line 215 of file class.ilContainer.php.

216 {
217 global $ilDB;
218
219 $q = "SELECT * FROM container_settings WHERE ".
220 " id = ".$ilDB->quote($a_id ,'integer')." AND ".
221 " keyword = ".$ilDB->quote($a_keyword ,'text');
222 $set = $ilDB->query($q);
223 $rec = $set->fetchRow(DB_FETCHMODE_ASSOC);
224
225 if(isset($rec['value']))
226 {
227 return $rec["value"];
228 }
229 if($a_default_value === NULL)
230 {
231 return '';
232 }
233 return $a_default_value;
234 }
const DB_FETCHMODE_ASSOC
Definition: class.ilDB.php:10

References $ilDB, and DB_FETCHMODE_ASSOC.

Referenced by ilObject\_getIcon(), ilAdvancedMDRecord\_getSelectedRecordsByObject(), _lookupIconPath(), ilContainerGUI\editPageContentObject(), ilContainerGUI\editPageFrameObject(), ilContainerGUI\forwardToPageObject(), ilTaxonomyClassificationProvider\getActiveTaxonomiesForParentRefId(), ilContainerGUI\getContainerPageHTML(), ilObjCategoryListGUI\getInfoScreenStatus(), ilTaxMDGUI\getSelectableTaxonomies(), ilObjCategoryGUI\getTabs(), ilObjectMetaDataGUI\hasAdvancedMDSettings(), ilObject\hasAutoRating(), ilObjCategoryGUI\ilObjCategoryGUI(), ilObjRootFolderGUI\initEditForm(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilContainerGUI\initStylePropertiesForm(), ilObjectListGUI\insertCommands(), ilTaggingClassificationProvider\isActive(), ilColumnGUI\isGloballyActivated(), ilCalendarSettings\lookupCalendarActivated(), ilObjectDataSet\readData(), ilContainerGUI\savePageContentObject(), ilObjRootFolderGUI\setTitleAndDescription(), and ilContainerGUI\setTitleAndDescription().

+ Here is the caller graph for this function:

◆ _lookupIconPath()

ilContainer::_lookupIconPath (   $a_id,
  $a_size = "big" 
)

lookup icon path

Parameters
int$a_idcontainer object id
string$a_size"big" | "small"

Definition at line 332 of file class.ilContainer.php.

333 {
334 if ($a_size == "")
335 {
336 $a_size = "big";
337 }
338 $size = $a_size;
339
340 if (ilContainer::_lookupContainerSetting($a_id, "icon_custom"))
341 {
342 $cont_dir = ilContainer::_getContainerDirectory($a_id);
343
344 $file_name = $cont_dir."/icon_custom.svg";
345 if (is_file($file_name))
346 {
347 return $file_name;
348 }
349 }
350
351 return "";
352 }
$size
Definition: RandomTest.php:79
_lookupContainerSetting($a_id, $a_keyword, $a_default_value=NULL)
Lookup a container setting.
_getContainerDirectory($a_id)
Get the container directory.

References $size, _getContainerDirectory(), and _lookupContainerSetting().

Referenced by ilPDSelectedItemsBlockGUI\addParentRow(), ilShopPurchaseGUI\addStandardRow(), ilContainerGUI\addStandardRow(), ilPDSelectedItemsBlockGUI\addStandardRow(), getBigIconPath(), getCustomIconPath(), getSmallIconPath(), getTinyIconPath(), and ilContainerGUI\setTitleAndDescription().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _writeContainerSetting()

ilContainer::_writeContainerSetting (   $a_id,
  $a_keyword,
  $a_value 
)

Definition at line 236 of file class.ilContainer.php.

237 {
238 global $ilDB;
239
240 $query = "DELETE FROM container_settings WHERE ".
241 "id = ".$ilDB->quote($a_id,'integer')." ".
242 "AND keyword = ".$ilDB->quote($a_keyword,'text');
243 $res = $ilDB->manipulate($query);
244
245 $query = "INSERT INTO container_settings (id, keyword, value) VALUES (".
246 $ilDB->quote($a_id ,'integer').", ".
247 $ilDB->quote($a_keyword ,'text').", ".
248 $ilDB->quote($a_value ,'text').
249 ")";
250 $res = $ilDB->manipulate($query);
251 }

References $ilDB, $query, and $res.

Referenced by cloneObject(), ilCategoryXmlParser\handlerEndTag(), ilCourseXMLParser\handlerEndTag(), ilGroupXMLParser\handlerEndTag(), ilObjectDataSet\importRecord(), ilAdvancedMetaDataImporter\importXmlRepresentation(), removeCustomIcon(), ilObjStudyProgramme\saveIcons(), saveIcons(), ilContainerGUI\savePageContentObject(), ilObjRootFolderGUI\updateObject(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), ilObjCategoryGUI\updateTaxonomySettingsObject(), ilObjectServiceSettingsGUI\updateToolSettings(), and ilContainerGUI\useNewEditorObject().

+ Here is the caller graph for this function:

◆ addAdditionalSubItemInformation()

ilContainer::addAdditionalSubItemInformation ( $object)

Add additional information to sub item, e.g.

used in courses for timings information etc.

Reimplemented in ilObjCategory, ilObjCourse, ilObjFolder, ilObjGroup, and ilObjRootFolder.

Definition at line 755 of file class.ilContainer.php.

756 {
757 }

Referenced by getSubItems().

+ Here is the caller graph for this function:

◆ cloneAllObject()

ilContainer::cloneAllObject (   $session_id,
  $client_id,
  $new_type,
  $ref_id,
  $clone_source,
  $options,
  $soap_call = false,
  $a_submode = 1 
)

clone all objects according to this container

Parameters
string$session_id
string$client_id
string$new_type
int$ref_id
int$clone_source
array$options
boolforce soap
intsubmode 1 => copy all, 2 => copy content
Returns
new refid if clone has finished or parameter ref id if cloning is still in progress
array(copy_id => xyz, ref_id => new ref_id)

Definition at line 511 of file class.ilContainer.php.

512 {
513 global $ilLog;
514
515 include_once('./Services/Link/classes/class.ilLink.php');
516 include_once('Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
517
518 global $ilAccess,$ilErr,$rbacsystem,$tree,$ilUser;
519
520 // Save wizard options
522 $wizard_options = ilCopyWizardOptions::_getInstance($copy_id);
523 $wizard_options->saveOwner($ilUser->getId());
524 $wizard_options->saveRoot($clone_source);
525
526 // add entry for source container
527 $wizard_options->initContainer($clone_source, $ref_id);
528
529 foreach($options as $source_id => $option)
530 {
531 $wizard_options->addEntry($source_id,$option);
532 }
533 $wizard_options->read();
534 $wizard_options->storeTree($clone_source);
535
536 include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
538 {
539 ilLoggerFactory::getLogger('obj')->info('Copy content only...');
540 ilLoggerFactory::getLogger('obj')->debug('Added mapping, source ID: '.$clone_source.', target ID: '.$ref_id);
541 $wizard_options->read();
542 $wizard_options->dropFirstNode();
543 $wizard_options->appendMapping($clone_source,$ref_id);
544 }
545
546
547 #print_r($options);
548 // Duplicate session to avoid logout problems with backgrounded SOAP calls
549 $new_session_id = ilSession::_duplicate($session_id);
550 // Start cloning process using soap call
551 include_once 'Services/WebServices/SOAP/classes/class.ilSoapClient.php';
552
553 $soap_client = new ilSoapClient();
554 $soap_client->setResponseTimeout(5);
555 $soap_client->enableWSDL(true);
556
557 $ilLog->write(__METHOD__.': Trying to call Soap client...');
558 if($soap_client->init())
559 {
560 ilLoggerFactory::getLogger('obj')->info('Calling soap clone method');
561 $res = $soap_client->call('ilClone',array($new_session_id.'::'.$client_id, $copy_id));
562 }
563 else
564 {
565 ilLoggerFactory::getLogger('obj')->warning('SOAP clone call failed. Calling clone method manually');
566 $wizard_options->disableSOAP();
567 $wizard_options->read();
568 include_once('./webservice/soap/include/inc.soap_functions.php');
569 $res = ilSoapFunctions::ilClone($new_session_id.'::'.$client_id, $copy_id);
570 }
571 return array(
572 'copy_id' => $copy_id,
573 'ref_id' => (int) $res
574 );
575 }
static _allocateCopyId()
Allocate a copy for further entries.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static getLogger($a_component_id)
Get component logger.
static _duplicate($a_session_id)
Duplicate session.
static ilClone($sid, $copy_identifier)
$client_id
if(!is_array($argv)) $options
global $ilUser
Definition: imgupload.php:15

References $client_id, $ilErr, $ilLog, $ilUser, $options, ilObject\$ref_id, $res, ilCopyWizardOptions\_allocateCopyId(), ilSession\_duplicate(), ilCopyWizardOptions\_getInstance(), ilLoggerFactory\getLogger(), ilSoapFunctions\ilClone(), and ilObjectCopyGUI\SUBMODE_CONTENT_ONLY.

+ Here is the call graph for this function:

◆ cloneDependencies()

ilContainer::cloneDependencies (   $a_target_id,
  $a_copy_id 
)

Clone object dependencies (container sorting)

@access public

Parameters
inttarget ref id of new course
intcopy id return bool

Reimplemented from ilObject.

Reimplemented in ilObjCategory, ilObjCourse, ilObjFolder, and ilObjGroup.

Definition at line 473 of file class.ilContainer.php.

474 {
475 global $ilLog;
476
477 parent::cloneDependencies($a_target_id, $a_copy_id);
478
479 include_once('./Services/Container/classes/class.ilContainerSorting.php');
480 ilContainerSorting::_getInstance($this->getId())->cloneSorting($a_target_id,$a_copy_id);
481
482 // fix item group references in page content
483 include_once("./Modules/ItemGroup/classes/class.ilObjItemGroup.php");
485
486 include_once('Services/Object/classes/class.ilObjectLP.php');
487 $olp = ilObjectLP::getInstance($this->getId());
488 $collection = $olp->getCollectionInstance();
489 if($collection)
490 {
491 $collection->cloneCollection($a_target_id, $a_copy_id);
492 }
493
494 return true;
495 }
static _getInstance($a_obj_id)
get instance by obj_id
static fixContainerItemGroupRefsAfterCloning($a_source_container, $a_copy_id)
Fix container item group references after a container has been cloned.
static getInstance($a_obj_id)
getId()
get object id @access public

References $ilLog, ilContainerSorting\_getInstance(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilObject\getId(), and ilObjectLP\getInstance().

+ Here is the call graph for this function:

◆ cloneObject()

ilContainer::cloneObject (   $a_target_id,
  $a_copy_id = 0 
)

Clone container settings.

@access public

Parameters
inttarget ref_id
intcopy id
Returns
object new object

Reimplemented in ilObjCategory, ilObjCourse, ilObjFolder, and ilObjGroup.

Definition at line 400 of file class.ilContainer.php.

401 {
402 global $ilLog;
403
404 $new_obj = parent::cloneObject($a_target_id,$a_copy_id);
405
406 include_once('./Services/Container/classes/class.ilContainerSortingSettings.php');
407 #18624 - copy all sorting settings
408 ilContainerSortingSettings::_cloneSettings($this->getId(), $new_obj->getId());
409
410 // copy content page
411 include_once("./Services/Container/classes/class.ilContainerPage.php");
412 if (ilContainerPage::_exists("cont",
413 $this->getId()))
414 {
415 $orig_page = new ilContainerPage($this->getId());
416 $orig_page->copy($new_obj->getId(), "cont", $new_obj->getId());
417 }
418
419 // #20614 - copy style
420 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
421 $style_id = $this->getStyleSheetId();
422 if ($style_id > 0 &&
424 {
425 $style_obj = ilObjectFactory::getInstanceByObjId($style_id);
426 $new_id = $style_obj->ilClone();
427 $new_obj->setStyleSheetId($new_id);
428 $new_obj->update();
429 }
430
431 // #10271 - copy start objects page
432 include_once("./Services/Container/classes/class.ilContainerStartObjectsPage.php");
434 $this->getId()))
435 {
436 $orig_page = new ilContainerStartObjectsPage($this->getId());
437 $orig_page->copy($new_obj->getId(), "cstr", $new_obj->getId());
438 }
439
440 // #10271
441 foreach(self::_getContainerSettings($this->getId()) as $keyword => $value)
442 {
443 self::_writeContainerSetting($new_obj->getId(), $keyword, $value);
444
445 // copy custom icons
446 if($keyword == "icon_custom" &&
447 $value)
448 {
449 // see saveIcons()
450 $new_obj->createContainerDirectory();
451 $tgt_dir = $new_obj->getContainerDirectory();
452 $src_dir = $this->getContainerDirectory();
453 $file = "icon_custom.svg";
454 $src_file = $src_dir."/".$file;
455 if(file_exists($src_file))
456 {
457 copy($src_file, $tgt_dir."/".$file);
458 }
459 }
460 }
461
462 return $new_obj;
463 }
print $file
Container page object.
static _cloneSettings($a_old_id, $a_new_id)
Clone settings.
Container start objects page object.
getStyleSheetId()
get ID of assigned style sheet object
getContainerDirectory()
Get the container directory.
_writeContainerSetting($a_id, $a_keyword, $a_value)
_lookupStandard($a_id)
Lookup standard flag.
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.

References $file, $ilLog, ilContainerSortingSettings\_cloneSettings(), ilPageObject\_exists(), ilObjStyleSheet\_lookupStandard(), _writeContainerSetting(), getContainerDirectory(), ilObject\getId(), ilObjectFactory\getInstanceByObjId(), and getStyleSheetId().

+ Here is the call graph for this function:

◆ create()

ilContainer::create ( )

Create.

Reimplemented from ilObject.

Reimplemented in ilObjGroup, ilObjOrgUnit, and ilObjStudyProgramme.

Definition at line 792 of file class.ilContainer.php.

793 {
794 $ret = parent::create();
795
796 if (((int) $this->getStyleSheetId()) > 0)
797 {
798 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
800 }
801
802 return $ret;
803 }
static writeStyleUsage($a_obj_id, $a_style_id)
Write style usage.

References $ret, ilObject\getId(), getStyleSheetId(), and ilObjStyleSheet\writeStyleUsage().

+ Here is the call graph for this function:

◆ createContainerDirectory()

ilContainer::createContainerDirectory ( )

Create directory for the container.

It is <webspace_dir>/container_data.

Definition at line 92 of file class.ilContainer.php.

93 {
94 $webspace_dir = ilUtil::getWebspaceDir();
95 $cont_dir = $webspace_dir."/container_data";
96 if (!is_dir($cont_dir))
97 {
98 ilUtil::makeDir($cont_dir);
99 }
100 $obj_dir = $cont_dir."/obj_".$this->getId();
101 if (!is_dir($obj_dir))
102 {
103 ilUtil::makeDir($obj_dir);
104 }
105 }
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...

References ilObject\getId(), ilUtil\getWebspaceDir(), and ilUtil\makeDir().

Referenced by ilObjStudyProgramme\saveIcons(), and saveIcons().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enablePageEditing()

ilContainer::enablePageEditing ( )

Check whether page editing is allowed for container.

Definition at line 778 of file class.ilContainer.php.

779 {
780 global $ilSetting;
781
782 // @todo: this will need a more general approach
783 if ($ilSetting->get("enable_cat_page_edit"))
784 {
785 return true;
786 }
787 }
global $ilSetting
Definition: privfeed.php:40

References $ilSetting.

◆ getBigIconPath()

ilContainer::getBigIconPath ( )

Get path for big icon.

Returns
string icon path
Deprecated:
use _lookupIconPath instead

Definition at line 133 of file class.ilContainer.php.

134 {
135 return self::_lookupIconPath($this->getId());
136 }
_lookupIconPath($a_id, $a_size="big")
lookup icon path

References _lookupIconPath(), and ilObject\getId().

Referenced by ilObjCategory\cloneObject(), ilObjCourse\cloneObject(), and ilObjGroup\cloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCompleteDescriptions()

static ilContainer::getCompleteDescriptions ( array  $objects)
static

overwrites description fields to long or short description in an assoc array keys needed (obj_id and description)

Parameters
array$objects
Returns
array

Definition at line 844 of file class.ilContainer.php.

845 {
846 global $ilSetting, $ilObjDataCache;
847 // using long descriptions?
848 $short_desc = $ilSetting->get("rep_shorten_description");
849 $short_desc_max_length = $ilSetting->get("rep_shorten_description_length");
850 if(!$short_desc || $short_desc_max_length != ilObject::DESC_LENGTH)
851 {
852 // using (part of) shortened description
853 if($short_desc && $short_desc_max_length && $short_desc_max_length < ilObject::DESC_LENGTH)
854 {
855 foreach($objects as $key => $object)
856 {
857 $objects[$key]["description"] = ilUtil::shortenText($object["description"], $short_desc_max_length, true);
858 }
859 }
860 // using (part of) long description
861 else
862 {
863 $obj_ids = array();
864 foreach($objects as $key => $object)
865 {
866 $obj_ids[] = $object["obj_id"];
867 }
868 if(sizeof($obj_ids))
869 {
871 foreach($objects as $key => $object)
872 {
873 // #12166 - keep translation, ignore long description
874 if($ilObjDataCache->isTranslatedDescription($object["obj_id"]))
875 {
876 $long_desc[$object["obj_id"]] = $object["description"];
877 }
878 if($short_desc && $short_desc_max_length)
879 {
880 $long_desc[$object["obj_id"]] = ilUtil::shortenText($long_desc[$object["obj_id"]], $short_desc_max_length, true);
881 }
882 $objects[$key]["description"] = $long_desc[$object["obj_id"]];
883 }
884 }
885 }
886 }
887 return $objects;
888 }
const DESC_LENGTH
static getLongDescriptions(array $a_obj_ids)
Get long description data.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.

References $ilSetting, ilObject\$long_desc, ilObject\DESC_LENGTH, ilObject\getLongDescriptions(), and ilUtil\shortenText().

Referenced by getSubItems(), ilContainerContentGUI\renderItem(), and ilContainerContentGUI\renderItemGroup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContainerDirectory()

ilContainer::getContainerDirectory ( )

Get the container directory.

Returns
string container directory

Definition at line 112 of file class.ilContainer.php.

113 {
114 return $this->_getContainerDirectory($this->getId());
115 }

References _getContainerDirectory(), and ilObject\getId().

Referenced by cloneObject(), removeCustomIcon(), ilObjStudyProgramme\saveIcons(), and saveIcons().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCustomIconPath()

ilContainer::getCustomIconPath ( )

Get path for custom icon.

Returns
string icon path

Definition at line 165 of file class.ilContainer.php.

166 {
167 return self::_lookupIconPath($this->getId());
168 }

References _lookupIconPath(), and ilObject\getId().

+ Here is the call graph for this function:

◆ getGroupedObjTypes()

ilContainer::getGroupedObjTypes ( )

Get grouped repository object types.

Returns
array array of object types

Definition at line 764 of file class.ilContainer.php.

765 {
766 global $objDefinition;
767
768 if (empty($this->type_grps))
769 {
770 $this->type_grps = $objDefinition->getGroupedRepositoryObjectTypes($this->getType());
771 }
772 return $this->type_grps;
773 }
getType()
get object type @access public

References ilObject\getType().

Referenced by getSubItems().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHiddenFilesFound()

ilContainer::getHiddenFilesFound ( )

Get Found hidden files (set by getSubItems).

Returns
boolean Found hidden files (set by getSubItems)

Definition at line 186 of file class.ilContainer.php.

187 {
189 }

References $hiddenfilesfound.

◆ getOrderType()

ilContainer::getOrderType ( )

Get order type default implementation.

Reimplemented in ilObjCourse.

Definition at line 588 of file class.ilContainer.php.

589 {
590 return $this->order_type ? $this->order_type : ilContainer::SORT_TITLE;
591 }

References SORT_TITLE.

◆ getSmallIconPath()

ilContainer::getSmallIconPath ( )

Get path for small icon.

Returns
string icon path
Deprecated:
use _lookupIconPath instead

Definition at line 144 of file class.ilContainer.php.

145 {
146 return self::_lookupIconPath($this->getId());
147 }

References _lookupIconPath(), and ilObject\getId().

Referenced by ilObjCategory\cloneObject(), ilObjCourse\cloneObject(), and ilObjGroup\cloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStyleSheetId()

ilContainer::getStyleSheetId ( )

get ID of assigned style sheet object

Definition at line 194 of file class.ilContainer.php.

195 {
196 return $this->style_id;
197 }

Referenced by cloneObject(), create(), and update().

+ Here is the caller graph for this function:

◆ getSubItems()

ilContainer::getSubItems (   $a_admin_panel_enabled = false,
  $a_include_side_block = false,
  $a_get_single = 0 
)

Get subitems of container.

Parameters
booladministration panel enabled
boolside blocks enabled
Returns
array

Definition at line 606 of file class.ilContainer.php.

608 {
609 global $objDefinition, $ilBench, $tree, $ilObjDataCache, $ilUser, $rbacsystem,
611
612 // Caching
613 if (is_array($this->items[(int) $a_admin_panel_enabled][(int) $a_include_side_block]) &&
614 !$a_get_single)
615 {
616 return $this->items[(int) $a_admin_panel_enabled][(int) $a_include_side_block];
617 }
618
619 $type_grps = $this->getGroupedObjTypes();
620 $objects = $tree->getChilds($this->getRefId(), "title");
621
622 $objects = self::getCompleteDescriptions($objects);
623
624 $found = false;
625 $all_ref_ids = array();
626
627 if(!self::$data_preloaded)
628 {
629 include_once("./Services/Object/classes/class.ilObjectListGUIPreloader.php");
631 }
632
633 include_once('Services/Container/classes/class.ilContainerSorting.php');
634 $sort = ilContainerSorting::_getInstance($this->getId());
635
636 // TODO: check this
637 // get items attached to a session
638 include_once './Modules/Session/classes/class.ilEventItems.php';
639 $event_items = ilEventItems::_getItemsOfContainer($this->getRefId());
640
641 foreach ($objects as $key => $object)
642 {
643 if ($a_get_single > 0 && $object["child"] != $a_get_single)
644 {
645 continue;
646 }
647
648 // hide object types in devmode
649 if ($objDefinition->getDevMode($object["type"]) || $object["type"] == "adm"
650 || $object["type"] == "rolf")
651 {
652 continue;
653 }
654
655 // remove inactive plugins
656 if ($objDefinition->isInactivePlugin($object["type"]))
657 {
658 continue;
659 }
660
661 // BEGIN WebDAV: Don't display hidden Files, Folders and Categories
662 if (in_array($object['type'], array('file','fold','cat')))
663 {
664 include_once 'Modules/File/classes/class.ilObjFileAccess.php';
665 if (ilObjFileAccess::_isFileHidden($object['title']))
666 {
667 $this->setHiddenFilesFound(true);
668 if (!$a_admin_panel_enabled)
669 {
670 continue;
671 }
672 }
673 }
674 // END WebDAV: Don't display hidden Files, Folders and Categories
675
676 // including event items!
677 if (!self::$data_preloaded)
678 {
679 $preloader->addItem($object["obj_id"], $object["type"], $object["child"]);
680 }
681
682 // filter out items that are attached to an event
683 if (in_array($object['ref_id'],$event_items))
684 {
685 continue;
686 }
687
688 // filter side block items
689 if(!$a_include_side_block && $objDefinition->isSideBlock($object['type']))
690 {
691 continue;
692 }
693
694 $all_ref_ids[] = $object["child"];
695 }
696
697 // data preloader
698 if (!self::$data_preloaded)
699 {
700 $preloader->preload();
701 unset($preloader);
702
703 self::$data_preloaded = true;
704 }
705
706 foreach($objects as $key => $object)
707 {
708 // see above, objects were filtered
709 if(!in_array($object["child"], $all_ref_ids))
710 {
711 continue;
712 }
713
714 // group object type groups together (e.g. learning resources)
715 $type = $objDefinition->getGroupOfObj($object["type"]);
716 if ($type == "")
717 {
718 $type = $object["type"];
719 }
720
721 // this will add activation properties
722 $this->addAdditionalSubItemInformation($object);
723
724 $this->items[$type][$key] = $object;
725
726 $this->items["_all"][$key] = $object;
727 if ($object["type"] != "sess")
728 {
729 $this->items["_non_sess"][$key] = $object;
730 }
731 }
732
733 $this->items[(int) $a_admin_panel_enabled][(int) $a_include_side_block]
734 = $sort->sortItems($this->items);
735
736 return $this->items[(int) $a_admin_panel_enabled][(int) $a_include_side_block];
737 }
getGroupedObjTypes()
Get grouped repository object types.
static getCompleteDescriptions(array $objects)
overwrites description fields to long or short description in an assoc array keys needed (obj_id and ...
setHiddenFilesFound($a_hiddenfilesfound)
Set Found hidden files (set by getSubItems).
addAdditionalSubItemInformation(&$object)
Add additional information to sub item, e.g.
_getItemsOfContainer($a_ref_id)
static _isFileHidden($a_file_name)
Returns true, if a file with the specified name, is usually hidden from the user.
Preloader for object list GUIs.
getRefId()
get reference id @access public
global $ilBench
Definition: ilias.php:18

References $ilBench, $ilSetting, $ilUser, ilObject\$type, ilContainerSorting\_getInstance(), ilEventItems\_getItemsOfContainer(), ilObjFileAccess\_isFileHidden(), addAdditionalSubItemInformation(), ilObjectListGUI\CONTEXT_REPOSITORY, getCompleteDescriptions(), getGroupedObjTypes(), ilObject\getId(), ilObject\getRefId(), and setHiddenFilesFound().

+ Here is the call graph for this function:

◆ getTinyIconPath()

ilContainer::getTinyIconPath ( )

Get path for tiny icon.

Returns
string icon path
Deprecated:
use _lookupIconPath instead

Definition at line 155 of file class.ilContainer.php.

156 {
157 return self::_lookupIconPath($this->getId());
158 }

References _lookupIconPath(), and ilObject\getId().

Referenced by ilObjCategory\cloneObject(), ilObjCourse\cloneObject(), and ilObjGroup\cloneObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getViewMode()

ilContainer::getViewMode ( )

Get container view mode.

Reimplemented in ilObjCourse, and ilObjFolder.

Definition at line 580 of file class.ilContainer.php.

581 {
583 }

References VIEW_BY_TYPE.

Referenced by ilObjGroup\cloneObject(), ilObjGroup\create(), and ilObjGroup\update().

+ Here is the caller graph for this function:

◆ gotItems()

ilContainer::gotItems ( )

Check whether we got any items.

Definition at line 742 of file class.ilContainer.php.

743 {
744 if (is_array($this->items["_all"]) && count($this->items["_all"]) > 0)
745 {
746 return true;
747 }
748 return false;
749 }

◆ ilContainer()

ilContainer::ilContainer (   $a_id = 0,
  $a_call_by_reference = true 
)

Constructor @access public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

Definition at line 81 of file class.ilContainer.php.

82 {
83 parent::__construct($a_id, $a_call_by_reference);
84 }

Referenced by ilObjOrgUnit\__construct(), ilObjStudyProgramme\__construct(), and ilObjCategory\ilObjCategory().

+ Here is the caller graph for this function:

◆ read()

ilContainer::read ( )

read

@access public

Parameters

return

Reimplemented in ilObjFolder, ilObjGroup, and ilObjStudyProgramme.

Definition at line 826 of file class.ilContainer.php.

827 {
828 parent::read();
829
830 include_once("./Services/Container/classes/class.ilContainerSortingSettings.php");
832
833 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
835 }
static _lookupSortMode($a_obj_id)
lookup sort mode
setOrderType($a_value)
setStyleSheetId($a_style_id)
set ID of assigned style sheet object
static lookupObjectStyle($a_obj_id)
Lookup object style.

References ilContainerSortingSettings\_lookupSortMode(), ilObject\getId(), ilObjStyleSheet\lookupObjectStyle(), setOrderType(), and setStyleSheetId().

+ Here is the call graph for this function:

◆ removeCustomIcon()

ilContainer::removeCustomIcon ( )

remove small icon

Definition at line 384 of file class.ilContainer.php.

385 {
386 $cont_dir = $this->getContainerDirectory();
387 $small_file_name = $cont_dir."/icon_custom.svg";
388 @unlink($small_file_name);
389 ilContainer::_writeContainerSetting($this->getId(), "icon_custom", 0);
390 }

References _writeContainerSetting(), getContainerDirectory(), and ilObject\getId().

Referenced by ilObjStudyProgramme\updateCustomIcon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveIcons()

ilContainer::saveIcons (   $a_custom_icon)

save container icons

Reimplemented in ilObjStudyProgramme.

Definition at line 357 of file class.ilContainer.php.

358 {
359 global $ilDB;
360
362 $cont_dir = $this->getContainerDirectory();
363
364 $file_name = "";
365 if ($a_custom_icon != "")
366 {
367 $file_name = $cont_dir."/icon_custom.svg";
368 ilUtil::moveUploadedFile($a_custom_icon, "icon_custom.svg", $file_name);
369
370 if ($file_name != "" && is_file($file_name))
371 {
372 ilContainer::_writeContainerSetting($this->getId(), "icon_custom", 1);
373 }
374 else
375 {
376 ilContainer::_writeContainerSetting($this->getId(), "icon_custom", 0);
377 }
378 }
379 }
createContainerDirectory()
Create directory for the container.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file

References $ilDB, _writeContainerSetting(), createContainerDirectory(), getContainerDirectory(), ilObject\getId(), and ilUtil\moveUploadedFile().

+ Here is the call graph for this function:

◆ setHiddenFilesFound()

ilContainer::setHiddenFilesFound (   $a_hiddenfilesfound)

Set Found hidden files (set by getSubItems).

Parameters
boolean$a_hiddenfilesfoundFound hidden files (set by getSubItems)

Definition at line 176 of file class.ilContainer.php.

177 {
178 $this->hiddenfilesfound = $a_hiddenfilesfound;
179 }

Referenced by getSubItems().

+ Here is the caller graph for this function:

◆ setOrderType()

ilContainer::setOrderType (   $a_value)

Definition at line 593 of file class.ilContainer.php.

594 {
595 $this->order_type = $a_value;
596 }

Referenced by ilObjCourse\read(), ilObjFolder\read(), ilObjGroup\read(), and read().

+ Here is the caller graph for this function:

◆ setStyleSheetId()

ilContainer::setStyleSheetId (   $a_style_id)

set ID of assigned style sheet object

Definition at line 202 of file class.ilContainer.php.

203 {
204 $this->style_id = $a_style_id;
205 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilContainer::update ( )

Update.

Reimplemented from ilObject.

Reimplemented in ilObjCourse, ilObjGroup, ilObjOrgUnit, and ilObjStudyProgramme.

Definition at line 808 of file class.ilContainer.php.

809 {
810 $ret = parent::update();
811
812 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
814
815 return $ret;
816 }

References $ret, ilObject\getId(), getStyleSheetId(), and ilObjStyleSheet\writeStyleUsage().

+ Here is the call graph for this function:

Field Documentation

◆ $data_preloaded

ilContainer::$data_preloaded = false
static

Definition at line 73 of file class.ilContainer.php.

◆ $hiddenfilesfound

ilContainer::$hiddenfilesfound = false
protected

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

Referenced by getHiddenFilesFound().

◆ $order_type

ilContainer::$order_type = 0
protected

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

◆ SORT_ACTIVATION

◆ SORT_CREATION

◆ SORT_DIRECTION_ASC

◆ SORT_DIRECTION_DESC

const ilContainer::SORT_DIRECTION_DESC = 1

◆ SORT_INHERIT

◆ SORT_MANUAL

◆ SORT_NEW_ITEMS_ORDER_ACTIVATION

◆ SORT_NEW_ITEMS_ORDER_CREATION

◆ SORT_NEW_ITEMS_ORDER_TITLE

◆ SORT_NEW_ITEMS_POSITION_BOTTOM

◆ SORT_NEW_ITEMS_POSITION_TOP

◆ SORT_TITLE

◆ VIEW_ARCHIVE

const ilContainer::VIEW_ARCHIVE = 3

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

◆ VIEW_BY_TYPE

◆ VIEW_DEFAULT

const ilContainer::VIEW_DEFAULT = self::VIEW_BY_TYPE

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

Referenced by ilObjGroup\getViewMode(), and ilObjGroup\translateViewMode().

◆ VIEW_INHERIT

const ilContainer::VIEW_INHERIT = 6

◆ VIEW_OBJECTIVE

◆ VIEW_SESSIONS

◆ VIEW_SIMPLE

◆ VIEW_TIMING

const ilContainer::VIEW_TIMING = 2

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