ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This is the super class of all custom blocks. More...
Public Member Functions | |
__construct (int $a_id=0) | |
setId (int $a_id) | |
getId () | |
setContextObjId (int $a_context_obj_id) | |
getContextObjId () | |
setContextObjType (string $a_context_obj_type) | |
getContextObjType () | |
setContextSubObjId (int $a_context_sub_obj_id) | |
getContextSubObjId () | |
setContextSubObjType (string $a_context_sub_obj_type) | |
getContextSubObjType () | |
setType (string $a_type) | |
getType () | |
setTitle (string $a_title) | |
getTitle () | |
create () | |
read () | |
update () | |
delete () | |
queryBlocksForContext (bool $a_include_sub_obj=true) | |
Query BlocksForContext. More... | |
queryCntBlockForContext () | |
Static Public Member Functions | |
static | multiBlockQuery (string $a_context_obj_type, array $a_context_obj_ids) |
Protected Attributes | |
ilDBInterface | $db |
int | $id = 0 |
int | $context_obj_id = 0 |
string | $context_obj_type = "" |
int | $context_sub_obj_id = 0 |
string | $context_sub_obj_type = "" |
string | $type = "" |
string | $title = "" |
This is the super class of all custom blocks.
Definition at line 25 of file class.ilCustomBlock.php.
ilCustomBlock::__construct | ( | int | $a_id = 0 | ) |
Definition at line 36 of file class.ilCustomBlock.php.
References $DIC, read(), and setId().
ilCustomBlock::create | ( | ) |
Definition at line 121 of file class.ilCustomBlock.php.
References $db, $ilDB, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getTitle(), getType(), and setId().
ilCustomBlock::delete | ( | ) |
Definition at line 178 of file class.ilCustomBlock.php.
References $db, $ilDB, and getId().
ilCustomBlock::getContextObjId | ( | ) |
Definition at line 63 of file class.ilCustomBlock.php.
References $context_obj_id.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), and update().
ilCustomBlock::getContextObjType | ( | ) |
Definition at line 73 of file class.ilCustomBlock.php.
References $context_obj_type.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), and update().
ilCustomBlock::getContextSubObjId | ( | ) |
Definition at line 83 of file class.ilCustomBlock.php.
References $context_sub_obj_id.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), and update().
ilCustomBlock::getContextSubObjType | ( | ) |
Definition at line 93 of file class.ilCustomBlock.php.
References $context_sub_obj_type.
Referenced by create(), queryBlocksForContext(), queryCntBlockForContext(), and update().
ilCustomBlock::getId | ( | ) |
Definition at line 53 of file class.ilCustomBlock.php.
References $id.
Referenced by create(), delete(), read(), ilPollBlockGUI\setBlock(), and update().
ilCustomBlock::getTitle | ( | ) |
Definition at line 116 of file class.ilCustomBlock.php.
References $title.
Referenced by create(), and update().
ilCustomBlock::getType | ( | ) |
Definition at line 106 of file class.ilCustomBlock.php.
References $type.
Referenced by create(), queryCntBlockForContext(), and update().
|
static |
Definition at line 238 of file class.ilCustomBlock.php.
ilCustomBlock::queryBlocksForContext | ( | bool | $a_include_sub_obj = true | ) |
Query BlocksForContext.
Definition at line 191 of file class.ilCustomBlock.php.
References $db, $ilDB, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
ilCustomBlock::queryCntBlockForContext | ( | ) |
Definition at line 216 of file class.ilCustomBlock.php.
References $db, $ilDB, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getType().
ilCustomBlock::read | ( | ) |
Definition at line 145 of file class.ilCustomBlock.php.
References $db, $ilDB, getId(), setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setTitle(), and setType().
Referenced by __construct().
ilCustomBlock::setContextObjId | ( | int | $a_context_obj_id | ) |
Definition at line 58 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextObjType | ( | string | $a_context_obj_type | ) |
Definition at line 68 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextSubObjId | ( | int | $a_context_sub_obj_id | ) |
Definition at line 78 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setContextSubObjType | ( | string | $a_context_sub_obj_type | ) |
Definition at line 88 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::setId | ( | int | $a_id | ) |
Definition at line 48 of file class.ilCustomBlock.php.
Referenced by __construct(), and create().
ilCustomBlock::setTitle | ( | string | $a_title | ) |
Definition at line 111 of file class.ilCustomBlock.php.
Referenced by read(), and PollBlockTest\testSetTitle().
ilCustomBlock::setType | ( | string | $a_type | ) |
string | $a_type | Type of block. |
Definition at line 101 of file class.ilCustomBlock.php.
Referenced by read().
ilCustomBlock::update | ( | ) |
Definition at line 162 of file class.ilCustomBlock.php.
References $db, $ilDB, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getTitle(), and getType().
|
protected |
Definition at line 29 of file class.ilCustomBlock.php.
Referenced by getContextObjId().
|
protected |
Definition at line 30 of file class.ilCustomBlock.php.
Referenced by getContextObjType().
|
protected |
Definition at line 31 of file class.ilCustomBlock.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 32 of file class.ilCustomBlock.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 27 of file class.ilCustomBlock.php.
Referenced by create(), delete(), queryBlocksForContext(), queryCntBlockForContext(), read(), and update().
|
protected |
Definition at line 28 of file class.ilCustomBlock.php.
Referenced by getId().
|
protected |
Definition at line 34 of file class.ilCustomBlock.php.
Referenced by getTitle().
|
protected |
Definition at line 33 of file class.ilCustomBlock.php.
Referenced by getType().