ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This is the super class of all custom blocks. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
setId ($a_id) | |
Set Id. More... | |
getId () | |
Get Id. More... | |
setContextObjId ($a_context_obj_id) | |
Set ContextObjId. More... | |
getContextObjId () | |
Get ContextObjId. More... | |
setContextObjType ($a_context_obj_type) | |
Set ContextObjType. More... | |
getContextObjType () | |
Get ContextObjType. More... | |
setContextSubObjId ($a_context_sub_obj_id) | |
Set ContextSubObjId. More... | |
getContextSubObjId () | |
Get ContextSubObjId. More... | |
setContextSubObjType ($a_context_sub_obj_type) | |
Set ContextSubObjType. More... | |
getContextSubObjType () | |
Get ContextSubObjType. More... | |
setType ($a_type) | |
Set Type. More... | |
getType () | |
Get Type. More... | |
setTitle ($a_title) | |
Set Title. More... | |
getTitle () | |
Get Title. More... | |
create () | |
Create new item. More... | |
read () | |
Read item from database. More... | |
update () | |
Update item in database. More... | |
delete () | |
Delete item from database. More... | |
querygetBlocksForContext () | |
Query getBlocksForContext. More... | |
queryBlocksForContext ($a_include_sub_obj=true) | |
Query BlocksForContext. More... | |
queryTitleForId () | |
Query TitleForId. More... | |
queryCntBlockForContext () | |
Query CntBlockForContext. More... | |
Static Public Member Functions | |
static | multiBlockQuery ($a_context_obj_type, array $a_context_obj_ids) |
Protected Attributes | |
$db | |
$id | |
$context_obj_id | |
$context_obj_type | |
$context_sub_obj_id | |
$context_sub_obj_type | |
$type | |
$title | |
This is the super class of all custom blocks.
Definition at line 11 of file class.ilCustomBlock.php.
ilCustomBlock::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Definition at line 32 of file class.ilCustomBlock.php.
References $DIC, read(), and setId().
ilCustomBlock::create | ( | ) |
Create new item.
Definition at line 187 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getTitle(), getType(), and setId().
ilCustomBlock::delete | ( | ) |
ilCustomBlock::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 78 of file class.ilCustomBlock.php.
References $context_obj_id.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), querygetBlocksForContext(), and update().
ilCustomBlock::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 98 of file class.ilCustomBlock.php.
References $context_obj_type.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), querygetBlocksForContext(), and update().
ilCustomBlock::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 118 of file class.ilCustomBlock.php.
References $context_sub_obj_id.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), querygetBlocksForContext(), and update().
ilCustomBlock::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 138 of file class.ilCustomBlock.php.
References $context_sub_obj_type.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), querygetBlocksForContext(), and update().
ilCustomBlock::getId | ( | ) |
Get Id.
Definition at line 58 of file class.ilCustomBlock.php.
References $id.
Referenced by ilExternalFeedBlock\create(), create(), ilExternalFeedBlock\delete(), delete(), ilExternalFeedBlock\read(), read(), ilExternalFeedBlock\update(), and update().
ilCustomBlock::getTitle | ( | ) |
ilCustomBlock::getType | ( | ) |
Get Type.
Definition at line 158 of file class.ilCustomBlock.php.
References $type.
Referenced by create(), queryCntBlockForContext(), and update().
|
static |
ilCustomBlock::queryBlocksForContext | ( | $a_include_sub_obj = true | ) |
Query BlocksForContext.
Definition at line 296 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, $result, array, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
ilCustomBlock::queryCntBlockForContext | ( | ) |
Query CntBlockForContext.
Definition at line 348 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, $result, array, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getType().
ilCustomBlock::querygetBlocksForContext | ( | ) |
Query getBlocksForContext.
Definition at line 270 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, $result, array, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
ilCustomBlock::queryTitleForId | ( | ) |
ilCustomBlock::read | ( | ) |
Read item from database.
Definition at line 215 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, getId(), setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setTitle(), and setType().
Referenced by __construct().
ilCustomBlock::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
int | $a_context_obj_id |
Definition at line 68 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 88 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
int | $a_context_sub_obj_id |
Definition at line 108 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
int | $a_context_sub_obj_type |
Definition at line 128 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 48 of file class.ilCustomBlock.php.
Referenced by __construct(), ilExternalFeedBlock\__construct(), and create().
ilCustomBlock::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title of block |
Definition at line 168 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setType | ( | $a_type | ) |
Set Type.
string | $a_type | Type of block. |
Definition at line 148 of file class.ilCustomBlock.php.
References $a_type.
Referenced by read().
ilCustomBlock::update | ( | ) |
Update item in database.
Definition at line 236 of file class.ilCustomBlock.php.
References $db, $ilDB, $query, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getTitle(), and getType().
|
protected |
Definition at line 20 of file class.ilCustomBlock.php.
Referenced by getContextObjId().
|
protected |
Definition at line 21 of file class.ilCustomBlock.php.
Referenced by getContextObjType().
|
protected |
Definition at line 22 of file class.ilCustomBlock.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 23 of file class.ilCustomBlock.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 16 of file class.ilCustomBlock.php.
Referenced by create(), delete(), queryBlocksForContext(), queryCntBlockForContext(), querygetBlocksForContext(), queryTitleForId(), read(), and update().
|
protected |
Definition at line 19 of file class.ilCustomBlock.php.
Referenced by getId().
|
protected |
Definition at line 25 of file class.ilCustomBlock.php.
Referenced by getTitle().
|
protected |
Definition at line 24 of file class.ilCustomBlock.php.
Referenced by getType().