當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Core_Configuration::getSgdocePerfilProtocolo方法代碼示例

本文整理匯總了PHP中Core_Configuration::getSgdocePerfilProtocolo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Core_Configuration::getSgdocePerfilProtocolo方法的具體用法?PHP Core_Configuration::getSgdocePerfilProtocolo怎麽用?PHP Core_Configuration::getSgdocePerfilProtocolo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Core_Configuration的用法示例。


在下文中一共展示了Core_Configuration::getSgdocePerfilProtocolo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getResultList

 /**
  * Método que obtém os dados para grid
  * @param \Core_Dto_Search $dtoSearch
  * @return array
  */
 public function getResultList(\Core_Dto_Search $dtoSearch)
 {
     $this->view->perfil = Core_Integration_Sica_User::getUserProfile();
     $dtoSearch->sqPessoa = Core_Integration_Sica_User::getPersonId();
     $dtoSearch->sqUnidadeOrg = Core_Integration_Sica_User::getUserUnit();
     $dtoSearch->sqTipoArtefato = $this->getRequest()->getParam('tipoArtefato') ? $this->getRequest()->getParam('tipoArtefato') : 1;
     $dtoSearch->search = $this->getRequest()->getParam('search') ? $this->getRequest()->getParam('search') : NULL;
     $this->view->isUserSgi = $this->_isUserSgi();
     $this->view->isUnidadePro = $this->getService('AutuarDocumento')->isUnidadeProtocolizadora(false);
     $this->view->isUserPro = $this->view->perfil == \Core_Configuration::getSgdocePerfilProtocolo();
     $this->view->isAllowedAlter = in_array(\Core_Integration_Sica_User::getUserProfile(), $this->getService()->getUsersAllowedAlterArtefact());
     $dtoUnidadeOrg = Core_Dto::factoryFromData(array('sqUnidadeOrg' => $dtoSearch->sqUnidadeOrg), 'search');
     $dtoSearch->currentUnitHasNUP = $this->getService('VwUnidadeOrg')->hasNUP($dtoUnidadeOrg);
     $caixa = null;
     switch (true) {
         case $this->_getParam('unit_box'):
             $caixa = $this->_getParam('unit_box');
             break;
         case $this->_getParam('my_box'):
             $caixa = $this->_getParam('my_box');
             break;
         case $this->_getParam('archive_box'):
             $caixa = $this->_getParam('archive_box');
             break;
         default:
             $caixa = $this->_getParam('external_box');
             break;
     }
     $dtoSearch->caixa = $caixa;
     $res = $this->getService()->getGrid($dtoSearch);
     return $res;
 }
開發者ID:sgdoc,項目名稱:sgdoce-codigo,代碼行數:37,代碼來源:AreaTrabalhoController.php

示例2: getResultList

 /**
  * Método que obtém os dados para grid
  * @param \Core_Dto_Search $dtoSearch
  * @return array
  */
 public function getResultList(\Core_Dto_Search $dtoSearch)
 {
     $this->view->perfil = Core_Integration_Sica_User::getUserProfile();
     $dtoSearch->sqPessoa = Core_Integration_Sica_User::getPersonId();
     $dtoSearch->sqUnidadeOrg = Core_Integration_Sica_User::getUserUnit();
     $dtoSearch->sqTipoArtefato = $this->getRequest()->getParam('tipoArtefato') ? $this->getRequest()->getParam('tipoArtefato') : 1;
     $dtoSearch->search = $this->getRequest()->getParam('search') ? $this->getRequest()->getParam('search') : null;
     $this->view->isUserSgi = $this->_isUserSgi();
     $this->view->isUserPro = $this->view->perfil == \Core_Configuration::getSgdocePerfilProtocolo();
     $dtoUnidadeOrg = Core_Dto::factoryFromData(array('sqUnidadeOrg' => $dtoSearch->sqUnidadeOrg), 'search');
     $dtoSearch->currentUnitHasNUP = $this->getService('VwUnidadeOrg')->hasNUP($dtoUnidadeOrg);
     $caixa = $this->_getParam('migration_box');
     $dtoSearch->caixa = $caixa;
     $res = $this->getService()->getGrid($dtoSearch);
     return $res;
 }
開發者ID:sgdoc,項目名稱:sgdoce-codigo,代碼行數:21,代碼來源:AreaTrabalhoController.php


注:本文中的Core_Configuration::getSgdocePerfilProtocolo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。