18 declare(strict_types=1);
43 return self::DB_TABLE_NAME;
48 return "/campusconnect/files";
58 $this->version = (
int) $a_version;
78 $this->version_tstamp = (
int) $a_tstamp;
93 $a_fields[
"version"] = array(
"integer", 1);
94 $a_fields[
"version_tstamp"] = array(
"integer", time());
99 $a_fields[
"version"] = array(
"integer", $this->
getVersion());
127 $set = $ilDB->query(
"SELECT version, version_tstamp" .
128 " FROM " . self::DB_TABLE_NAME .
129 " WHERE obj_id = " . $ilDB->quote($a_obj_id,
"integer"));
130 $row = $ilDB->fetchAssoc($set);
133 if ($row[
"version_tstamp"]) {
setVersion($a_version)
Set version.
doCreateCustomFields(array &$a_fields)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
doUpdateCustomFields(array &$a_fields)
static _lookupVersionInfo($a_obj_id)
Get version info.
getVersionDateTime()
get version timestamp
updateCustomFromECSContent(ilECSSetting $a_server, $ecs_content)
Remote object app base class.
doReadCustomFields($a_row)
setVersionDateTime($a_tstamp)
Set version timestamp.