ILIAS
Release_4_1_x_branch Revision 61804
|
Stores information of creation date and versions of export files More...
Public Member Functions | |
__construct ($a_obj_id, $a_export_type= '', $a_filename= '') | |
Constructor. | |
setExportType ($a_type) | |
set export type | |
getExportType () | |
get export type | |
setFilename ($a_name) | |
set filename | |
getFilename () | |
get filename | |
getBasename ($a_ext= '.zip') | |
setObjId ($a_id) | |
Set obj id. | |
getObjId () | |
Get obj id. | |
setVersion ($a_version) | |
set version | |
getVersion () | |
get version | |
getCreationDate () | |
get creation date | |
setCreationDate (ilDateTime $dt=null) | |
set creation date | |
create () | |
Create new export entry. | |
exists () | |
Check if entry exists ilDB $ilDB. | |
delete () | |
Delete one export entry. |
Static Public Member Functions | |
static | lookupLastExport ($a_obj_id, $a_type, $a_version= '') |
Lookup last export. | |
static | deleteByObjId ($a_obj_id) |
Delete all export entries by obj_id. |
Data Fields | |
const | CURRENT_VERSION = "4.1.0" |
Protected Member Functions | |
read () | |
Read. |
Private Attributes | |
$obj_id = 0 | |
$version = self::CURRENT_VERSION | |
$export_type = '' | |
$file_name = '' | |
$create_date = null |
Stores information of creation date and versions of export files
Definition at line 13 of file class.ilExportFileInfo.php.
ilExportFileInfo::__construct | ( | $a_obj_id, | |
$a_export_type = '' , |
|||
$a_filename = '' |
|||
) |
Constructor.
Definition at line 27 of file class.ilExportFileInfo.php.
References getExportType(), getFilename(), getObjId(), and read().
ilExportFileInfo::create | ( | ) |
Create new export entry.
Definition at line 183 of file class.ilExportFileInfo.php.
References $ilDB, $query, exists(), getCreationDate(), getExportType(), getFilename(), getObjId(), getVersion(), IL_CAL_DATETIME, and ilTimeZone\UTC.
ilExportFileInfo::delete | ( | ) |
Delete one export entry.
Definition at line 228 of file class.ilExportFileInfo.php.
References $ilDB.
Referenced by ilExportGUI\delete().
|
static |
Delete all export entries by obj_id.
object | $a_obj_id |
Definition at line 70 of file class.ilExportFileInfo.php.
References $ilDB.
ilExportFileInfo::exists | ( | ) |
Check if entry exists ilDB $ilDB.
Definition at line 207 of file class.ilExportFileInfo.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getExportType(), getFilename(), and getObjId().
Referenced by create().
ilExportFileInfo::getBasename | ( | $a_ext = '.zip' | ) |
Definition at line 118 of file class.ilExportFileInfo.php.
References getFilename().
ilExportFileInfo::getCreationDate | ( | ) |
get creation date
Definition at line 164 of file class.ilExportFileInfo.php.
References IL_CAL_UNIX.
Referenced by create().
ilExportFileInfo::getExportType | ( | ) |
get export type
Definition at line 94 of file class.ilExportFileInfo.php.
References $export_type.
Referenced by __construct(), create(), exists(), and read().
ilExportFileInfo::getFilename | ( | ) |
get filename
Definition at line 113 of file class.ilExportFileInfo.php.
References $file_name.
Referenced by __construct(), create(), exists(), getBasename(), and read().
ilExportFileInfo::getObjId | ( | ) |
Get obj id.
Definition at line 137 of file class.ilExportFileInfo.php.
References $obj_id.
Referenced by __construct(), create(), exists(), and read().
ilExportFileInfo::getVersion | ( | ) |
get version
Definition at line 155 of file class.ilExportFileInfo.php.
References $version.
Referenced by create().
|
static |
Lookup last export.
object | $a_obj_id | |
string | type xml | html | scorm2004... | |
string | version |
Definition at line 45 of file class.ilExportFileInfo.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilExportContainer\addSubitems(), and ilExportSelectionTableGUI\parseContainer().
|
protected |
Read.
Definition at line 243 of file class.ilExportFileInfo.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getExportType(), getFilename(), getObjId(), IL_CAL_DATETIME, setCreationDate(), setVersion(), and ilTimeZone\UTC.
Referenced by __construct().
ilExportFileInfo::setCreationDate | ( | ilDateTime | $dt = null | ) |
set creation date
ilDateTime | $dt | [optional] |
Definition at line 174 of file class.ilExportFileInfo.php.
Referenced by read().
ilExportFileInfo::setExportType | ( | $a_type | ) |
set export type
string | $a_type | xml | html ... |
Definition at line 85 of file class.ilExportFileInfo.php.
ilExportFileInfo::setFilename | ( | $a_name | ) |
set filename
string | $a_name |
Definition at line 104 of file class.ilExportFileInfo.php.
ilExportFileInfo::setObjId | ( | $a_id | ) |
Set obj id.
object | $a_id |
Definition at line 128 of file class.ilExportFileInfo.php.
ilExportFileInfo::setVersion | ( | $a_version | ) |
set version
Definition at line 146 of file class.ilExportFileInfo.php.
Referenced by read().
|
private |
Definition at line 22 of file class.ilExportFileInfo.php.
|
private |
Definition at line 20 of file class.ilExportFileInfo.php.
Referenced by getExportType().
|
private |
Definition at line 21 of file class.ilExportFileInfo.php.
Referenced by getFilename().
|
private |
Definition at line 18 of file class.ilExportFileInfo.php.
Referenced by getObjId().
|
private |
Definition at line 19 of file class.ilExportFileInfo.php.
Referenced by getVersion().
const ilExportFileInfo::CURRENT_VERSION = "4.1.0" |
Definition at line 15 of file class.ilExportFileInfo.php.