public function getSiteEnvironmentAction()
    {
        $json = array();
        $siteId = (int) $this->params()->fromQuery('siteId');
        
        $melisEngineTableSiteDomain = $this->getServiceLocator()->get('MelisEngineTableSiteDomain');
        $sitePlatform = $melisEngineTableSiteDomain->getEntryByField('sdom_site_id', $siteId);
        $sitePlatform = $sitePlatform->current();
        
        $siteDomainEnv = ($sitePlatform) ? $sitePlatform->sdom_env : null;
        
        return new JsonModel(array('data' => $siteDomainEnv));
    }
public function getSiteEnvironmentAction()
    {
        $json = array();
        $siteId = (int) $this->params()->fromQuery('siteId');
        
        $melisEngineTableSiteDomain = $this->getServiceLocator()->get('MelisEngineTableSiteDomain');
        $sitePlatform = $melisEngineTableSiteDomain->getEntryByField('sdom_site_id', $siteId);
        $sitePlatform = $sitePlatform->current();
        
        $siteDomainEnv = ($sitePlatform) ? $sitePlatform->sdom_env : null;
        
        return new JsonModel(array('data' => $siteDomainEnv));
    }
public function getSiteEnvironmentAction ( ) { $ json = array ( ) ; $ siteId = ( int ) $ this -> params ( ) -> fromQuery ( 'siteId' ) ; $ melisEngineTableSiteDomain = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTableSiteDomain' ) ; $ sitePlatform = $ melisEngineTableSiteDomain -> getEntryByField ( 'sdom_site_id' , $ siteId ) ; $ sitePlatform = $ sitePlatform -> current ( ) ; $ siteDomainEnv = ( $ sitePlatform ) ? $ sitePlatform -> sdom_env : null ; return new JsonModel ( array ( 'data' => $ siteDomainEnv ) ) ; }
Fetching Current Platform on specific Site
@return Json - Name of the Platform
Fetching Current Platform on specific Site