array( * // Form definition * 'type' => VAR_TYPE_INT, // Input type * 'form_type' => FORM_TYPE_TEXT, // Form type * 'name' => 'Sample', // Display name * * // Validator (executes Validator by written order.) * 'required' => true, // Required Option(true/false) * 'min' => null, // Minimum value * 'max' => null, // Maximum value * 'regexp' => null, // String by Regexp * 'mbregexp' => null, // Multibype string by Regexp * 'mbregexp_encoding' => 'UTF-8', // Matching encoding when using mbregexp * * // Filter * 'filter' => 'sample', // Optional Input filter to convert input * 'custom' => null, // Optional method name which * // is defined in this(parent) class. * ), */ ); /** * Form input value convert filter : sample * * @access protected * @param mixed $value Form Input Value * @return mixed Converted result. */ /* function _filter_sample($value) { // convert to upper case. return strtoupper($value); } */ } /** * Index action implementation. * * @author {$author} * @access public * @package {$project_id} */ class {$project_id}_Action_Index extends {$project_id}_ActionClass { /** * preprocess Index action. * * @access public * @return string Forward name (null if no errors.) */ function prepare() { /** if ($this->af->validate() > 0) { return 'error'; } $sample = $this->af->get('sample'); */ return null; } /** * Index action implementation. * * @access public * @return string Forward Name. */ function perform() { return 'index'; } }