ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMMCustomItemStorage Class Reference

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

+ Inheritance diagram for ilMMCustomItemStorage:
+ Collaboration diagram for ilMMCustomItemStorage:

Public Member Functions

 getIdentifier ()
 
 setIdentifier (string $identifier)
 
 getType ()
 
 setType (string $type)
 
 isTopItem ()
 
 setTopItem (bool $top_item)
 
 getAction ()
 
 setAction (string $action)
 
 hasRoleBasedVisibility ()
 
 setRoleBasedVisibility (bool $role_based_visibility)
 
 getGlobalRoleIDs ()
 
 setGlobalRoleIDs (array $global_role_ids)
 
 getDefaultTitle ()
 
 setDefaultTitle (string $default_title)
 
 getCache ()
 @inheritDoc More...
 
- Public Member Functions inherited from CachedActiveRecord
 getCache ()
 
 getCacheIdentifier ()
 
 getTTL ()
 
 __construct ($primary_key=0, arConnector $connector=null)
 @inheritDoc More...
 
 afterObjectLoad ()
 
 storeObjectToCache ()
 
 buildFromArray (array $array)
 @inheritDoc More...
 
 store ()
 
 save ()
 
 create ()
 
 copy ($new_id=0)
 @inheritDoc More...
 
 read ()
 
 update ()
 
 delete ()
 
- 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)
 

Protected Attributes

 $identifier = ''
 
 $type = ''
 
 $action = ""
 
 $role_based_visibility = false
 
 $global_role_ids = ""
 
 $default_title = ""
 
 $top_item = false
 
 $connector_container_name = "il_mm_custom_items"
 
- Protected Attributes inherited from ActiveRecord
 $ar_safe_read = true
 
 $connector_container_name = ''
 

Additional Inherited Members

- Static Public Member Functions inherited from CachedActiveRecord
static find ($primary_key, array $add_constructor_args=array())
 @inheritDoc More...
 
static connector (arConnector $connector)
 @inheritDoc 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 inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 
- 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

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 ilMMCustomItemStorage

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 24 of file class.ilMMCustomItemStorage.php.

Member Function Documentation

◆ getAction()

ilMMCustomItemStorage::getAction ( )
Returns
string

Definition at line 160 of file class.ilMMCustomItemStorage.php.

160 : string
161 {
162 return $this->action;
163 }

References $action.

◆ getCache()

ilMMCustomItemStorage::getCache ( )

@inheritDoc

Reimplemented from CachedActiveRecord.

Definition at line 252 of file class.ilMMCustomItemStorage.php.

253 {
255 }
Class ilGlobalCache.
static getInstance($component)

References ilGlobalCache\COMP_GLOBAL_SCREEN, and ilGlobalCache\getInstance().

+ Here is the call graph for this function:

◆ getDefaultTitle()

ilMMCustomItemStorage::getDefaultTitle ( )
Returns
string

Definition at line 230 of file class.ilMMCustomItemStorage.php.

230 : string
231 {
233 }

References $default_title.

Referenced by ILIAS\MainMenu\Provider\CustomMainBarProvider\getSingleCustomItem().

+ Here is the caller graph for this function:

◆ getGlobalRoleIDs()

ilMMCustomItemStorage::getGlobalRoleIDs ( )
Returns
array

Definition at line 208 of file class.ilMMCustomItemStorage.php.

208 : array
209 {
210 return array_map("intval", explode(",", $this->global_role_ids));
211 }

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

+ Here is the caller graph for this function:

◆ getIdentifier()

ilMMCustomItemStorage::getIdentifier ( )
Returns
string

Definition at line 94 of file class.ilMMCustomItemStorage.php.

94 : string
95 {
96 return $this->identifier;
97 }

References $identifier.

Referenced by ILIAS\MainMenu\Provider\CustomMainBarProvider\getSingleCustomItem().

+ Here is the caller graph for this function:

◆ getType()

ilMMCustomItemStorage::getType ( )
Returns
string

Definition at line 116 of file class.ilMMCustomItemStorage.php.

116 : string
117 {
118 return $this->type;
119 }

References $type.

Referenced by ILIAS\MainMenu\Provider\CustomMainBarProvider\getSingleCustomItem().

+ Here is the caller graph for this function:

◆ hasRoleBasedVisibility()

ilMMCustomItemStorage::hasRoleBasedVisibility ( )
Returns
bool

Definition at line 182 of file class.ilMMCustomItemStorage.php.

182 : bool
183 {
184 if ($this->role_based_visibility !== null) {
186 } else {
187 return false;
188 }
189 }

References $role_based_visibility.

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

+ Here is the caller graph for this function:

◆ isTopItem()

ilMMCustomItemStorage::isTopItem ( )
Returns
bool

Definition at line 138 of file class.ilMMCustomItemStorage.php.

138 : bool
139 {
140 return $this->top_item;
141 }

References $top_item.

◆ setAction()

ilMMCustomItemStorage::setAction ( string  $action)
Parameters
string$action
Returns
ilMMCustomItemStorage

Definition at line 171 of file class.ilMMCustomItemStorage.php.

172 {
173 $this->action = $action;
174
175 return $this;
176 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $action.

◆ setDefaultTitle()

ilMMCustomItemStorage::setDefaultTitle ( string  $default_title)
Parameters
string$default_title
Returns
ilMMCustomItemStorage

Definition at line 241 of file class.ilMMCustomItemStorage.php.

242 {
243 $this->default_title = $default_title;
244
245 return $this;
246 }

References $default_title.

◆ setGlobalRoleIDs()

ilMMCustomItemStorage::setGlobalRoleIDs ( array  $global_role_ids)
Parameters
array$global_role_ids
Returns
ilMMCustomItemStorage

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

220 {
221 $this->global_role_ids = implode(",", $global_role_ids);
222
223 return $this;
224 }

References $global_role_ids.

◆ setIdentifier()

ilMMCustomItemStorage::setIdentifier ( string  $identifier)
Parameters
string$identifier
Returns
ilMMCustomItemStorage

Definition at line 105 of file class.ilMMCustomItemStorage.php.

106 {
107 $this->identifier = $identifier;
108
109 return $this;
110 }

References $identifier.

◆ setRoleBasedVisibility()

ilMMCustomItemStorage::setRoleBasedVisibility ( bool  $role_based_visibility)
Parameters
bool$role_based_visibility
Returns
ilMMCustomItemStorage

Definition at line 197 of file class.ilMMCustomItemStorage.php.

198 {
199 $this->role_based_visibility = $role_based_visibility;
200
201 return $this;
202 }

References $role_based_visibility.

◆ setTopItem()

ilMMCustomItemStorage::setTopItem ( bool  $top_item)
Parameters
bool$top_item
Returns
ilMMCustomItemStorage

Definition at line 149 of file class.ilMMCustomItemStorage.php.

150 {
151 $this->top_item = $top_item;
152
153 return $this;
154 }

References $top_item.

◆ setType()

ilMMCustomItemStorage::setType ( string  $type)
Parameters
string$type
Returns
ilMMCustomItemStorage

Definition at line 127 of file class.ilMMCustomItemStorage.php.

128 {
129 $this->type = $type;
130
131 return $this;
132 }

References $type.

Field Documentation

◆ $action

ilMMCustomItemStorage::$action = ""
protected

Definition at line 52 of file class.ilMMCustomItemStorage.php.

Referenced by getAction(), and setAction().

◆ $connector_container_name

ilMMCustomItemStorage::$connector_container_name = "il_mm_custom_items"
protected

Definition at line 88 of file class.ilMMCustomItemStorage.php.

◆ $default_title

ilMMCustomItemStorage::$default_title = ""
protected

Definition at line 76 of file class.ilMMCustomItemStorage.php.

Referenced by getDefaultTitle(), and setDefaultTitle().

◆ $global_role_ids

ilMMCustomItemStorage::$global_role_ids = ""
protected

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

Referenced by setGlobalRoleIDs().

◆ $identifier

ilMMCustomItemStorage::$identifier = ''
protected

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

Referenced by getIdentifier(), and setIdentifier().

◆ $role_based_visibility

ilMMCustomItemStorage::$role_based_visibility = false
protected

◆ $top_item

ilMMCustomItemStorage::$top_item = false
protected

Definition at line 84 of file class.ilMMCustomItemStorage.php.

Referenced by isTopItem(), and setTopItem().

◆ $type

ilMMCustomItemStorage::$type = ''
protected

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

Referenced by getType(), and setType().


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