6 * @package {$project_id}
11 * {$action_name} Form implementation.
15 * @package {$project_id}
17 class {$action_form} extends {$project_id}_ActionForm
21 * @var array form definition.
25 * TODO: Write form definition which this action uses.
26 * @see http://ethna.jp/ethna-document-dev_guide-form.html
28 * Example(You can omit all elements except for "type" one) :
32 * 'type' => VAR_TYPE_INT, // Input type
33 * 'form_type' => FORM_TYPE_TEXT, // Form type
34 * 'name' => 'Sample', // Display name
36 * // Validator (executes Validator by written order.)
37 * 'required' => true, // Required Option(true/false)
38 * 'min' => null, // Minimum value
39 * 'max' => null, // Maximum value
40 * 'regexp' => null, // String by Regexp
41 * 'mbregexp' => null, // Multibype string by Regexp
42 * 'mbregexp_encoding' => 'UTF-8', // Matching encoding when using mbregexp
45 * 'filter' => 'sample', // Optional Input filter to convert input
46 * 'custom' => null, // Optional method name which
47 * // is defined in this(parent) class.
53 * Form input value convert filter : sample
56 * @param mixed $value Form Input Value
57 * @return mixed Converted result.
60 function _filter_sample($value)
62 // convert to upper case.
63 return strtoupper($value);
69 * {$action_name} action implementation.
73 * @package {$project_id}
75 class {$action_class} extends {$project_id}_ActionClass
78 * preprocess of {$action_name} Action.
81 * @return string forward name(null: success.
82 * false: in case you want to exit.)
90 * {$action_name} action implementation.
93 * @return string forward name.
97 return '{$action_name}';