本文整理汇总了PHP中Core_Configuration::getSicaeSqSistema方法的典型用法代码示例。如果您正苦于以下问题:PHP Core_Configuration::getSicaeSqSistema方法的具体用法?PHP Core_Configuration::getSicaeSqSistema怎么用?PHP Core_Configuration::getSicaeSqSistema使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core_Configuration
的用法示例。
在下文中一共展示了Core_Configuration::getSicaeSqSistema方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
public function indexAction()
{
$user = Zend_Auth::getInstance()->getIdentity();
if ((int) $user->sqSistema !== (int) \Core_Configuration::getSicaeSqSistema()) {
$this->_redirect('/index/home');
}
}
示例2: preInsert
public function preInsert($entity, $dto = NULL)
{
if (!(array) \Core_Integration_Sica_User::get()) {
$systemEntity = $this->getEntityManager()->getRepository('app:Sistema')->findOneBySqSistema(\Core_Configuration::getSicaeSqSistema());
\Core_Integration_Sica_User::set((object) array('sqUsuario' => 0, 'sqSistema' => $systemEntity->getSqSistema(), 'inPerfilExterno' => true));
\Core_Integration_Sica_User::setSystems(array($systemEntity->getSqSistema() => array('sgSistema' => $systemEntity->getSgSistema())));
}
$entity->setTxSenha(md5($entity->getTxSenha()));
$entity->setStRegistroAtivo(\Core_Configuration::getSicaeUsuarioExtStRegistroPendAtivacao());
// Para tratamento do Usuário Externo do CANIE -- INICIO
########
$repository = 'app:Pessoa';
$data = array('noPessoa' => $entity->getNoUsuarioExterno(), 'stRegistroAtivo' => TRUE, 'stUsuarioExterno' => TRUE, 'sqTipoPessoa' => 1);
$method = 'libCorpSavePessoa';
$sqPessoa = $this->getServiceLocator()->getService('Pessoa')->saveLibCorp($repository, $method, $data);
$entity->setSqUsuarioExterno($sqPessoa);
########
// Para tratamento do Usuário Externo do CANIE -- FIM
}