/**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional obj_id
  * @param integereger obj_id
  * @access	public
  */
 function ilFileDataImport()
 {
     define('IMPORT_PATH', 'import');
     parent::ilFileData();
     $this->import_path = parent::getPath() . "/" . IMPORT_PATH;
     // IF DIRECTORY ISN'T CREATED CREATE IT
     // STATIC CALL TO AVOID OVERWRITE PROBLEMS
     ilFileDataImport::_initDirectory();
 }
Esempio n. 2
0
 /**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional user_id
  * @param integereger user_id
  * @access	public
  */
 public function __construct($a_user_id = 0)
 {
     define('MAILPATH', 'mail');
     parent::__construct();
     $this->mail_path = parent::getPath() . "/" . MAILPATH;
     $this->checkReadWrite();
     $this->user_id = $a_user_id;
     $this->initAttachmentMaxUploadSize();
 }
Esempio n. 3
0
 public function __construct($a_pobject_id)
 {
     global $ilDB;
     $this->db = $ilDB;
     $this->pobject_id = $a_pobject_id;
     parent::__construct();
     $this->shop_path = ilUtil::getWebspaceDir() . '/' . self::SHOPPATH . '/' . $this->pobject_id;
     $this->initDirectory();
     $this->checkReadWrite();
     $this->__read();
 }
 /**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional obj_id
  * @param integereger obj_id
  * @access	public
  */
 function ilFileDataExercise($a_obj_id = 0)
 {
     die("ilFileDataExercise is deprecated.");
     define('EXERCISE_PATH', 'exercise');
     parent::ilFileData();
     $this->exercise_path = parent::getPath() . "/" . EXERCISE_PATH;
     // IF DIRECTORY ISN'T CREATED CREATE IT
     if (!$this->__checkPath()) {
         $this->__initDirectory();
     }
     $this->obj_id = $a_obj_id;
 }
 /**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional obj_id
  * @param integereger obj_id
  * @access	public
  */
 public function __construct($a_obj_id = 0, $a_pos_id = 0)
 {
     define('FORUM_PATH', 'forum');
     parent::__construct();
     $this->forum_path = parent::getPath() . "/" . FORUM_PATH;
     // IF DIRECTORY ISN'T CREATED CREATE IT
     if (!$this->__checkPath()) {
         $this->__initDirectory();
     }
     $this->obj_id = $a_obj_id;
     $this->pos_id = $a_pos_id;
 }
 /**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional obj_id
  * @param integereger obj_id
  * @access	public
  */
 function ilFileDataCourse($a_course_id)
 {
     define('COURSE_PATH', 'course');
     parent::ilFileData();
     $this->course_path = parent::getPath() . "/" . COURSE_PATH;
     $this->course_id = $a_course_id;
     // IF DIRECTORY ISN'T CREATED CREATE IT
     if (!$this->__checkPath()) {
         $this->__initDirectory();
     }
     // Check import dir
     $this->__checkImportPath();
 }
 /**
  * Constructor
  * call base constructors
  * checks if directory is writable and sets the optional obj_id
  * @param integereger obj_id
  * @access	public
  */
 function ilFileDataGroup($group_obj)
 {
     global $ilias;
     parent::ilFileData();
     $this->ilias =& $ilias;
     $this->group_path = parent::getPath() . "/" . GROUP_PATH;
     $this->group_obj =& $group_obj;
     // IF DIRECTORY ISN'T CREATED CREATE IT
     if (!$this->__checkPath()) {
         $this->__initDirectory();
     }
     // Check import dir
     #$this->__checkImportPath();
 }