예제 #1
0
 /**
  * {@inheritDoc}
  *
  * @param string $db_name the name of the database for the search engine
  * @param bool $connect whether to connect to the database by default
  *     after making the datasource class
  */
 function __construct($db_name = DB_NAME, $connect = true)
 {
     parent::__construct($db_name, $connect);
     $this->programming_language_map = array('java' => 'java', 'py' => 'py');
     $this->program_indicator = false;
 }
예제 #2
0
파일: crawl_model.php 프로젝트: yakar/yioop
 /**
  * {@inheritDoc}
  *
  * @param string $db_name the name of the database for the search engine
  * @param bool $connect whether to connect to the database by default
  *     after making the datasource class
  */
 function __construct($db_name = DB_NAME, $connect = true)
 {
     $this->suggest_url_file = WORK_DIRECTORY . "/data/suggest_url.txt";
     parent::__construct($db_name, $connect);
 }