WikiFile::__construct PHP Method

__construct() public method

Constructs a WikiFile object from the filename given and associate with the passed Wikimate object.
public __construct ( string $filename, Wikimate $wikimate )
$filename string Name of the wiki file
$wikimate Wikimate Wikimate object
    public function __construct($filename, $wikimate)
    {
        $this->wikimate = $wikimate;
        $this->filename = $filename;
        $this->info = $this->getInfo(true);
        if ($this->invalid) {
            $this->error['file'] = 'Invalid filename - cannot create WikiFile';
        }
    }