OSDN Git Service

eb0176b56cc4502eeb243024f84d6c6552db4ccf
[ethna/ethna.git] / test / skel / skel.action.i18ntest.php
1 <?php
2 /**
3  *  {$action_path}
4  *
5  *  @author     {$author}
6  *  @package    {$project_id}
7  *  @version    $Id$
8  */
9
10 /**
11  *  {$action_name} Form implementation.
12  *
13  *  @author     {$author}
14  *  @access     public
15  *  @package    {$project_id}
16  */
17 class {$action_form} extends {$project_id}_ActionForm
18 {
19     /**
20      *  @access private
21      *  @var    array   form definition.
22      */
23     var $form = array(
24        'i18n_sample_name' => array(
25            'type' => VAR_TYPE_STRING, 
26            'name' => 'name_i18n',
27        ),
28        'i18n_sample_required_error' => array(
29            'type' => VAR_TYPE_STRING, 
30            'required_error' => 'required_error_i18n',
31        ),
32        'i18n_sample_type_error' => array(
33            'type' => VAR_TYPE_STRING, 
34            'type_error' => 'type_error_i18n',
35        ),
36        'i18n_sample_min_error' => array(
37            'type' => VAR_TYPE_STRING, 
38            'min_error' => 'min_error_i18n',
39        ),
40        'i18n_sample_max_error' => array(
41            'type' => VAR_TYPE_STRING, 
42            'max_error' => 'max_error_i18n',
43        ),
44        'i18n_sample_regexp_error' => array(
45            'type' => VAR_TYPE_STRING, 
46            'regexp_error' => 'regexp_error_i18n',
47        ),
48        'i18n_sample_all' => array(
49            'type' => VAR_TYPE_STRING, 
50            'name' => 'name_i18n_all',
51            'required_error' => 'required_error_i18n_all',
52            'type_error' => 'type_error_i18n_all',
53            'min_error' => 'min_error_i18n_all',
54            'max_error' => 'max_error_i18n_all',
55            'regexp_error' => 'regexp_error_i18n_all',
56        ),
57     );
58
59     function _filter_sample($value)
60     {
61         _et('actionform filter');
62     }
63 }
64
65 /**
66  *  {$action_name} action implementation.
67  *
68  *  @author     {$author}
69  *  @access     public
70  *  @package    {$project_id}
71  */
72 class {$action_class} extends {$project_id}_ActionClass
73 {
74     /**
75      *  preprocess of {$action_name} Action.
76      *
77      *  @access public
78      *  @return string    forward name(null: success.
79      *                                false: in case you want to exit.)
80      */
81     function prepare()
82     {
83         _et('action prepare');
84         _et("action
85 prepare
86  multiple
87   line");
88         return null;
89     }
90
91     /**
92      *  {$action_name} action implementation.
93      *
94      *  @access public
95      *  @return string  forward name.
96      */
97     function perform()
98     {
99         _et("action perform");
100         return '{$action_name}';
101     }
102 }
103
104 ?>