Setuco
[ class tree: Setuco ] [ index: Setuco ] [ all elements ]

Class: Setuco_Validate_KeywordLength

Source Location: /library/Setuco/Validate/KeywordLength.php

Class Overview

Zend_Validate_Abstract
   |
   --Setuco_Validate_KeywordLength



Author(s):

  • suzuki-mar

Copyright:

  • Copyright (c) 2010 SetucoCMS Project.

Variables

Constants

Methods



Class Details

[line 27]


Tags:

author:  suzuki-mar
copyright:  Copyright (c) 2010 SetucoCMS Project.
license:  


[ Top ]


Class Variables

$_count_max =  null

[line 77]

キーワードの最大個数



Tags:

access:  protected

Type:   int


[ Top ]

$_count_min =  null

[line 71]

キーワードの最小個数



Tags:

access:  protected

Type:   int


[ Top ]

$_delimiter =  ','

[line 83]

キーワードの区切り文字 デフォルトは','



Tags:

access:  protected

Type:   string


[ Top ]

$_max =  null

[line 65]

キーワードの最大文字数



Tags:

access:  protected

Type:   int


[ Top ]

$_messageTemplates = array(
        self::INVALID => "不正な文字です。",
        self::TOO_STRING_SHORT => "キーワードは、%min%文字以上で入力してください。",
        self::TOO_STRING_LONG => "キーワードは、%max%文字以下で入力してください。",
        self::TOO_KEYWORD_LOW => "キーワードは、%count_min%個以上で入力してください。",
        self::TOO_KEYWORD_MUCH => "キーワードは、%count_max%個以下で入力してください。",
    )

[line 38]



Tags:

access:  protected

Type:   array


[ Top ]

$_messageVariables = array(
        'min' => '_min',
        'max' => '_max',
        'count_min' => '_count_min',
        'count_max' => '_count_max',
    )

[line 48]



Tags:

access:  protected

Type:   array


[ Top ]

$_min =  null

[line 59]

キーワードの最小文字数



Tags:

access:  protected

Type:   int


[ Top ]

$_stringValidate =

[line 89]

文字列をチェックするバリデータクラス



Tags:

access:  protected

Type:   Zend_Validate_StringLength


[ Top ]



Class Methods


method isValid [line 151]

キーワードが正しいかどうか isValid( string $targetString)

キーワードのチェックをする



Tags:

author:  suzuki-mar
access:  public


Parameters:

string   $targetString   チェックするキーワード

[ Top ]

constructor __construct [line 98]

Setuco_Validate_KeywordLength __construct( $options)

インスタンス変数の設定をする 引数は配列のみ対応



Tags:

author:  suzuki-mar
access:  public


Parameters:

array   $options   インスタンスに設定するパラメーター

[ Top ]

method _checkParams [line 127]

boolean _checkParams( )

パラメーターのチェックをする



Tags:

return:  パラメーターが正しいか
author:  suzuki-mar
throws:  Setuco_Exception パラメータが不正の場合
access:  private


[ Top ]


Class Constants

INVALID =  'stringLengthInvalid'

[line 29]


[ Top ]

TOO_KEYWORD_LOW =  'keywordCountTooLow'

[line 32]


[ Top ]

TOO_KEYWORD_MUCH =  'keywordCountTooMuch'

[line 33]


[ Top ]

TOO_STRING_LONG =  'stringLengthTooLong'

[line 31]


[ Top ]

TOO_STRING_SHORT =  'stringLengthTooShort'

[line 30]


[ Top ]



Documentation generated on Mon, 07 Feb 2011 01:28:19 +0900 by phpDocumentor 1.4.3