public function get($code)
    {
        $result = null;
        $this->hook->attach('language.get.before', $code, $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $list = $this->getList();
        $result = isset($list[$code]) ? $list[$code] : array();

        $this->hook->attach('language.get.after', $code, $result, $this);
        return (array) $result;
    }
public function get($code)
    {
        $result = null;
        $this->hook->attach('language.get.before', $code, $result, $this);

        if (isset($result)) {
            return (array) $result;
        }

        $list = $this->getList();
        $result = isset($list[$code]) ? $list[$code] : array();

        $this->hook->attach('language.get.after', $code, $result, $this);
        return (array) $result;
    }
public function get ( $ code ) { $ result = null ; $ this -> hook -> attach ( 'language.get.before' , $ code , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( array ) $ result ; } $ list = $ this -> getList ( ) ; $ result = isset ( $ list [ $ code ] ) ? $ list [ $ code ] : array ( ) ; $ this -> hook -> attach ( 'language.get.after' , $ code , $ result , $ this ) ; return ( array ) $ result ; }
Returns a language
@param string $code
@return array
Returns a language