| | |
| | | { |
| | | public $ID = null; |
| | | public $data = null; |
| | | public $language = 'en_US'; |
| | | public $language = null; |
| | | |
| | | private $db = null; |
| | | |
| | |
| | | */ |
| | | 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; |
| | | } |
| | | |
| | | |
| | |
| | | WHERE del<>1 |
| | | AND user_id=? |
| | | $sql_add |
| | | ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC", |
| | | ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC, identity_id ASC", |
| | | $this->ID); |
| | | |
| | | return $sql_result; |