/**
  * 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();
 }
 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
  */
 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;
 }