Class Ethna_Plugin_Validator

Description

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

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

Ethna_Plugin_Abstract
   |
   --Ethna_Plugin_Validator
Direct descendents
Class Description
 class Ethna_Plugin_Validator_Max 最大値チェックプラグイン
 class Ethna_Plugin_Validator_Custom customバリデータのラッパープラグイン
 class Ethna_Plugin_Validator_Min 最小値チェックプラグイン
 class Ethna_Plugin_Validator_Strmincompat 最小値チェックプラグイン (マルチバイト文字列(EUC_JP)用. Ethna 2.3.x までの互換性保持用)
 class Ethna_Plugin_Validator_Strmaxcompat 最大値チェックプラグイン (マルチバイト文字列(EUC_JP)用. Ethna 2.3.x までの互換性保持用)
 class Ethna_Plugin_Validator_Type タイプチェックプラグイン
 class Ethna_Plugin_Validator_File ファイルチェックプラグイン
 class Ethna_Plugin_Validator_Regexp 正規表現によるバリデータプラグイン
 class Ethna_Plugin_Validator_Mbstrmax 最大値チェックプラグイン (マルチバイト文字列用)
 class Ethna_Plugin_Validator_Mbstrmin 最小値チェックプラグイン (マルチバイト文字列用)
 class Ethna_Plugin_Validator_Strmax 最大値チェックプラグイン (シングルバイト文字列用)
 class Ethna_Plugin_Validator_Required 必須フォームの検証プラグイン
 class Ethna_Plugin_Validator_Mbregexp マルチバイト対応正規表現によるバリデータプラグイン
 class Ethna_Plugin_Validator_Strmin 最小値チェックプラグイン (シングルバイト文字列用)
Variable Summary
Method Summary
 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)
Variables
Methods
error (line 126)

return error

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

フォーム定義を取得する

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

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

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

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

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

return true

  • access: protected
void ok ()
validate (line 44)

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

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

Redefined in descendants as:

Inherited Methods

Inherited From Ethna_Plugin_Abstract

 Ethna_Plugin_Abstract::__construct()
 Ethna_Plugin_Abstract::getConfig()
 Ethna_Plugin_Abstract::getName()
 Ethna_Plugin_Abstract::getType()
 Ethna_Plugin_Abstract::_detectName()
 Ethna_Plugin_Abstract::_detectType()
 Ethna_Plugin_Abstract::_load()
 Ethna_Plugin_Abstract::_loadConfig()

Documentation generated on Fri, 11 Nov 2011 03:59:21 +0900 by phpDocumentor 1.4.3