4 include_once (
'./Services/Object/classes/class.ilObject2.php');
30 parent::__construct($a_id, $a_reference);
48 return array_key_exists($a_name, $this->map);
61 return $this->map[$a_name];
109 case self::TYPE_STRING:
113 case self::TYPE_BOOL:
114 $value = (bool)$a_data;
118 $value = (int)$a_data;
121 case self::TYPE_DATE:
125 case self::TYPE_ARRAY:
128 $value = unserialize($a_data);
133 $value = $a_raw_data;
156 case self::TYPE_DATE:
163 case self::TYPE_ARRAY:
166 $value = serialize($value);
176 return array(
"parameters" => $value,
177 "raw_data" => $raw_data);
192 $set = $ilDB->query(
"SELECT * FROM il_verification".
193 " WHERE id = ".$ilDB->quote($this->id,
"integer"));
194 if($ilDB->numRows($set))
196 while(
$row = $ilDB->fetchAssoc($set))
229 $ilDB->manipulate(
"DELETE FROM il_verification".
230 " WHERE id = ".$ilDB->quote($this->id,
"integer"));
236 $fields =
array(
"id" =>
array(
"integer", $this->
id),
237 "type" =>
array(
"text", $name),
238 "parameters" =>
array(
"text", $property[
"parameters"]),
239 "raw_data" =>
array(
"text", $property[
"raw_data"]));
241 $ilDB->insert(
"il_verification", $fields);
264 include_once
"Services/Verification/classes/class.ilVerificationStorageFile.php";
270 $ilDB->manipulate(
"DELETE FROM il_verification".
271 " WHERE id = ".$ilDB->quote($this->id,
"integer"));
279 include_once
"Services/Verification/classes/class.ilVerificationStorageFile.php";
283 $path = $storage->getAbsolutePath().
"/";
287 $path .= $a_subdir.
"/";
315 include_once
"Services/DiskQuota/classes/class.ilDiskQuotaHandler.php";
importProperty($a_type, $a_data=null, $a_raw_data=null)
Import property from database.
exportProperty($a_name)
Export property to database.
getProperty($a_name)
Get property value.
Add rich text string
The name of the decorator.
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
setProperty($a_name, $a_value)
Set property value.
hasProperty($a_name)
Check if given property is valid.
doDelete()
Delete entry from database.
Verification object base class.
static initStorage($a_id, $a_subdir=null)
getPropertyType($a_name)
Get property data type.
__construct($a_id=0, $a_reference=true)
Create styles array
The data for the language used.
static dirsize($directory)
get size of a directory or a file.
static handleUpdatedSourceObject($a_src_obj_type, $a_src_obj_id, $a_src_filesize, $a_owner_obj_ids=null, $a_is_prtf=false)
Find and update/create all related entries for source object.
saveProperties()
Save current properties to database.
doRead()
Read database entry.
Class ilObject2 This is an intermediate progress of ilObject class.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
getPropertyMap()
Return property map (name => type)