本文整理匯總了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);
}