public function __construct($objectId, &$request, $dbOsy) { $this->dictionary = new Dictionary(array('id' => null, 'model' => array('field' => array(), 'pkeyValue' => array(), 'pkeyField' => array(), 'table' => null), 'dbvalues' => array())); $this->dbo = $dbOsy; $this->request = $request; $this->instanceId = $this->request->get('instance.id'); $this->dictionary->set('id', $objectId); $this->loadDefinition($objectId); $this->dba = DboFactory::connectionViaAppID($this->instanceId, $this->dictionary->get('form.owner')); $this->dispatcher = $this->getEventDispatcher('data-manager', $this->response); //var_dump($this->dispatcher); }
public function __construct() { //Get handler $this->dbo = DboFactory::init(); //Get new request object; $this->request = new Request($_GET, $_POST, $_REQUEST, $_COOKIE, $_FILES, $_SERVER); //Load session; $this->session = new Session($this->request->get('input.osy.sid'), $this->dbo); //Set session handler session_set_save_handler($this->session, true); //Get new router instance; $router = new Router($this->dbo, $this->request); //Set instance data into request; $this->request->set('instance', $router->getInstance()); //Start controller; $this->controller = new Controller($this->dbo, $this->request, $this->session); }
public function __construct($dbo, $request) { $this->dbo = DboFactory::init(); $this->request = $request; }