protected function getSearchDefinition() { $permissions = ClassUser::getPermissions(); $form_permissions = array(); foreach ($permissions as $permission) { $form_permissions[$permission['id_permission']] = $permission['name']; } $form_values = array('class' => 'ClassUser', 'controller' => $this->search_controller, 'form' => array('id_user' => array('class' => 'table_id', 'type' => 'text'), 'name' => array('class' => 'table_name', 'type' => 'text'), 'surname' => array('class' => 'table_surname', 'type' => 'text'), 'login' => array('class' => 'table_login', 'type' => 'text'), 'mail' => array('class' => 'table_mail', 'type' => 'text'), 'id_permission' => array('class' => 'table_permission', 'type' => 'select', 'options' => $form_permissions), 'active' => array('class' => 'table_status', 'type' => 'select', 'options' => array('0' => 'Wyłączony', '1' => 'Włączony')), 'guard' => array('class' => 'table_guard', 'type' => 'select', 'options' => array('0' => 'Nieaktywny', '1' => 'Aktywny')), 'actions' => array('class' => 'table_akcje'))); return $form_values; }