protected function setCity($city_id)
    {
        $this->data_city = array();

        if (is_numeric($city_id)) {
            $this->data_city = $this->city->get($city_id);
            if (empty($this->data_city)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCity($city_id)
    {
        $this->data_city = array();

        if (is_numeric($city_id)) {
            $this->data_city = $this->city->get($city_id);
            if (empty($this->data_city)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCity ( $ city_id ) { $ this -> data_city = array ( ) ; if ( is_numeric ( $ city_id ) ) { $ this -> data_city = $ this -> city -> get ( $ city_id ) ; if ( empty ( $ this -> data_city ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Sets an array of city data
@param integer $city_id
Sets an array of city data