ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 
- Public Member Functions inherited from CachedActiveRecord
 getCacheIdentifier ()
 
 getTTL ()
 
 __construct (mixed $primary_key=0, ?arConnector $arConnector=null)
 
 afterObjectLoad ()
 
 create ()
 
 read ()
 
 update ()
 
 delete ()
 
- 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 (mixed $primary_key=0)
 
 storeObjectToCache ()
 
 asStdClass ()
 
 asArray ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, string $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)
 

Protected Attributes

string $identifier = ''
 true true true text 256 More...
 
string $type = ''
 true text 128 More...
 
string $action = ""
 true text 4000 More...
 
bool $role_based_visibility = false
 true integer 1 More...
 
string $global_role_ids = null
 true text 4000 More...
 
string $default_title = ""
 true text 4000 More...
 
bool $top_item = false
 true integer 1 More...
 
string $connector_container_name = "il_mm_custom_items"
 
- Protected Attributes inherited from ActiveRecord
bool $ar_safe_read = true
 
string $connector_container_name = ''
 
bool $is_new = true
 

Additional Inherited Members

- 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=[])
 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=[])
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $activeRecord, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static innerjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static leftjoin (string $tablename, $on_this, string $on_external, array $fields=[' *'], string $operator='=', bool $both_external=false)
 
static orderBy (string $orderBy, string $orderDirection='ASC')
 
static dateFormat (string $date_format='d.m.Y - H:i:s')
 
static limit (int $start, int $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $arConnector)
 
static raw (bool $set_raw=true)
 
static getArray (?string $key=null, string|array|null $values=null)
 
static _toCamelCase (string $str, bool $capitalise_first_char=false)
 
- 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

◆ getAction()

ilMMCustomItemStorage::getAction ( )
Returns
string

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

References $action.

147  : string
148  {
149  return $this->action;
150  }

◆ getDefaultTitle()

ilMMCustomItemStorage::getDefaultTitle ( )
Returns
string

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

References $default_title.

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

213  : string
214  {
215  return $this->default_title;
216  }
string $default_title
true text 4000
+ Here is the caller graph for this function:

◆ getGlobalRoleIDs()

ilMMCustomItemStorage::getGlobalRoleIDs ( )
Returns
array

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

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

191  : array
192  {
193  return array_map("intval", explode(",", (string) $this->global_role_ids));
194  }
+ Here is the caller graph for this function:

◆ getIdentifier()

ilMMCustomItemStorage::getIdentifier ( )
Returns
string

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

References $identifier.

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

81  : string
82  {
83  return $this->identifier;
84  }
string $identifier
true true true text 256
+ Here is the caller graph for this function:

◆ getType()

ilMMCustomItemStorage::getType ( )
Returns
string

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

References $type.

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

103  : string
104  {
105  return $this->type;
106  }
+ Here is the caller graph for this function:

◆ hasRoleBasedVisibility()

ilMMCustomItemStorage::hasRoleBasedVisibility ( )
Returns
bool

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

References $role_based_visibility.

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

169  : bool
170  {
172  }
bool $role_based_visibility
true integer 1
+ Here is the caller graph for this function:

◆ isTopItem()

ilMMCustomItemStorage::isTopItem ( )
Returns
bool

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

References $top_item.

125  : bool
126  {
127  return $this->top_item;
128  }

◆ setAction()

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

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

References $action.

159  {
160  $this->action = $action;
161 
162  return $this;
163  }

◆ setDefaultTitle()

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

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

References $default_title.

225  {
226  $this->default_title = $default_title;
227 
228  return $this;
229  }
string $default_title
true text 4000

◆ setGlobalRoleIDs()

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

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

203  {
204  $this->global_role_ids = implode(",", $global_role_ids);
205 
206  return $this;
207  }
string $global_role_ids
true text 4000

◆ setIdentifier()

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

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

References $identifier.

93  {
94  $this->identifier = $identifier;
95 
96  return $this;
97  }
string $identifier
true true true text 256

◆ setRoleBasedVisibility()

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

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

References $role_based_visibility.

181  {
182  $this->role_based_visibility = $role_based_visibility;
183 
184  return $this;
185  }
bool $role_based_visibility
true integer 1

◆ setTopItem()

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

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

References $top_item.

137  {
138  $this->top_item = $top_item;
139 
140  return $this;
141  }

◆ setType()

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

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

References $type.

115  {
116  $this->type = $type;
117 
118  return $this;
119  }

Field Documentation

◆ $action

string ilMMCustomItemStorage::$action = ""
protected

true text 4000

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

Referenced by getAction(), and setAction().

◆ $connector_container_name

string ilMMCustomItemStorage::$connector_container_name = "il_mm_custom_items"
protected

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

◆ $default_title

string ilMMCustomItemStorage::$default_title = ""
protected

true text 4000

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

Referenced by getDefaultTitle(), and setDefaultTitle().

◆ $global_role_ids

string ilMMCustomItemStorage::$global_role_ids = null
protected

true text 4000

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

◆ $identifier

string ilMMCustomItemStorage::$identifier = ''
protected

true true true text 256

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

Referenced by getIdentifier(), and setIdentifier().

◆ $role_based_visibility

bool ilMMCustomItemStorage::$role_based_visibility = false
protected

true integer 1

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

Referenced by hasRoleBasedVisibility(), and setRoleBasedVisibility().

◆ $top_item

bool ilMMCustomItemStorage::$top_item = false
protected

true integer 1

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

Referenced by isTopItem(), and setTopItem().

◆ $type

string ilMMCustomItemStorage::$type = ''
protected

true text 128

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

Referenced by getType(), and setType().


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