Php/docs/tokyotyrantquery.construct

提供:Dev Guides
< Php
移動先:案内検索

TokyoTyrantQuery::__construct

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantQuery::__construct新しいクエリを作成する


説明

public TokyoTyrantQuery::__construct ( TokyoTyrantTable $table )

新しいクエリオブジェクトを作成します。


パラメータ

table
アクティブなデータベースに接続している TokyoTyrantTable オブジェクト。


返り値

新しい TokyoTyrantQuery オブジェクトを返します。エラー時には TokyoTyrantException をスローします。


例1 TokyoTyrantQuery::__construct() の例

<?php$tt = new TokyoTyrantTable("localhost", 1979);$query = new TokyoTyrantQuery($tt);/* $query を使って何かをします */?>

参考