ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @inheritDoc More...
 
 afterObjectLoad ()
 
 create ()
 
 read ()
 
 update ()
 
 delete ()
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 @description 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 = ''
 @con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype text @con_length 256 More...
 
string $type = ''
 @con_has_field true @con_fieldtype text @con_length 128 More...
 
string $action = ""
 @con_has_field true @con_fieldtype text @con_length 4000 More...
 
bool $role_based_visibility = false
 @con_has_field true @con_fieldtype integer @con_length 1 More...
 
string $global_role_ids = null
 @con_has_field true @con_fieldtype text @con_length 4000 More...
 
string $default_title = ""
 @con_has_field true @con_fieldtype text @con_length 4000 More...
 
bool $top_item = false
 @con_has_field true @con_fieldtype integer @con_length 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 ()
 @depracated 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 ()
 @description Returns an instance of the instatiated calling active record (needs to be done in static methods) @TODO : 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.

147 : string
148 {
149 return $this->action;
150 }
string $action
@con_has_field true @con_fieldtype text @con_length 4000

References $action.

◆ getDefaultTitle()

ilMMCustomItemStorage::getDefaultTitle ( )
Returns
string

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

213 : string
214 {
216 }
string $default_title
@con_has_field true @con_fieldtype text @con_length 4000

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 191 of file class.ilMMCustomItemStorage.php.

191 : array
192 {
193 return array_map("intval", explode(",", (string) $this->global_role_ids));
194 }

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

+ Here is the caller graph for this function:

◆ getIdentifier()

ilMMCustomItemStorage::getIdentifier ( )
Returns
string

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

81 : string
82 {
83 return $this->identifier;
84 }
string $identifier
@con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype text @con_length 256

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 103 of file class.ilMMCustomItemStorage.php.

103 : string
104 {
105 return $this->type;
106 }
string $type
@con_has_field true @con_fieldtype text @con_length 128

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 169 of file class.ilMMCustomItemStorage.php.

169 : bool
170 {
172 }
bool $role_based_visibility
@con_has_field true @con_fieldtype integer @con_length 1

References $role_based_visibility.

Referenced by ilObjMainMenuAccess\isCurrentUserAllowedToSeeCustomItem().

+ Here is the caller graph for this function:

◆ isTopItem()

ilMMCustomItemStorage::isTopItem ( )
Returns
bool

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

125 : bool
126 {
127 return $this->top_item;
128 }
bool $top_item
@con_has_field true @con_fieldtype integer @con_length 1

References $top_item.

◆ setAction()

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

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

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

References $action.

◆ setDefaultTitle()

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

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

225 {
226 $this->default_title = $default_title;
227
228 return $this;
229 }

References $default_title.

◆ 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
@con_has_field true @con_fieldtype text @con_length 4000

References $global_role_ids.

◆ setIdentifier()

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

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

93 {
94 $this->identifier = $identifier;
95
96 return $this;
97 }

References $identifier.

◆ setRoleBasedVisibility()

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

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

181 {
182 $this->role_based_visibility = $role_based_visibility;
183
184 return $this;
185 }

References $role_based_visibility.

◆ setTopItem()

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

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

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

References $top_item.

◆ setType()

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

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

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

References $type.

Field Documentation

◆ $action

string ilMMCustomItemStorage::$action = ""
protected

@con_has_field true @con_fieldtype text @con_length 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

@con_has_field true @con_fieldtype text @con_length 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

@con_has_field true @con_fieldtype text @con_length 4000

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

Referenced by setGlobalRoleIDs().

◆ $identifier

string ilMMCustomItemStorage::$identifier = ''
protected

@con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype text @con_length 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

@con_has_field true @con_fieldtype integer @con_length 1

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

Referenced by hasRoleBasedVisibility(), and setRoleBasedVisibility().

◆ $top_item

bool ilMMCustomItemStorage::$top_item = false
protected

@con_has_field true @con_fieldtype integer @con_length 1

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

Referenced by isTopItem(), and setTopItem().

◆ $type

string ilMMCustomItemStorage::$type = ''
protected

@con_has_field true @con_fieldtype text @con_length 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: