protected function getInput() { $userId = (string) $this->form->getValue($this->element['name']); $owner = (string) $this->element['typeowner'] ? $this->element['typeowner'] : 0; if ($owner == 1) { return PhocaGalleryAccess::usersListOwner($this->name, $this->id, $userId, 1, NULL, 'name', 0); } else { return PhocaGalleryAccess::usersList($this->name . '[]', $this->id, $userId, 1, NULL, 'name', 0); } }