ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
getServerId () | |
getCommunityId () | |
setOwnId (int $a_id) | |
getOwnId () | |
setCommunityName (string $a_name) | |
getCommunityName () | |
setMids (array $a_mids) | |
getMids () | |
update () | |
Create or update ecs community. More... | |
deleteByServerId (int $a_server_id) | |
Static Public Member Functions | |
static | getInstance (int $a_server_id, int $a_community_id) |
Get instance. More... | |
Protected Member Functions | |
__construct (int $server_id, int $community_id) | |
Singleton constructor. More... | |
create () | |
Create new dataset. More... | |
Protected Attributes | |
int | $server_id = 0 |
int | $community_id = 0 |
int | $own_id = 0 |
string | $cname = '' |
array | $mids = array() |
bool | $entryExists = false |
Static Protected Attributes | |
static array | $instance = [] |
Private Member Functions | |
read () | |
Read dataset. More... | |
Private Attributes | |
ilDBInterface | $db |
Definition at line 23 of file class.ilECSCommunityCache.php.
|
protected |
Singleton constructor.
int | $server_id | |
int | $community_id |
Definition at line 43 of file class.ilECSCommunityCache.php.
References $community_id, $DIC, $server_id, and read().
|
protected |
Create new dataset.
Definition at line 136 of file class.ilECSCommunityCache.php.
References $query, getCommunityId(), getCommunityName(), getMids(), getOwnId(), and getServerId().
Referenced by update().
ilECSCommunityCache::deleteByServerId | ( | int | $a_server_id | ) |
int | $a_server_id |
Definition at line 175 of file class.ilECSCommunityCache.php.
References $query.
ilECSCommunityCache::getCommunityId | ( | ) |
Definition at line 77 of file class.ilECSCommunityCache.php.
References $community_id.
Referenced by create(), read(), and update().
ilECSCommunityCache::getCommunityName | ( | ) |
Definition at line 97 of file class.ilECSCommunityCache.php.
References $cname.
Referenced by create(), and update().
|
static |
Get instance.
int | $a_server_id | |
int | $a_community_id |
Definition at line 61 of file class.ilECSCommunityCache.php.
Referenced by ilECSSetting\delete(), ilECSCommunitiesCache\read(), and ilECSSettingsGUI\updateCommunities().
ilECSCommunityCache::getMids | ( | ) |
Definition at line 107 of file class.ilECSCommunityCache.php.
References $mids.
Referenced by create(), and update().
ilECSCommunityCache::getOwnId | ( | ) |
Definition at line 87 of file class.ilECSCommunityCache.php.
References $own_id.
Referenced by create(), and update().
ilECSCommunityCache::getServerId | ( | ) |
Definition at line 72 of file class.ilECSCommunityCache.php.
References $server_id.
Referenced by create(), read(), and update().
|
private |
Read dataset.
Definition at line 153 of file class.ilECSCommunityCache.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getCommunityId(), getServerId(), setCommunityName(), setMids(), and setOwnId().
Referenced by __construct().
ilECSCommunityCache::setCommunityName | ( | string | $a_name | ) |
Definition at line 92 of file class.ilECSCommunityCache.php.
Referenced by read().
ilECSCommunityCache::setMids | ( | array | $a_mids | ) |
Definition at line 102 of file class.ilECSCommunityCache.php.
Referenced by read().
ilECSCommunityCache::setOwnId | ( | int | $a_id | ) |
Definition at line 82 of file class.ilECSCommunityCache.php.
Referenced by read().
ilECSCommunityCache::update | ( | ) |
Create or update ecs community.
Definition at line 115 of file class.ilECSCommunityCache.php.
References $query, create(), getCommunityId(), getCommunityName(), getMids(), getOwnId(), and getServerId().
|
protected |
Definition at line 31 of file class.ilECSCommunityCache.php.
Referenced by getCommunityName().
|
protected |
Definition at line 29 of file class.ilECSCommunityCache.php.
Referenced by __construct(), and getCommunityId().
|
private |
Definition at line 36 of file class.ilECSCommunityCache.php.
|
protected |
Definition at line 34 of file class.ilECSCommunityCache.php.
|
staticprotected |
Definition at line 26 of file class.ilECSCommunityCache.php.
|
protected |
Definition at line 32 of file class.ilECSCommunityCache.php.
Referenced by getMids().
|
protected |
Definition at line 30 of file class.ilECSCommunityCache.php.
Referenced by getOwnId().
|
protected |
Definition at line 28 of file class.ilECSCommunityCache.php.
Referenced by __construct(), and getServerId().