public function getAvailableLanguages()
    {
        // Event parameters prepare
        $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args());

        // Sending service start event
        $arrayParameters = $this->sendEvent('melisengine_service_get_available_languages_start', $arrayParameters);

        // Service implementation start
        $langTable = $this->getServiceLocator()->get('MelisEngineTableCmsLang');
        $results = $langTable->fetchAll()->toArray();
        // Service implementation end

        // Adding results to parameters for events treatment if needed
        $arrayParameters['results'] = $results;
        // Sending service end event
        $arrayParameters = $this->sendEvent('melisengine_service_get_available_languages_end', $arrayParameters);

        return $arrayParameters['results'];
    }
public function getAvailableLanguages()
    {
        // Event parameters prepare
        $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args());

        // Sending service start event
        $arrayParameters = $this->sendEvent('melisengine_service_get_available_languages_start', $arrayParameters);

        // Service implementation start
        $langTable = $this->getServiceLocator()->get('MelisEngineTableCmsLang');
        $results = $langTable->fetchAll()->toArray();
        // Service implementation end

        // Adding results to parameters for events treatment if needed
        $arrayParameters['results'] = $results;
        // Sending service end event
        $arrayParameters = $this->sendEvent('melisengine_service_get_available_languages_end', $arrayParameters);

        return $arrayParameters['results'];
    }
public function getAvailableLanguages ( ) { // Event parameters prepare $ arrayParameters = $ this -> makeArrayFromParameters ( __METHOD__ , func_get_args ( ) ) ; // Sending service start event $ arrayParameters = $ this -> sendEvent ( 'melisengine_service_get_available_languages_start' , $ arrayParameters ) ; // Service implementation start $ langTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTableCmsLang' ) ; $ results = $ langTable -> fetchAll ( ) -> toArray ( ) ; // Service implementation end // Adding results to parameters for events treatment if needed $ arrayParameters [ 'results' ] = $ results ; // Sending service end event $ arrayParameters = $ this -> sendEvent ( 'melisengine_service_get_available_languages_end' , $ arrayParameters ) ; return $ arrayParameters [ 'results' ] ; }
This service gets all available languages
This service gets all available languages