19declare(strict_types=1);
37 "obj_id" => [
"integer", $object->
getId()],
38 "title" => [
"text", $object->
getTitle()],
39 "tstamp" => [
"integer", time()],
40 "type" => [
"text", $object->
getType()],
44 $ilDB->insert(
"object_data_del", $values);
47 public static function get(
int $a_object_id): ?array
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
58 $set =
$ilDB->query($sql);
59 return $ilDB->fetchAssoc($set);
static add(ilObject $object)
Class ilObject Basic functions for all objects.
getLongDescription()
get object long description (stored in object_description)