本文整理汇总了PHP中LocalFile::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP LocalFile::__construct方法的具体用法?PHP LocalFile::__construct怎么用?PHP LocalFile::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LocalFile
的用法示例。
在下文中一共展示了LocalFile::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MWException
/**
* @param $title Title
* @param $repo FileRepo
* @param $time String: timestamp or null to load by archive name
* @param $archiveName String: archive name or null to load by timestamp
*/
function __construct($title, $repo, $time, $archiveName)
{
parent::__construct($title, $repo);
$this->requestedTime = $time;
$this->archive_name = $archiveName;
if (is_null($time) && is_null($archiveName)) {
throw new MWException(__METHOD__ . ': must specify at least one of $time or $archiveName');
}
}
示例2: MWException
/**
* Constructor.
* Do not call this except from inside a repo class.
*/
function __construct( $title, $repo ) {
if ( !is_object( $title ) ) {
throw new MWException( __CLASS__ . ' constructor given bogus title.' );
}
parent::__construct( $title, $repo );
$this->tempPaths = array(); // Hash from rel to local copy.
}
示例3: __construct
/**
* Constroi o objeto do manipulador do arquivo MimeMagicFile
* @param string $path Diretório que contém o arquivo mágic
*/
public function __construct( $path = '.' ) {
$path = sprintf( '%s/magic' , $path );
if ( !is_file( $path ) ) {
$path = sprintf( '%s/magic' , __DIR__ );
}
parent::__construct( $path );
$this->open( 'r' );
}
示例4: wfDeprecated
function __construct($title)
{
wfDeprecated(__METHOD__);
$repo = RepoGroup::singleton()->getLocalRepo();
parent::__construct($title, $repo);
}
示例5:
function __construct($title)
{
$repo = RepoGroup::singleton()->getLocalRepo();
parent::__construct($title, $repo);
}
示例6:
function __construct($title, $repo)
{
parent::__construct($title, $repo);
}