/**
  * Accepts $renderType as Edit or Details
  */
 public function __construct($renderType, $controllerId, $moduleId, $model)
 {
     assert('$model instanceof RedBeanModel || $model instanceof CFormModel || $model instanceof ModelForm');
     assert('$renderType == "Edit" || $renderType == "Details"');
     $this->renderType = $renderType;
     parent::__construct($controllerId, $moduleId, $model);
 }
 /**
  * Override to support security checks on user rights/permissions.  The savedReport is needed for this
  */
 public function __construct($controllerId, $moduleId, Report $model, $title = null, SavedReport $savedReport)
 {
     parent::__construct($controllerId, $moduleId, $model);
     $this->savedReport = $savedReport;
 }