ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMMCustomItemStorage Class Reference

Class ilMMCustomItemStorage. 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 ()
 
- Public Member Functions inherited from CachedActiveRecord
 getCache ()
 
 getCacheIdentifier ()
 
 getTTL ()
 
 __construct ($primary_key=0, arConnector $connector=null)
 
 afterObjectLoad ()
 
 storeObjectToCache ()
 
 buildFromArray (array $array)
 
 store ()
 
 save ()
 
 create ()
 
 copy ($new_id=0)
 
 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())
 
static connector (arConnector $connector)
 
- 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

Member Function Documentation

◆ getAction()

ilMMCustomItemStorage::getAction ( )
Returns
string

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

References $action.

144  : string
145  {
146  return $this->action;
147  }

◆ getCache()

ilMMCustomItemStorage::getCache ( )

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

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

232  : ilGlobalCache
233  {
235  }
static getInstance($component)
Class ilGlobalCache.
+ Here is the call graph for this function:

◆ getDefaultTitle()

ilMMCustomItemStorage::getDefaultTitle ( )
Returns
string

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

References $default_title.

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

210  : string
211  {
212  return $this->default_title;
213  }
+ Here is the caller graph for this function:

◆ getGlobalRoleIDs()

ilMMCustomItemStorage::getGlobalRoleIDs ( )
Returns
array

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

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

188  : array
189  {
190  return explode(",", $this->global_role_ids);
191  }
+ Here is the caller graph for this function:

◆ getIdentifier()

ilMMCustomItemStorage::getIdentifier ( )
Returns
string

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

References $identifier.

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

78  : string
79  {
80  return $this->identifier;
81  }
+ Here is the caller graph for this function:

◆ getType()

ilMMCustomItemStorage::getType ( )
Returns
string

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

References $type.

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

100  : string
101  {
102  return $this->type;
103  }
+ Here is the caller graph for this function:

◆ hasRoleBasedVisibility()

ilMMCustomItemStorage::hasRoleBasedVisibility ( )
Returns
bool

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

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

166  : bool
167  {
168  return false;
169  }
+ Here is the caller graph for this function:

◆ isTopItem()

ilMMCustomItemStorage::isTopItem ( )
Returns
bool

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

References $top_item.

122  : bool
123  {
124  return $this->top_item;
125  }

◆ setAction()

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

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

References $action.

156  {
157  $this->action = $action;
158 
159  return $this;
160  }

◆ setDefaultTitle()

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

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

References $default_title.

222  {
223  $this->default_title = $default_title;
224 
225  return $this;
226  }

◆ setGlobalRoleIDs()

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

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

200  {
201  $this->global_role_ids = implode(",", $global_role_ids);
202 
203  return $this;
204  }

◆ setIdentifier()

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

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

References $identifier.

90  {
91  $this->identifier = $identifier;
92 
93  return $this;
94  }

◆ setRoleBasedVisibility()

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

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

References $role_based_visibility.

178  {
179  $this->role_based_visibility = $role_based_visibility;
180 
181  return $this;
182  }

◆ setTopItem()

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

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

References $top_item.

134  {
135  $this->top_item = $top_item;
136 
137  return $this;
138  }

◆ setType()

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

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

References $type.

112  {
113  $this->type = $type;
114 
115  return $this;
116  }

Field Documentation

◆ $action

ilMMCustomItemStorage::$action = ""
protected

Definition at line 36 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 72 of file class.ilMMCustomItemStorage.php.

◆ $default_title

ilMMCustomItemStorage::$default_title = ""
protected

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

Referenced by getDefaultTitle(), and setDefaultTitle().

◆ $global_role_ids

ilMMCustomItemStorage::$global_role_ids = ""
protected

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

◆ $identifier

ilMMCustomItemStorage::$identifier = ''
protected

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

Referenced by getIdentifier(), and setIdentifier().

◆ $role_based_visibility

ilMMCustomItemStorage::$role_based_visibility = false
protected

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

Referenced by setRoleBasedVisibility().

◆ $top_item

ilMMCustomItemStorage::$top_item = false
protected

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

Referenced by isTopItem(), and setTopItem().

◆ $type

ilMMCustomItemStorage::$type = ''
protected

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

Referenced by getType(), and setType().


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