示例#1
0
	public function __construct($theme = null) {
		parent::__construct();
		$this->targetDirectory = DIR_FILES_THEMES;
		if ($theme) {
			$this->_theme = $theme;
		}
	}
示例#2
0
 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;
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->targetDirectory = DIR_PACKAGES;
 }
示例#5
0
 public function __construct($path)
 {
     parent::__construct(array());
     $this->_path = $path;
 }
示例#6
0
文件: mail.php 项目: tilitala/nForum
 /**
  * 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;
 }
示例#7
0
 /**
  * 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;
 }