예제 #1
0
 /**
  * Constructor
  * @since Version 3.3
  * @version 3.3
  * @param 
  */
 public function __construct($folder = PM_INBOX)
 {
     parent::__construct();
     $this->folder = $folder;
     $this->name = ucwords($folder);
     $this->url = new Url(sprintf("/messages/%s", $folder));
 }
예제 #2
0
 /**
  * Constructor
  * @since Version 3.2
  * @var object $db
  * @var object $User
  */
 public function __construct($User = false)
 {
     parent::__construct();
     if (!$User || !$User->id || $User->id == NULL || empty($User->id)) {
         throw new \Exception("Cannot instantiate " . __CLASS__ . " - user object is empty or not loaded" . printArray(debug_backtrace()));
     }
     $this->User = $User;
 }
예제 #3
0
 /** 
  * Constructor
  * @since Version 3.3
  * @version 3.3
  * @param object $db
  * @param int $id
  */
 public function __construct()
 {
     parent::__construct();
     foreach (func_get_args() as $arg) {
         if (filter_var($arg, FILTER_VALIDATE_INT)) {
             $this->load($arg);
         }
     }
 }
예제 #4
0
 /**
  * Constructor
  * @since Version 3.3
  * @version 3.3
  * @param object $db
  * @param int $id
  */
 public function __construct($id = false)
 {
     parent::__construct();
     if (filter_var($id, FILTER_VALIDATE_INT)) {
         $this->id = $id;
         $this->fetch();
     }
 }
예제 #5
0
 /**
  * Constructor
  * @since Version 3.3
  * @version 3.3
  * @param object $db
  * @param int $id
  */
 public function __construct($id = false)
 {
     parent::__construct();
     foreach (func_get_args() as $arg) {
         if (filter_var($arg, FILTER_VALIDATE_INT)) {
             $this->id = $id;
             $this->fetch();
         }
     }
 }