Пример #1
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->uses(new TicketResponse());
     $this->uses(new Hour());
     $this->_templateobject = new Ticket();
     $this->uses($this->_templateobject);
     $this->view->set('controller', 'Tickets');
 }
Пример #2
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->module = $module;
     $configdetails = SelectorCollection::getTypeDetails($module);
     // set parent controller variables
     $this->itemFields = $configdetails['itemFields'];
     $this->targetFields = $configdetails['targetFields'];
     $this->itemTableName = $configdetails['itemTableName'];
     $this->itemOverviewName = $configdetails['itemOverviewName'];
     $this->title = $configdetails['title'];
     $this->targetModel = $configdetails['targetModel'];
     $this->setTemplateObject();
     $this->linkTableName = $configdetails['linkTableName'];
 }
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->_templateobject = new ReportDefinition();
     $this->uses($this->_templateobject);
 }
Пример #4
0
 public function __construct($module = null, $action = null)
 {
     parent::__construct($module, $action);
     $this->_templateobject = DataObjectFactory::Factory('SInvoiceLine');
     $this->uses($this->_templateobject);
 }