ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Custom block for external feeds. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
setFeedUrl ($a_feed_url) | |
Set FeedUrl. More... | |
isFeedUrlLocal ($url) | |
Check if feed url is local. More... | |
getFeedUrl () | |
Get FeedUrl. More... | |
create () | |
Create new item. More... | |
read () | |
Read item from database. More... | |
update () | |
Update item in database. More... | |
delete () | |
Delete item from database. More... | |
Public Member Functions inherited from ilCustomBlock | |
__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... | |
Protected Attributes | |
$db | |
$log | |
$feed_url | |
Protected Attributes inherited from ilCustomBlock | |
$db | |
$id | |
$context_obj_id | |
$context_obj_type | |
$context_sub_obj_id | |
$context_sub_obj_type | |
$type | |
$title | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilCustomBlock | |
static | multiBlockQuery ($a_context_obj_type, array $a_context_obj_ids) |
Custom block for external feeds.
Definition at line 12 of file class.ilExternalFeedBlock.php.
ilExternalFeedBlock::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Definition at line 32 of file class.ilExternalFeedBlock.php.
References $DIC, read(), and ilCustomBlock\setId().
ilExternalFeedBlock::create | ( | ) |
Create new item.
Definition at line 92 of file class.ilExternalFeedBlock.php.
References $db, $ilDB, $ilLog, $log, $query, getFeedUrl(), and ilCustomBlock\getId().
ilExternalFeedBlock::delete | ( | ) |
Delete item from database.
Definition at line 147 of file class.ilExternalFeedBlock.php.
References $db, $ilDB, $query, and ilCustomBlock\getId().
ilExternalFeedBlock::getFeedUrl | ( | ) |
Get FeedUrl.
Definition at line 83 of file class.ilExternalFeedBlock.php.
References $feed_url.
Referenced by create(), and update().
ilExternalFeedBlock::isFeedUrlLocal | ( | $url | ) |
Check if feed url is local.
string |
Definition at line 59 of file class.ilExternalFeedBlock.php.
ilExternalFeedBlock::read | ( | ) |
Read item from database.
Definition at line 112 of file class.ilExternalFeedBlock.php.
References $db, $ilDB, $query, ilCustomBlock\getId(), and setFeedUrl().
Referenced by __construct().
ilExternalFeedBlock::setFeedUrl | ( | $a_feed_url | ) |
Set FeedUrl.
string | $a_feed_url | URL of the external news feed. |
Definition at line 49 of file class.ilExternalFeedBlock.php.
Referenced by read().
ilExternalFeedBlock::update | ( | ) |
Update item in database.
Definition at line 130 of file class.ilExternalFeedBlock.php.
References $db, $ilDB, $query, getFeedUrl(), ilCustomBlock\getId(), and League\Flysystem\Adapter\Polyfill\update().
|
protected |
|
protected |
Definition at line 25 of file class.ilExternalFeedBlock.php.
Referenced by getFeedUrl().
|
protected |
Definition at line 22 of file class.ilExternalFeedBlock.php.
Referenced by create().