Exemplo n.º 1
0
 function __construct()
 {
     $this->database = Registry::get('appdb');
     $this->builder = new \Simplon\Mysql\Manager\SqlQueryBuilder();
     $this->manager = new \Simplon\Mysql\Manager\SqlManager($this->database);
     $this->crudManager = new \Simplon\Mysql\Crud\SqlCrudManager($this->database);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->db = \Delivery\Registry::get('appdb');
     $this->urlbuilder = \Delivery\Registry::get('approuter')->getUrlBuilder();
     $this->template = new \stdClass();
     $this->pessoaDao = new PessoaDao('pessoa', new Pessoa());
 }
Exemplo n.º 3
0
<?php

use Delivery\Router\Route;
$approuter = \Delivery\Registry::get('approuter');
$approuter->addRoute(new Route(array('match' => array('index', ''), 'action' => 'index')));
$approuter->addRoute(new Route(array('match' => array('admin'), 'action' => 'admin')));
$approuter->addRoute(new Route(array('match' => array('login'), 'action' => 'login')));
$approuter->addRoute(new Route(array('match' => array('message'), 'action' => 'message')));
$approuter->addRoute(new Route(array('match' => array('pessoa'), 'action' => 'pessoa')));
$approuter->addRoute(new Route(array('match' => array('combo'), 'action' => 'combo')));
$approuter->addRoute(new Route(array('match' => array('bebida'), 'action' => 'bebida')));
$approuter->addRoute(new Route(array('match' => array('tipoBebida'), 'action' => 'tipoBebida')));
$approuter->addRoute(new Route(array('match' => array('ingredientes'), 'action' => 'ingredientes')));
$approuter->addRoute(new Route(array('match' => array('temperos'), 'action' => 'temperos')));
$approuter->addRoute(new Route(array('match' => array('funcionario'), 'action' => 'funcionario')));
$approuter->addRoute(new Route(array('match' => array('cliente'), 'action' => 'cliente')));
$approuter->addRoute(new Route(array('match' => array('prato'), 'action' => 'prato')));
$approuter->addRoute(new Route(array('match' => array('tipoPrato'), 'action' => 'tipoPrato')));
$approuter->addRoute(new Route(array('match' => array('tamanhoPrato'), 'action' => 'tamanhoPrato')));
$approuter->addRoute(new Route(array('match' => array('statusPrato'), 'action' => 'statusPrato')));
$approuter->addRoute(new Route(array('match' => array('cardapio'), 'action' => 'cardapio')));
$approuter->addRoute(new Route(array('match' => array('pedido'), 'action' => 'pedido')));
$approuter->addRoute(new Route(array('match' => array('admPedido'), 'action' => 'admPedido')));