ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjectDataDeletionLog Class Reference
+ Collaboration diagram for ilObjectDataDeletionLog:

Static Public Member Functions

static add (ilObject $a_object)
 
static get ($a_object_id)
 

Detailed Description

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

Member Function Documentation

◆ add()

static ilObjectDataDeletionLog::add ( ilObject  $a_object)
static

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

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

Referenced by ilObject\countReferences().

15  {
16  global $DIC;
17 
18  $ilDB = $DIC->database();
19 
20  $ilDB->insert("object_data_del", array(
21  "obj_id" => array("integer", $a_object->getId()),
22  "type" => array("text", $a_object->getType()),
23  "title" => array("text", $a_object->getTitle()),
24  "tstamp" => array("integer", time())
25  ));
26  }
global $DIC
Definition: saml.php:7
getId()
get object id public
getTitle()
get object title public
getType()
get object type public
Create styles array
The data for the language used.
global $ilDB
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

static ilObjectDataDeletionLog::get (   $a_object_id)
static

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

References $DIC, and $ilDB.

Referenced by ilBadgeUserTableGUI\__construct(), and ilBadge\getParentMeta().

29  {
30  global $DIC;
31 
32  $ilDB = $DIC->database();
33 
34  $set = $ilDB->query("SELECT * FROM object_data_del" .
35  " WHERE obj_id = " . $ilDB->quote($a_object_id, "integer"));
36  return $ilDB->fetchAssoc($set);
37  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the caller graph for this function:

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