Class Ethna_AppSQL

Description

アプリケーションSQLベースクラス

Located in /class/AppSQL.php (line 20)


	
			
Variable Summary
 mixed $controller
Method Summary
 static void escapeSQL (mixed &$var, [ $type = null])
 static string getCondition (string $field, mixed $value, [int $condition = OBJECT_CONDITION_EQ])
 static void unescapeSQL (mixed &$var, [ $type = null])
 Ethna_AppSQL __construct ( $controller, object Ethna_Controller &$controller)
 string get ( $sqlid, array $args, string $sqlfunc)
Variables
mixed $controller (line 27)
  • access: protected
Methods
static escapeSQL (line 64)

SQL引数をエスケープする

  • access: public
void escapeSQL (mixed &$var, [ $type = null])
  • mixed &$var: エスケープする値
  • $type
static getCondition (line 115)

WHERE条件文を生成する

  • return: 検索条件文
  • access: public
string getCondition (string $field, mixed $value, [int $condition = OBJECT_CONDITION_EQ])
  • string $field: 検索対象のフィールド
  • mixed $value: 検索値
  • int $condition: 検索条件(OBJECT_CONDITION_NE,...)
static unescapeSQL (line 90)

escapeSQLでエスケープされた文字列をunescapeする

  • access: public
void unescapeSQL (mixed &$var, [ $type = null])
  • mixed &$var: エスケープを復帰する値
  • $type
Constructor __construct (line 37)

Ethna_AppSQLのコンストラクタ

  • access: public
Ethna_AppSQL __construct ( $controller, object Ethna_Controller &$controller)
get (line 50)

適切にエスケープされたSQL文を返す

  • return: エスケープされたSQL文
  • access: public
string get ( $sqlid, array $args, string $sqlfunc)
  • string $sqlfunc: SQL文種別名
  • array $args: 引数一覧
  • $sqlid

Documentation generated on Fri, 11 Nov 2011 03:57:41 +0900 by phpDocumentor 1.4.3