| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * PHP 4 object constructor |
| | | * |
| | | * @see rcube_user::__construct |
| | | */ |
| | | function rcube_user($id = null, $sql_arr = null) |
| | | { |
| | | $this->__construct($id, $sql_arr); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Build a user name string (as e-mail address) |
| | | * |
| | |
| | | */ |
| | | function get_prefs() |
| | | { |
| | | $prefs = array('language' => $this->language); |
| | | |
| | | if ($this->ID && $this->data['preferences']) |
| | | return array('language' => $this->language) + unserialize($this->data['preferences']); |
| | | else |
| | | return array(); |
| | | $prefs += (array)unserialize($this->data['preferences']); |
| | | |
| | | return $prefs; |
| | | } |
| | | |
| | | |