ILIAS
eassessment Revision 61809
|
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 35 of file class.ilECSContentWriter.php.
ilECSContentWriter::__construct | ( | $a_cont_obj | ) |
Constructor.
public
object | content obj (e.g course_obj) |
Definition at line 58 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 79 of file class.ilECSContentWriter.php.
References $content_obj, ilECSExport\_getExportedIDs(), ilECSSettings\_getInstance(), and ilObjectFactory\getInstanceByRefId().
Referenced by ilRepUtil\deleteObjects().
ilECSContentWriter::addECSContent | ( | ) |
Add ECSContent.
public
ilConnectorException,ilECSContentWriterException |
Definition at line 303 of file class.ilECSContentWriter.php.
References createJSON(), sendNewContentNotification(), and updateJSON().
Referenced by refresh().
|
private |
Create new JSON object.
private
Definition at line 460 of file class.ilECSContentWriter.php.
Referenced by addECSContent().
ilECSContentWriter::deleteECSContent | ( | ) |
delete ecs content
public
ilECSContentWriterException |
Definition at line 271 of file class.ilECSContentWriter.php.
Referenced by refresh().
ilECSContentWriter::getOwnerId | ( | ) |
get owner id
public
Definition at line 152 of file class.ilECSContentWriter.php.
References $owner.
Referenced by updateJSON().
ilECSContentWriter::getParticipantIds | ( | ) |
get participant ids
public
Definition at line 175 of file class.ilECSContentWriter.php.
References $mids.
Referenced by updateJSON().
ilECSContentWriter::isExportable | ( | ) |
is exportable
public
Definition at line 129 of file class.ilECSContentWriter.php.
References $exportable.
Referenced by refresh().
ilECSContentWriter::refresh | ( | ) |
Refresh (add- update- delete Econtent)
public
ilConnectorException,ilECSContentWriterException |
Definition at line 186 of file class.ilECSContentWriter.php.
References addECSContent(), deleteECSContent(), isExportable(), UPDATE_ALL, and updateECSContent().
ilECSContentWriter::refreshSettings | ( | ) |
Refresh Settings.
public
il |
Definition at line 236 of file class.ilECSContentWriter.php.
References UPDATE_SETTINGS_ONLY, and updateECSContent().
|
private |
send notifications about new EContent
private
Definition at line 376 of file class.ilECSContentWriter.php.
References $desc, $error, $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 117 of file class.ilECSContentWriter.php.
ilECSContentWriter::setOwnerId | ( | $a_id | ) |
set owner mid
public
int | owner mid |
Definition at line 141 of file class.ilECSContentWriter.php.
ilECSContentWriter::setParticipantIds | ( | $a_mids | ) |
set participant ids
public
array | array of participant mids |
Definition at line 164 of file class.ilECSContentWriter.php.
ilECSContentWriter::updateECSContent | ( | ) |
update ECS content
public
Definition at line 343 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 473 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 44 of file class.ilECSContentWriter.php.
Referenced by _handleDelete().
|
protected |
Definition at line 45 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 47 of file class.ilECSContentWriter.php.
Referenced by isExportable().
|
protected |
Definition at line 42 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 49 of file class.ilECSContentWriter.php.
Referenced by getParticipantIds().
|
private |
Definition at line 40 of file class.ilECSContentWriter.php.
|
protected |
Definition at line 48 of file class.ilECSContentWriter.php.
Referenced by getOwnerId().
const ilECSContentWriter::UPDATE_ALL = 1 |
Definition at line 37 of file class.ilECSContentWriter.php.
Referenced by refresh().
const ilECSContentWriter::UPDATE_SETTINGS_ONLY = 2 |
Definition at line 38 of file class.ilECSContentWriter.php.
Referenced by refreshSettings().