This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function handleSOAP() { | |
$soap = new \Zend\Soap\Server($this->_WSDL_URI); | |
/** | |
* Criamos um novo diretorio chamado Service e criamos a class ExtranetService | |
* depois setamos a classe no autodiscover no metodo setClass | |
*/ | |
$soap->setClass('\WebService\Service\ExtranetService'); | |
$soap->setObject(new ExtranetService($this->getServiceLocator()->get('Doctrine\ORM\EntityManager'))); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getViewHelperConfig() | |
{ | |
return array( | |
'factories' => array( | |
'funcoes' => function($sm) { | |
$locator = $sm->getServiceLocator(); | |
return new Funcoes($locator); | |
}, | |
'flashMessages' => function($sm) { | |
$flashmessenger = $sm->getServiceLocator() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
'funcoes' => function($sm) { | |
$locator = $sm->getServiceLocator(); | |
return new Funcoes($locator); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* [getParam search for a global param in the session example Pagination. 30 by default or 50 by user specific] | |
* @param [type] $param [Param name example Pagination] | |
* @return [type] [return param if exists or false] | |
*/ | |
public function getParam($param) | |
{ | |
$auth = new AuthenticationService(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* [getParametro tem como finalidade a busca do parametro global ou especifico para uma determinada solicitacao Ex. Paginação qtd de páginas] | |
* essa função está duplicada no arquivo HelperFuncoes.php | |
* @param [type] $param [Nome do parametro Ex. Paginação] | |
* @return [type] [retornará Parametro ou false] | |
*/ | |
public function getParametro($param) | |
{ | |
$autenticacao = new AuthenticationService(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$inputFilter->add($factory->createInput(array( | |
'name' => 'id', | |
'required' => false, | |
'filters' => array( | |
array('name' => 'Int'), | |
), | |
))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
class AcessarEntidadeController extends AbstractActionController | |
{ | |
/** | |
* @var EntityManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Form; | |
use Zend\Form\Form; | |
class LoginForm extends Form | |
{ | |
public function __construct($name = null) | |
{ | |
parent::__construct('login-form'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase; | |
use \CodeGuy; | |
class UC001LoginTest extends AbstractHttpControllerTestCase | |
{ | |
protected function setUp() | |
{ | |
$this->setApplicationConfig( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace ApplicationTest\Controller; | |
use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase; | |
class LoginControllerTeste extends AbstractHttpControllerTestCase | |
{ | |
public function setUp() | |
{ |