protected function setCountry($country_code)
    {
        $this->data_country = array();

        if (!empty($country_code)) {
            $this->data_country = $this->country->get($country_code);
            if (empty($this->data_country)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCountry($country_code)
    {
        $this->data_country = array();

        if (!empty($country_code)) {
            $this->data_country = $this->country->get($country_code);
            if (empty($this->data_country)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCountry ( $ country_code ) { $ this -> data_country = array ( ) ; if ( ! empty ( $ country_code ) ) { $ this -> data_country = $ this -> country -> get ( $ country_code ) ; if ( empty ( $ this -> data_country ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Set an array of country data
@param string $country_code
Set an array of country data