/** * @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); }