function setGroup($id) { $id = trim($id); $uglf = new UserGroupListFactory(); if ($id == 0 or $this->Validator->isResultSetWithRows('group', $uglf->getByID($id), TTi18n::gettext('Selected Group is invalid'))) { $this->data['group_id'] = $id; return TRUE; } return FALSE; }
function setGroup($id) { $id = (int) trim($id); Debug::Text('Group ID: ' . $id, __FILE__, __LINE__, __METHOD__, 10); $uglf = new UserGroupListFactory(); if ($id == 0 or $this->Validator->isResultSetWithRows('group', $uglf->getByID($id), TTi18n::gettext('Group is invalid'))) { $this->data['group_id'] = $id; return TRUE; } return FALSE; }