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 | |
/** | |
* [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 | |
'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
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
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
<?php | |
namespace Admin\Form; | |
use Zend\Form\Form; | |
use Zend\InputFilter\InputFilterProviderInterface; | |
class GaleriaForm extends Form implements InputFilterProviderInterface | |
{ | |
public function init() | |
{ |
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 | |
/** | |
* Persistir o objeto da mensagem, verifica se irá alterar ou cadastrar | |
* @param EntityManager $em | |
* @param Resposta &$objResposta | |
* @return Array Dados necessários para o registro do log | |
*/ | |
public function persistir(EntityManager $em, Resposta &$objResposta) | |
{ |
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 | |
/** | |
* @author Gabriel P. Fiel <[email protected]> | |
*/ | |
namespace Application\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Application\Interfaces\SoftDeleteInterface; |
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
$dataArray = array('nome_vendedor' => $this->proposta->vendedor->nome, | |
'nome_comprador' => $this->proposta->comprador->nome, | |
'proposta' => $this->proposta->mensagem, | |
'mensagem' => $request->input("resposta"), | |
'linkAnuncio' => url('anuncio/'.$this->proposta->anuncio->slug)); | |
$email_comprador = $this->proposta->comprador->email; | |
Mail::send('email.responderProposta', $dataArray, function ($m) use ($email_comprador) { | |
$m->from('[email protected]', 'BidCarros Portal'); |
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 | |
$dataArray = array('nome_vendedor' => $this->proposta->vendedor->nome, | |
'nome_comprador' => $this->proposta->comprador->nome, | |
'proposta' => $this->proposta->mensagem, | |
'mensagem' => $request->input("resposta"), | |
'linkAnuncio' => url('anuncio/'.$this->proposta->anuncio->slug)); | |
$email_comprador = $this->proposta->comprador->email; | |
Mail::send('email.responderProposta', $dataArray, function ($m) use ($email_comprador) { |