ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjectDataDeletionLog Class Reference
+ Collaboration diagram for ilObjectDataDeletionLog:

Static Public Member Functions

static add (ilObject $object)
 
static get (int $a_object_id)
 

Detailed Description

Definition at line 29 of file class.ilObjectDataDeletionLog.php.

Member Function Documentation

◆ add()

static ilObjectDataDeletionLog::add ( ilObject  $object)
static

Definition at line 31 of file class.ilObjectDataDeletionLog.php.

31 : void
32 {
33 global $DIC;
34 $ilDB = $DIC->database();
35
36 $values = [
37 "obj_id" => ["integer", $object->getId()],
38 "title" => ["text", $object->getTitle()],
39 "tstamp" => ["integer", time()],
40 "type" => ["text", $object->getType()],
41 "description" => ["clob", $object->getLongDescription()]
42 ];
43
44 $ilDB->insert("object_data_del", $values);
45 }
getLongDescription()
get object long description (stored in object_description)
global $DIC
Definition: shib_login.php:26

References $DIC, $ilDB, ilObject\getId(), ilObject\getLongDescription(), ilObject\getTitle(), and ilObject\getType().

Referenced by ilObject\delete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

static ilObjectDataDeletionLog::get ( int  $a_object_id)
static

Definition at line 47 of file class.ilObjectDataDeletionLog.php.

47 : ?array
48 {
49 global $DIC;
50 $ilDB = $DIC->database();
51
52 $sql =
53 "SELECT obj_id, title, tstamp, type, description" . PHP_EOL
54 . "FROM object_data_del" . PHP_EOL
55 . "WHERE obj_id = " . $ilDB->quote($a_object_id, "integer") . PHP_EOL
56 ;
57
58 $set = $ilDB->query($sql);
59 return $ilDB->fetchAssoc($set);
60 }

References $DIC, and $ilDB.

Referenced by ilPersonalSkillsGUI\getEvalItem(), ilBadge\getParentMeta(), ilStudyProgrammeUserTable\lookupTitle(), and ILIAS\Badge\ilBadgeUserTableGUI\renderTable().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: