|
ILIAS
Release_4_2_x_branch Revision 61807
|
Handles request like update delete addEContent. More...
Collaboration diagram for ilECSContentWriter:Public Member Functions | |
| __construct ($a_cont_obj, $a_server_id) | |
| Constructor. | |
| getServerId () | |
| Get current server id. | |
| setExportable ($a_status) | |
| set exportable | |
| isExportable () | |
| is exportable | |
| setOwnerId ($a_id) | |
| set owner mid | |
| getOwnerId () | |
| get owner id | |
| setParticipantIds ($a_mids) | |
| set participant ids | |
| getParticipantIds () | |
| get participant ids | |
| refresh () | |
| Refresh (add- update- delete Econtent) | |
| refreshSettings () | |
| Refresh Settings. | |
| deleteECSContent () | |
| delete ecs content | |
| addECSContent () | |
| Add ECSContent. | |
| updateECSContent () | |
| update ECS content | |
Static Public Member Functions | |
| static | _handleDelete ($a_subbtree_nodes) |
| handle delete Objects that are moved to the trash call ECS-Remove | |
Data Fields | |
| const | UPDATE_ALL = 1 |
| const | UPDATE_SETTINGS_ONLY = 2 |
Protected Attributes | |
| $log | |
| $content_obj = null | |
| $export_settings = null | |
| $server_id = 0 | |
| $exportable = true | |
| $owner = 0 | |
| $mids = null | |
Private Member Functions | |
| sendNewContentNotification () | |
| send notifications about new EContent | |
| createJSON () | |
| Create new JSON object. | |
| updateJSON () | |
| update json object (read settings from content object) | |
Private Attributes | |
| $mode = 0 | |
Handles request like update delete addEContent.
Definition at line 36 of file class.ilECSContentWriter.php.
| ilECSContentWriter::__construct | ( | $a_cont_obj, | |
| $a_server_id | |||
| ) |
Constructor.
public
| object | content obj (e.g course_obj) |
Definition at line 60 of file class.ilECSContentWriter.php.
References $ilLog, and getServerId().
Here is the call graph for this function:
|
static |
handle delete Objects that are moved to the trash call ECS-Remove
public
| int | obj_id |
Definition at line 82 of file class.ilECSContentWriter.php.
References $content_obj, ilECSExport\getExportedIds(), ilECSExport\getExportServerIds(), ilECSServerSettings\getInstance(), and ilObjectFactory\getInstanceByRefId().
Referenced by ilRepUtil\deleteObjects().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSContentWriter::addECSContent | ( | ) |
Add ECSContent.
public
| ilConnectorException,ilECSContentWriterException |
Definition at line 319 of file class.ilECSContentWriter.php.
References createJSON(), ilECSSetting\getInstanceByServerId(), getParticipantIds(), getServerId(), ilECSConnector\HEADER_MEMBERSHIPS, sendNewContentNotification(), and updateJSON().
Referenced by refresh().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create new JSON object.
private
Definition at line 493 of file class.ilECSContentWriter.php.
Referenced by addECSContent().
Here is the caller graph for this function:| ilECSContentWriter::deleteECSContent | ( | ) |
delete ecs content
public
| ilECSContentWriterException |
Definition at line 287 of file class.ilECSContentWriter.php.
References ilECSSetting\getInstanceByServerId(), and getServerId().
Referenced by refresh().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSContentWriter::getOwnerId | ( | ) |
get owner id
public
Definition at line 169 of file class.ilECSContentWriter.php.
References $owner.
Referenced by updateJSON().
Here is the caller graph for this function:| ilECSContentWriter::getParticipantIds | ( | ) |
get participant ids
public
Definition at line 192 of file class.ilECSContentWriter.php.
References $mids.
Referenced by addECSContent(), and updateECSContent().
Here is the caller graph for this function:| ilECSContentWriter::getServerId | ( | ) |
Get current server id.
Definition at line 122 of file class.ilECSContentWriter.php.
References $server_id.
Referenced by __construct(), addECSContent(), deleteECSContent(), sendNewContentNotification(), updateECSContent(), and updateJSON().
Here is the caller graph for this function:| ilECSContentWriter::isExportable | ( | ) |
is exportable
public
Definition at line 146 of file class.ilECSContentWriter.php.
References $exportable.
Referenced by refresh().
Here is the caller graph for this function:| ilECSContentWriter::refresh | ( | ) |
Refresh (add- update- delete Econtent)
public
| ilConnectorException,ilECSContentWriterException |
Definition at line 203 of file class.ilECSContentWriter.php.
References addECSContent(), deleteECSContent(), isExportable(), UPDATE_ALL, and updateECSContent().
Here is the call graph for this function:| ilECSContentWriter::refreshSettings | ( | ) |
Refresh Settings.
public
| il |
Definition at line 253 of file class.ilECSContentWriter.php.
References UPDATE_SETTINGS_ONLY, and updateECSContent().
Here is the call graph for this function:
|
private |
send notifications about new EContent
private
Definition at line 405 of file class.ilECSContentWriter.php.
References $GLOBALS, $lang, $reader, ilMail\_getAutoGeneratedMessageString(), ilLanguageFactory\_getLanguage(), ilLink\_getStaticLink(), ilECSCommunityReader\getInstanceByServerId(), ilECSSetting\getInstanceByServerId(), and getServerId().
Referenced by addECSContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilECSContentWriter::setExportable | ( | $a_status | ) |
set exportable
public
| bool | status |
Definition at line 134 of file class.ilECSContentWriter.php.
| ilECSContentWriter::setOwnerId | ( | $a_id | ) |
set owner mid
public
| int | owner mid |
Definition at line 158 of file class.ilECSContentWriter.php.
| ilECSContentWriter::setParticipantIds | ( | $a_mids | ) |
set participant ids
public
| array | array of participant mids |
Definition at line 181 of file class.ilECSContentWriter.php.
| ilECSContentWriter::updateECSContent | ( | ) |
update ECS content
public
Definition at line 361 of file class.ilECSContentWriter.php.
References $reader, ilECSSetting\getInstanceByServerId(), getParticipantIds(), getServerId(), ilECSConnector\HEADER_MEMBERSHIPS, and updateJSON().
Referenced by refresh(), and refreshSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
update json object (read settings from content object)
private
| ilECSContentWriterException |
Definition at line 506 of file class.ilECSContentWriter.php.
References $GLOBALS, $reader, ilLink\_getLink(), ilAdvancedMDValues\_getValuesByObjId(), ilMDLanguage\_lookupFirstLanguage(), ilECSDataMappingSettings\getInstanceByServerId(), ilECSCommunityReader\getInstanceByServerId(), getOwnerId(), getServerId(), and ilECSDataMappingSetting\MAPPING_EXPORT.
Referenced by addECSContent(), and updateECSContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 45 of file class.ilECSContentWriter.php.
Referenced by _handleDelete().
|
protected |
Definition at line 46 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 49 of file class.ilECSContentWriter.php.
Referenced by isExportable().
|
protected |
Definition at line 43 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 51 of file class.ilECSContentWriter.php.
Referenced by getParticipantIds().
|
private |
Definition at line 41 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 50 of file class.ilECSContentWriter.php.
Referenced by getOwnerId().
|
protected |
Definition at line 48 of file class.ilECSContentWriter.php.
Referenced by getServerId().
| const ilECSContentWriter::UPDATE_ALL = 1 |
Definition at line 38 of file class.ilECSContentWriter.php.
Referenced by refresh().
| const ilECSContentWriter::UPDATE_SETTINGS_ONLY = 2 |
Definition at line 39 of file class.ilECSContentWriter.php.
Referenced by refreshSettings().