Esempio n. 1
0
 /**
  *
  * @param string $query  SQL query
  *   Вместо имени таблицы можно использовать '%t%'
  * @throws nc_search_data_exception|Exception
  * @return nc_search_data_persistent_collection
  */
 public function select_from_database($query)
 {
     try {
         $this->set_mysql_encoding();
         parent::select_from_database($query);
         $this->restore_mysql_encoding();
     } catch (Exception $e) {
         $this->restore_mysql_encoding();
         throw $e;
     }
     return $this;
 }