/** * @param module_controller $p * @param null $params */ function __construct($p, $params = null) { $this->_controller = $p; $this->_params = $params; $this->renderer = $p->get_renderer(); $this->request = $p->get_request(); $this->context = $p->get_context(); $this->construct_after(); }