ILIAS
Release_3_10_x_branch Revision 61812
|
Handles request like update delete addEContent. More...
Public Member Functions | |
__construct ($a_cont_obj) | |
Constructor. | |
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 | |
$exportable = true | |
$owner = 0 | |
$mids = array() |
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 33 of file class.ilECSContentWriter.php.
ilECSContentWriter::__construct | ( | $a_cont_obj | ) |
Constructor.
public
object | content obj (e.g course_obj) |
Definition at line 56 of file class.ilECSContentWriter.php.
References $ilLog.
|
static |
handle delete Objects that are moved to the trash call ECS-Remove
public
int | obj_id |
Definition at line 77 of file class.ilECSContentWriter.php.
References $content_obj, ilECSExport\_getExportedIDs(), ilECSSettings\_getInstance(), and ilObjectFactory\getInstanceByRefId().
Referenced by ilObjectGUI\confirmedDeleteObject().
ilECSContentWriter::addECSContent | ( | ) |
Add ECSContent.
public
ilConnectorException,ilECSContentWriterException |
Definition at line 301 of file class.ilECSContentWriter.php.
References createJSON(), sendNewContentNotification(), and updateJSON().
Referenced by refresh().
|
private |
Create new JSON object.
private
Definition at line 458 of file class.ilECSContentWriter.php.
Referenced by addECSContent().
ilECSContentWriter::deleteECSContent | ( | ) |
delete ecs content
public
ilECSContentWriterException |
Definition at line 269 of file class.ilECSContentWriter.php.
Referenced by refresh().
ilECSContentWriter::getOwnerId | ( | ) |
get owner id
public
Definition at line 150 of file class.ilECSContentWriter.php.
References $owner.
Referenced by updateJSON().
ilECSContentWriter::getParticipantIds | ( | ) |
get participant ids
public
Definition at line 173 of file class.ilECSContentWriter.php.
References $mids.
Referenced by updateJSON().
ilECSContentWriter::isExportable | ( | ) |
is exportable
public
Definition at line 127 of file class.ilECSContentWriter.php.
References $exportable.
Referenced by refresh().
ilECSContentWriter::refresh | ( | ) |
Refresh (add- update- delete Econtent)
public
ilConnectorException,ilECSContentWriterException |
Definition at line 184 of file class.ilECSContentWriter.php.
References addECSContent(), deleteECSContent(), isExportable(), UPDATE_ALL, and updateECSContent().
ilECSContentWriter::refreshSettings | ( | ) |
Refresh Settings.
public
il |
Definition at line 234 of file class.ilECSContentWriter.php.
References UPDATE_SETTINGS_ONLY, and updateECSContent().
|
private |
send notifications about new EContent
private
Definition at line 374 of file class.ilECSContentWriter.php.
References $GLOBALS, $lang, $reader, ilMail\_getAutoGeneratedMessageString(), ilECSCommunityReader\_getInstance(), ilECSSettings\_getInstance(), ilLanguageFactory\_getLanguage(), and ilLink\_getStaticLink().
Referenced by addECSContent().
ilECSContentWriter::setExportable | ( | $a_status | ) |
set exportable
public
bool | status |
Definition at line 115 of file class.ilECSContentWriter.php.
ilECSContentWriter::setOwnerId | ( | $a_id | ) |
set owner mid
public
int | owner mid |
Definition at line 139 of file class.ilECSContentWriter.php.
ilECSContentWriter::setParticipantIds | ( | $a_mids | ) |
set participant ids
public
array | array of participant mids |
Definition at line 162 of file class.ilECSContentWriter.php.
ilECSContentWriter::updateECSContent | ( | ) |
update ECS content
public
Definition at line 341 of file class.ilECSContentWriter.php.
References $reader, and updateJSON().
Referenced by refresh(), and refreshSettings().
|
private |
update json object (read settings from content object)
private
ilECSContentWriterException |
Definition at line 471 of file class.ilECSContentWriter.php.
References ilECSDataMappingSettings\_getInstance(), ilLink\_getLink(), ilAdvancedMDValues\_getValuesByObjId(), ilMDLanguage\_lookupFirstLanguage(), getOwnerId(), and getParticipantIds().
Referenced by addECSContent(), and updateECSContent().
|
protected |
Definition at line 42 of file class.ilECSContentWriter.php.
Referenced by _handleDelete().
|
protected |
Definition at line 43 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 45 of file class.ilECSContentWriter.php.
Referenced by isExportable().
|
protected |
Definition at line 40 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 47 of file class.ilECSContentWriter.php.
Referenced by getParticipantIds().
|
private |
Definition at line 38 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 46 of file class.ilECSContentWriter.php.
Referenced by getOwnerId().
const ilECSContentWriter::UPDATE_ALL = 1 |
Definition at line 35 of file class.ilECSContentWriter.php.
Referenced by refresh().
const ilECSContentWriter::UPDATE_SETTINGS_ONLY = 2 |
Definition at line 36 of file class.ilECSContentWriter.php.
Referenced by refreshSettings().