|
|
|
|
|
|
|
|
case 'text': |
|
|
case 'text': |
|
|
case 'string': |
|
|
case 'string': |
|
|
case 'toggle': |
|
|
case 'toggle': |
|
|
|
|
|
// $filter = $this->getListFilterParam($field['property']); |
|
|
$filter = $this->filtersForm->get($field['property'])->getData(); |
|
|
$filter = $this->filtersForm->get($field['property'])->getData(); |
|
|
if ($filter !== null) { |
|
|
if ($filter !== null) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]); |
|
|
return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//TODO finaliser la sauvegarde des filtres |
|
|
|
|
|
/* |
|
|
|
|
|
protected function getListFilterParam($param){ |
|
|
|
|
|
$entityName = $this->entity['name']; |
|
|
|
|
|
$sessionParam = $entityName.$param; |
|
|
|
|
|
//CUSTOM |
|
|
|
|
|
|
|
|
|
|
|
$value = $this->filtersForm->get($param)->getViewData(); |
|
|
|
|
|
if($value){ |
|
|
|
|
|
$this->session->set($sessionParam, $value); |
|
|
|
|
|
}else if($this->session->get($sessionParam) && !$this->filtersForm->isSubmitted() && $this->filtersForm->get($param)){ |
|
|
|
|
|
$value = $this->session->get($sessionParam); |
|
|
|
|
|
$this->filtersForm->get($param)->setData($value); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $value; |
|
|
|
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
protected function getListParam($param, $default =null){ |
|
|
protected function getListParam($param, $default =null){ |
|
|
$entityName = $this->entity['name']; |
|
|
$entityName = $this->entity['name']; |
|
|
$sessionParam = $entityName.$param; |
|
|
$sessionParam = $entityName.$param; |