本文整理汇总了PHP中Archive::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Archive::__construct方法的具体用法?PHP Archive::__construct怎么用?PHP Archive::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Archive
的用法示例。
在下文中一共展示了Archive::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($theme = null) {
parent::__construct();
$this->targetDirectory = DIR_FILES_THEMES;
if ($theme) {
$this->_theme = $theme;
}
}
示例2: __construct
public function __construct(\ZipArchive $zipArchive, $tmpFilePath = '/tmp')
{
$tmpFile = tempnam($tmpFilePath, 'zip');
parent::__construct($zipArchive, $tmpFile);
register_shutdown_function(function ($filename) {
unlink($filename);
}, $tmpFile);
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->targetDirectory = DIR_APP_UPDATES;
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->targetDirectory = DIR_PACKAGES;
}
示例5: __construct
public function __construct($path)
{
parent::__construct(array());
$this->_path = $path;
}
示例6: __construct
/**
* 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: __construct
/**
* 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;
}