Ejemplo n.º 1
0
 /**
  * @param array $viewData
  * @param array $params
  * @param string $uniqueLayoutId
  */
 public function __construct($viewData, $params, $uniqueLayoutId)
 {
     assert('isset($params["controllerId"])');
     assert('isset($params["relationModuleId"])');
     assert('$params["relationModel"] instanceof RedBeanModel || $params["relationModel"] instanceof ModelForm');
     assert('isset($params["portletId"])');
     assert('isset($params["redirectUrl"])');
     $this->modelClassName = $this->getModelClassName();
     $this->viewData = $viewData;
     $this->params = $params;
     $this->uniqueLayoutId = $uniqueLayoutId;
     $this->gridIdSuffix = $uniqueLayoutId;
     $this->rowsAreSelectable = false;
     $this->gridId = 'list-view';
     $this->controllerId = $this->resolveControllerId();
     $this->moduleId = $this->resolveModuleId();
     parent::__construct('Details', $this->controllerId, $this->moduleId, $params["relationModel"]);
 }
 /**
  * Constructor for the class
  * @param string $renderType
  * @param string $controllerId
  * @param string $moduleId
  * @param RedBeanModel $model
  * @param Array $selectedAccounts contacts selected for merge
  */
 public function __construct($renderType, $controllerId, $moduleId, $model, $selectedAccounts)
 {
     $this->selectedAccounts = $selectedAccounts;
     parent::__construct($renderType, $controllerId, $moduleId, $model);
 }