Class Ethna_Plugin_Validator

Description

バリデータプラグインの基底クラス

Located in /class/Plugin/Ethna_Plugin_Validator.php (line 25)


	
			
Direct descendents
Class Description
 class Ethna_Plugin_Validator_Min 最小値チェックプラグイン
 class Ethna_Plugin_Validator_Custom customバリデータのラッパープラグイン
 class Ethna_Plugin_Validator_File ファイルチェックプラグイン
 class Ethna_Plugin_Validator_Max 最大値チェックプラグイン
 class Ethna_Plugin_Validator_Regexp 正規表現によるバリデータプラグイン
 class Ethna_Plugin_Validator_Mbregexp マルチバイト対応正規表現によるバリデータプラグイン
 class Ethna_Plugin_Validator_Type タイプチェックプラグイン
 class Ethna_Plugin_Validator_Required 必須フォームの検証プラグイン
Method Summary
 Ethna_Plugin_Validator Ethna_Plugin_Validator ( &$controller, object Ethna_Controller $controller)
 void &error (string $msg, int $code, [mixed $info = null])
 void getFormDef (string $name)
 void getFormType (string $name)
 void isEmpty (mixed $var, int $type)
 void &ok ()
 void &validate (string $name, mixed $var, array $params)
Methods
Constructor Ethna_Plugin_Validator (line 54)

コンストラクタ

  • access: public
Ethna_Plugin_Validator Ethna_Plugin_Validator ( &$controller, object Ethna_Controller $controller)
error (line 152)

エラーを返す

  • access: protected
void &error (string $msg, int $code, [mixed $info = null])
  • string $msg: エラーメッセージ
  • int $code: エラーコード
  • mixed $info: エラーメッセージにsprintfで渡すパラメータ
getFormDef (line 81)

フォーム定義を取得する

  • access: public
void getFormDef (string $name)
  • string $name: フォームの名前
getFormType (line 92)

フォームのtypeを取得する(配列の場合は値のみ)

  • access: public
void getFormType (string $name)
  • string $name: フォームの名前
isEmpty (line 113)

フォーム値が空かどうかを判定 (配列フォームの場合は各要素に対して呼び出す)

  • access: protected
void isEmpty (mixed $var, int $type)
  • mixed $var: フォームの値 (配列フォームの場合は各要素)
  • int $type: フォームのtype
ok (line 138)

true を参照で返す

  • access: protected
void &ok ()
validate (line 70)

フォーム値検証のためにActionFormから呼び出されるメソッド

  • access: public
void &validate (string $name, mixed $var, array $params)
  • string $name: フォームの名前
  • mixed $var: フォームの値
  • array $params: プラグインのパラメータ

Redefined in descendants as:

Documentation generated on Thu, 08 May 2008 00:15:20 +0900 by phpDocumentor 1.4.2