protected function setCurrency($code)
    {
        $this->data_currency = array();

        if (!empty($code)) {
            $this->data_currency = $this->currency->get($code);
            if (empty($this->data_currency)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCurrency($code)
    {
        $this->data_currency = array();

        if (!empty($code)) {
            $this->data_currency = $this->currency->get($code);
            if (empty($this->data_currency)) {
                $this->outputHttpStatus(404);
            }
        }
    }
protected function setCurrency ( $ code ) { $ this -> data_currency = array ( ) ; if ( ! empty ( $ code ) ) { $ this -> data_currency = $ this -> currency -> get ( $ code ) ; if ( empty ( $ this -> data_currency ) ) { $ this -> outputHttpStatus ( 404 ) ; } } }
Set a currency data
@param string $code
Set a currency data