Ejemplo n.º 1
0
	public function __construct($theme = null) {
		parent::__construct();
		$this->targetDirectory = DIR_FILES_THEMES;
		if ($theme) {
			$this->_theme = $theme;
		}
	}
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->targetDirectory = DIR_PACKAGES;
 }
Ejemplo n.º 5
0
 public function __construct($path)
 {
     parent::__construct(array());
     $this->_path = $path;
 }
Ejemplo n.º 6
0
 /**
  * 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;
 }
Ejemplo n.º 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;
 }