/** * Load the data grid with groups. * * @return void */ private function loadGroups() { // create the data grid $this->dgGroups = new BackendDataGridDB(BackendProfilesModel::QRY_DATAGRID_BROWSE_PROFILE_GROUPS, array($this->profile['id'])); // sorting columns $this->dgGroups->setSortingColumns(array('group_name'), 'group_name'); // disable paging $this->dgGroups->setPaging(false); // set column URLs $this->dgGroups->setColumnURL('group_name', BackendModel::createURLForAction('edit_profile_group') . '&id=[id]&profile_id=' . $this->id); // set column function $this->dgGroups->setColumnFunction(array('BackendDataGridFunctions', 'getLongDate'), array('[expires_on]'), 'expires_on', true); // edit column $this->dgGroups->addColumn('edit', null, BL::getLabel('Edit'), BackendModel::createURLForAction('edit_profile_group') . '&id=[id]&profile_id=' . $this->id, BL::getLabel('Edit')); }