Rename $date_types -> $date_cols
| | |
| | | public $sort_col = 'name'; |
| | | public $sort_order = 'ASC'; |
| | | public $coltypes = array('name' => array('limit'=>1), 'firstname' => array('limit'=>1), 'surname' => array('limit'=>1), 'email' => array('limit'=>1)); |
| | | public $date_cols = array(); |
| | | |
| | | protected $date_types = array(); |
| | | protected $error; |
| | | |
| | | /** |
| | |
| | | // The value is a date string, for date we'll |
| | | // use only strict comparison (mode = 1) |
| | | // @TODO: partial search, e.g. match only day and month |
| | | if (in_array($colname, $this->date_types)) { |
| | | if (in_array($colname, $this->date_fields)) { |
| | | return (($value = rcube_utils::strtotime($value)) |
| | | && ($search = rcube_utils::strtotime($search)) |
| | | && date('Ymd', $value) == date('Ymd', $search)); |
| | |
| | | private $fulltext_cols = array('name', 'firstname', 'surname', 'middlename', 'nickname', |
| | | 'jobtitle', 'organization', 'department', 'maidenname', 'email', 'phone', |
| | | 'address', 'street', 'locality', 'zipcode', 'region', 'country', 'website', 'im', 'notes'); |
| | | protected $date_types = array('birthday', 'anniversary'); |
| | | |
| | | // public properties |
| | | public $primary_key = 'contact_id'; |
| | |
| | | 'jobtitle', 'organization', 'department', 'assistant', 'manager', |
| | | 'gender', 'maidenname', 'spouse', 'email', 'phone', 'address', |
| | | 'birthday', 'anniversary', 'website', 'im', 'notes', 'photo'); |
| | | public $date_cols = array('birthday', 'anniversary'); |
| | | |
| | | const SEPARATOR = ','; |
| | | |