8require_once 
"./Services/Object/classes/class.ilObject.php";
 
   32    public function __construct($a_id = 0, $a_call_by_reference = 
true)
 
   39        $this->db = 
$DIC->database();
 
   52    public function update($a_skip_meta = 
false)
 
   61        $ilDB->manipulate($q = 
"UPDATE file_based_lm SET " .
 
   62            " startfile = " . 
$ilDB->quote($this->getStartFile(), 
"text") . 
" " .
 
   63            " WHERE id = " . 
$ilDB->quote($this->getId(), 
"integer"));
 
   76        $q = 
"SELECT * FROM file_based_lm WHERE id = " . 
$ilDB->quote($this->
getId(), 
"integer");
 
   87    public function create($a_skip_meta = 
false)
 
   94        $ilDB->manipulate(
"INSERT INTO file_based_lm (id, startfile) VALUES " .
 
   95            " (" . 
$ilDB->quote($this->getID(), 
"integer") . 
"," .
 
   96            $ilDB->quote($this->getStartfile(), 
"text") . 
")");
 
  105        $lm_dir = $lm_data_dir . 
"/lm_" . $this->
getId();
 
  117        return $this->start_file;
 
  123            (file_exists($this->
getDataDirectory() . 
"/" . $a_file) || $a_omit_file_check)) {
 
  124            $this->start_file = $a_file;
 
  136        require_once(
"./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMAccess.php");
 
  152    public function delete()
 
  157        if (!parent::delete()) {
 
  165        $ilDB->manipulate(
"DELETE FROM file_based_lm WHERE id = " .
 
  166            $ilDB->quote($this->getID(), 
"integer"));
 
  185        preg_match(
"/.*htlm_([0-9]*)\.zip/", $a_filename, $match);
 
  186        if (is_dir($a_dir . 
"/htlm_" . $match[1])) {
 
  187            $a_dir = $a_dir . 
"/htlm_" . $match[1];
 
  199    public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree = 
false)
 
  201        $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
 
  207        if (!$cp_options->isRootNode($this->getRefId())) {
 
An exception for terminatinating execution or to throw for unit testing.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static _lookupDiskUsage($a_id)
Returns the number of bytes used on the harddisk by the learning module with the specified object id.
File Based Learning Module (HTML) object.
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
update($a_skip_meta=false)
update object data
getDiskUsage()
Gets the disk usage of the object in bytes.
setStartFile($a_file, $a_omit_file_check=false)
populateByDirectoy($a_dir, $a_filename="")
Populate by directory.
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone HTML learning module.
create($a_skip_meta=false)
create file based lm
getDataDirectory($mode="filesystem")
Class ilObject Basic functions for all objects.
setOfflineStatus($a_status)
Set offline status.
deleteMetaData()
delete meta data entry
updateMetaData()
update meta data entry
getOfflineStatus()
Get offline status.
createMetaData()
create meta data entry
cloneMetaData($target_obj)
Copy meta data.
getId()
get object id @access public
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static getWebspaceDir($mode="filesystem")
get webspace directory
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc