Example #1
0
 public function __construct($file, $namespaces = array(WikiTitle::NS_MAIN))
 {
     parent::__construct();
     $this->logger = \dbpedia\core\DBpediaLogger::getLogger(__CLASS__);
     $this->file = $file;
     $this->namespaces = $namespaces;
 }
Example #2
0
 /**
  * @param $baseDir must end with a directory separator (slash or backslash)
  * @param $skipNames names (not paths) of files and directories to skip, e.g. '.svn'. 
  * If not given, all files and directories will be included.
  * @param $paths array of strings, paths of files to use, relative to base dir,
  * using forward slashes. If not given, all files and directories will be included.
  */
 public function __construct($baseDir, $skipNames = null, $paths = null)
 {
     parent::__construct();
     $this->logger = \dbpedia\core\DBpediaLogger::getLogger(__CLASS__);
     $this->processor = new FileProcessor($baseDir, $skipNames, $paths);
 }