public function getLanguage($nb_language)
    {
        $retval = false;

        $nb_language_id = nb_getMixedValue($nb_language, NABU_LANG_FIELD_ID);
        if (is_numeric($nb_language_id) || nb_isValidGUID($nb_language_id)) {
            $this->getLanguages();
            if ($this->languages_list->containsKey($nb_language_id)) {
                $retval = $this->languages_list->getItem($nb_language_id);
            }
        }

        return $retval;
    }
public function getLanguage($nb_language)
    {
        $retval = false;

        $nb_language_id = nb_getMixedValue($nb_language, NABU_LANG_FIELD_ID);
        if (is_numeric($nb_language_id) || nb_isValidGUID($nb_language_id)) {
            $this->getLanguages();
            if ($this->languages_list->containsKey($nb_language_id)) {
                $retval = $this->languages_list->getItem($nb_language_id);
            }
        }

        return $retval;
    }
public function getLanguage ( $ nb_language ) { $ retval = false ; $ nb_language_id = nb_getMixedValue ( $ nb_language , NABU_LANG_FIELD_ID ) ; if ( is_numeric ( $ nb_language_id ) || nb_isValidGUID ( $ nb_language_id ) ) { $ this -> getLanguages ( ) ; if ( $ this -> languages_list -> containsKey ( $ nb_language_id ) ) { $ retval = $ this -> languages_list -> getItem ( $ nb_language_id ) ; } } return $ retval ; }
Gets the language object owned by this object that represents a language entity allowed for them
@param mixed $nb_language Object containing a valid language ID or and ID directly
@return INabuTranslation If this entity owns the requested language returns a language instance
else returns null.
Gets the language object owned by this object that represents a language entity allowed for them