ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

Referenced by ilObject\delete().

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  }
global $DIC
Definition: feed.php:28
getLongDescription()
get object long description (stored in object_description)
+ 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.

References $DIC, and $ilDB.

Referenced by ilBadgeUserTableGUI\__construct(), ilPersonalSkillsGUI\getEvalItem(), ilBadge\getParentMeta(), and ilStudyProgrammeUserTable\lookupTitle().

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  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

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