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