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); } */ } /** * {$action_name} action implementation. * * @author {$author} * @access public * @package {$project_id} */ class {$action_class} extends {$project_id}_ActionClass { /** * preprocess of {$action_name} Action. * * @access public * @return string forward name(null: success. * false: in case you want to exit.) */ function prepare() { return null; } /** * {$action_name} action implementation. * * @access public * @return string forward name. */ function perform() { return '{$action_name}'; } }