public function getAPILanguages(bool $force = false) : CNabuLanguageList
    {
        $nb_api = new CNabuLanguageList();
        $this->getLanguages($force)->iterate(function ($key, CNabuLanguage $nb_language) use ($nb_api) {
            if ($nb_language->isAPILanguage()) {
                $nb_api->addItem($nb_language);
            }
            return true;
        });

        return $nb_api;
    }
public function getAPILanguages(bool $force = false) : CNabuLanguageList
    {
        $nb_api = new CNabuLanguageList();
        $this->getLanguages($force)->iterate(function ($key, CNabuLanguage $nb_language) use ($nb_api) {
            if ($nb_language->isAPILanguage()) {
                $nb_api->addItem($nb_language);
            }
            return true;
        });

        return $nb_api;
    }
public function getAPILanguages ( bool $ force = false ) : CNabuLanguageList { $ nb_api = new CNabuLanguageList ( ) ; $ this -> getLanguages ( $ force ) -> iterate ( function ( $ key , CNabuLanguage $ nb_language ) use ( $ nb_api ) { if ( $ nb_language -> isAPILanguage ( ) ) { $ nb_api -> addItem ( $ nb_language ) ; } return true ; } ) ; return $ nb_api ; }
Get the list of all API Languages setted for this site.
@param bool $force When true, force to reload list from database.
@return CNabuLanguageList Returns the list of available languages.
Get the list of all API Languages setted for this site .