Rule クラス
ポストバックデータのフィルター方式(文字数制限、入力制限、文字変換、デフォルト値、ページセッションの使用)を指定します。
LIB PHP Frameworkコントロールパネルで使用する際には、イベント設定のuseディレクティブで「Rule」を選択してください。
- バージョン:
- LIB PHP Framework 3.0 以上
- ネームスペース:
- Lib
- ファイルパス:
- Lib/Common/Rule.class
プロパティー
名前 | アクセス権 | 説明 |
---|---|---|
$length | ReadOnly | 最大文字数 |
$pattern | ReadOnly | 禁則正規表現パターン |
$convert | ReadOnly | かな変換オプション |
$default | ReadOnly | 既定値 |
$isRequired | ReadOnly | 必須判定 |
$useSession | ReadOnly | ポストデータをセッションに保存する場合はtrue |
メソッド
名前 | アクセス権 | 説明 |
---|---|---|
コンストラクター | public | コンストラクター |