v7‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT status = self::STATUS_ADDED; parent::insert($reload); } function update() { $this->status = get_first($this->status, self::STATUS_CHANGED); parent::update(); } } class StateTable extends Am_Table { protected $_key = 'state_id'; protected $_table = '?_state'; protected $_recordClass = 'State'; function getTitleByCode($country, $code) { return ___($this->_db->selectCell("SELECT title FROM ?_state WHERE country=? AND state=?", $country, $code)); } function getOptions($country, $add_empty=false) { $tag = defined('AM_ADMIN') ? '' : 'AND tag>=0'; $res = $this->_db->selectCol("SELECT state as ARRAY_KEY, CASE WHEN tag<0 THEN CONCAT(title, ' (disabled)') ELSE title END AS title FROM ?_state WHERE country=? $tag ORDER BY tag DESC, title", $country); $res = array_map('___', $res); if ($res && $add_empty) { $res = array_merge(array('' => ___('[Select state]')), $res); } return $res; } }