public function __construct($theme = null) { parent::__construct(); $this->targetDirectory = DIR_FILES_THEMES; if ($theme) { $this->_theme = $theme; } }
public function __construct(\ZipArchive $zipArchive, $tmpFilePath = '/tmp') { $tmpFile = tempnam($tmpFilePath, 'zip'); parent::__construct($zipArchive, $tmpFile); register_shutdown_function(function ($filename) { unlink($filename); }, $tmpFile); }
public function __construct() { parent::__construct(); $this->targetDirectory = DIR_APP_UPDATES; }
public function __construct() { parent::__construct(); $this->targetDirectory = DIR_PACKAGES; }
public function __construct($path) { parent::__construct(array()); $this->_path = $path; }
/** * function __contstruct() * do not use this to get a object * * @param array $info * @param MailBox $box * @param int $num * @return Mail * @access public * @throws MailNullException */ public function __construct($info, $box, $num) { try { parent::__construct($info); } catch (ArchiveNullException $e) { throw new MailNullException(); } if (!is_a($box, "MailBox")) { throw new MailNullException(); } $this->num = $num; $this->_box = $box; }
/** * function __contstruct() * do not use this to get a object * * @param array $info * @param Board $board * @param int $pos * @return Article * @access public * @throws ArticleNullException */ public function __construct($info, $board, $pos = null) { try { parent::__construct($info); } catch (ArchiveNullException $e) { throw new ArticleNullException(); } if (!is_a($board, "Board")) { throw new ArticleNullException(); } $this->_board = $board; $this->_pos = $pos; }