/** * @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'); } }
/** * 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. }
/** * 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' ); }
function __construct($title) { wfDeprecated(__METHOD__); $repo = RepoGroup::singleton()->getLocalRepo(); parent::__construct($title, $repo); }
function __construct($title) { $repo = RepoGroup::singleton()->getLocalRepo(); parent::__construct($title, $repo); }
function __construct($title, $repo) { parent::__construct($title, $repo); }