1 | <?php |
||
6 | class Validation_callbacks { |
||
7 | |||
8 | /** |
||
9 | * CodeIgniter Instance |
||
10 | * |
||
11 | * @var MY_Controller |
||
12 | */ |
||
13 | protected $CI; |
||
14 | |||
15 | /** |
||
16 | * Constructor |
||
17 | */ |
||
18 | 2 | public function __construct() |
|
22 | |||
23 | /** |
||
24 | * Validate the format of the due date field |
||
25 | * |
||
26 | * @param string $due |
||
27 | * @return bool |
||
28 | */ |
||
29 | 7 | public function due_date($due) |
|
42 | |||
43 | /** |
||
44 | * Verify that an email address is valid |
||
45 | * |
||
46 | * @param string $email |
||
47 | * @return bool |
||
48 | */ |
||
49 | 5 | public function valid_email($email) |
|
60 | |||
61 | /** |
||
62 | * Verify that a reminder has a valid due date |
||
63 | * |
||
64 | * @param string $date |
||
65 | * @return bool |
||
66 | */ |
||
67 | public function reminder_due($date) |
||
78 | } |
||
79 | // End of libraries/Validation_callbacks.php |