Exemplo n.º 1
0
 /**
  * @param RequestHTTP $po_request
  * @param ResponseHTTP $po_response
  * @param null|array $pa_view_paths
  */
 public function __construct(&$po_request, &$po_response, $pa_view_paths = null)
 {
     $this->opo_request =& $po_request;
     $this->opo_response =& $po_response;
     if ($this->opo_request->isApplicationPlugin()) {
         if (!is_array($pa_view_paths)) {
             $pa_view_paths = array();
         }
         $va_tmp = explode('/', $this->opo_request->getModulePath());
         $pa_view_paths[] = $this->opo_request->config->get('application_plugins') . '/' . $va_tmp[0] . '/views';
     }
     $this->opa_view_paths = is_array($pa_view_paths) ? $pa_view_paths : ($pa_view_paths ? array($pa_view_paths) : array());
     $this->opo_notification_manager = new NotificationManager($this->opo_request);
 }
Exemplo n.º 2
0
 public function getDestination($pb_include_action = false, $pb_include_action_extra = false)
 {
     $vs_action = $this->opo_request->getAction();
     $vs_action_extra = $this->opo_request->getActionExtra();
     return '/' . $this->opo_request->getModulePath() . '/' . $this->opo_request->getController() . ($pb_include_action ? '/' . $vs_action : '') . ($pb_include_action_extra ? '/' . $vs_action_extra : '');
 }