当前位置: 首页>>代码示例>>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;未经允许,请勿转载。