コード例 #1
0
ファイル: Object.php プロジェクト: rsky/phroonga
 public function getContext()
 {
     if ($this->obj) {
         $ctx = grn_obj_ctx($this->obj);
     } else {
         $ctx = grn_get_default_ctx();
     }
     return new Context($ctx);
 }
コード例 #2
0
ファイル: Context.php プロジェクト: rsky/phroonga
 public static function getDefaultContext()
 {
     return new Context(grn_get_default_ctx());
 }