1 | <?php |
||
3 | abstract class Custom_validation |
||
4 | { |
||
5 | private $CI; |
||
6 | |||
7 | public function __construct() |
||
8 | { |
||
9 | $this->CI =& get_instance(); |
||
10 | $this->CI->load->library('form_validation'); |
||
11 | |||
12 | $this->set_validation_rules(); |
||
13 | } |
||
14 | |||
15 | // バリデーションの設定 |
||
16 | abstract protected function set_validation_rules(); |
||
17 | |||
18 | protected function set_error_delimiters($prefix = '<p>', $suffix = '</p>') |
||
22 | |||
23 | protected function set_rules( |
||
29 | |||
30 | public function validate(array $data = []) |
||
40 | |||
41 | public function run() |
||
45 | } |
||
46 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.