src/core/classes/org/glizycms/contents/models/proxy/ContentProxy.php
/**
     * Read the content for a menu
     * @param  int  $menuId     Menu id
     * @param  int  $languageId Language id
     * @return org_glizycms_contents_models_ContentVO   Content
     */
Read the content for a menu
@param  int  $menuId     Menu id
@param  int  $languageId Language id
@return org_glizycms_contents_models_ContentVO   Content
Read the content for a menu @param int $menuId Menu id @param int $languageId Language id @return org_glizycms_contents_models_ContentVO Content
public function readContentFromMenu($menuId, $languageId, $setMenuTitle=true, $status='PUBLISHED')
    {
        $menuDocument = $this->readRawContentFromMenu($menuId, $languageId, $status);
        $contentVO = $menuDocument ? $menuDocument->getContentVO() : $this->getContentVO();
        if ($menuDocument && $contentVO->__status!=$status) {
            $contentVO = $this->getContentVO();
        }
        $contentVO->setId($menuId);
        $menuProxy = org_glizy_ObjectFactory::createObject('org.glizycms.contents.models.proxy.MenuProxy');
        $menu = $menuProxy->getMenuFromId($menuId, $languageId);
        if ($setMenuTitle){
            $contentVO->setTitle($menu->menudetail_title);
        }
        if (__Config::get('glizycms.speakingUrl')) {
            $contentVO->setUrl($menu->speakingurl_value);
        }
        return $contentVO;
    }
public function readContentFromMenu ( $ menuId , $ languageId , $ setMenuTitle = true , $ status = 'PUBLISHED' ) { $ menuDocument = $ this -> readRawContentFromMenu ( $ menuId , $ languageId , $ status ) ; $ contentVO = $ menuDocument ? $ menuDocument -> getContentVO ( ) : $ this -> getContentVO ( ) ; if ( $ menuDocument && $ contentVO -> __status != $ status ) { $ contentVO = $ this -> getContentVO ( ) ; } $ contentVO -> setId ( $ menuId ) ; $ menuProxy = org_glizy_ObjectFactory :: createObject ( 'org.glizycms.contents.models.proxy.MenuProxy' ) ; $ menu = $ menuProxy -> getMenuFromId ( $ menuId , $ languageId ) ; if ( $ setMenuTitle ) { $ contentVO -> setTitle ( $ menu -> menudetail_title ) ; } if ( __Config :: get ( 'glizycms.speakingUrl' ) ) { $ contentVO -> setUrl ( $ menu -> speakingurl_value ) ; } return $ contentVO ; }
Read the content for a menu
 @param  int  $menuId     Menu id
 @param  int  $languageId Language id
 @return org_glizycms_contents_models_ContentVO   Content
Read the content for a menu @param int $menuId Menu id @param int $languageId Language id @return org_glizycms_contents_models_ContentVO Content
// il contenuto può non esserci // viene caricato il titolo e l'id dal menù