예제 #1
0
 function set_dict($fpath)
 {
     $xdb = new XDB_R();
     if (!$xdb->Open($fpath)) {
         return false;
     }
     $this->_xd = $xdb;
 }
예제 #2
0
파일: dict.class.php 프로젝트: lamphp/scws
 function _load($fpath)
 {
     $db = new XDB_R();
     if (!$db->Open($fpath)) {
         trigger_error("无法打开类型为 xdb 数据文件 `{$fpath}`", E_USER_ERROR);
     } else {
         $this->_dbh = $db;
     }
 }