4 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
5 include_once
'./Services/OpenId/classes/class.ilOpenIdProviders.php';
30 $this->
setTitle($this->lng->txt(
'auth_openid_provider_tbl'));
33 $this->
addColumn($this->lng->txt(
'title'),
'title',
"50%");
34 $this->
addColumn($this->lng->txt(
'url'),
'url',
"40%");
37 $this->
setFormAction($this->ctrl->getFormAction($a_parent_class));
38 $this->
setRowTemplate(
"tpl.openid_provider_row.html",
"Services/OpenId");
43 $this->
addCommandButton(
'addProvider', $this->lng->txt(
'auth_openid_provider_add'));
54 $this->tpl->setVariable(
'VAL_ID',$set[
'provider_id']);
55 $this->tpl->setVariable(
'VAL_TITLE',$set[
'title']);
56 $this->tpl->setVariable(
'VAL_URL',$set[
'url']);
57 $this->tpl->setVariable(
'TXT_EDIT',$this->lng->txt(
'edit'));
58 $this->ctrl->setParameter($this->
getParentObject(),
'provider_id',$set[
'provider_id']);
59 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editProvider'));
72 for($i = 0; $i < count($providers); $i++)
74 $data[$i][
'provider_id'] = $providers[$i]->getId();
75 $data[$i][
'title'] = $providers[$i]->getName();
76 $data[$i][
'url'] = $providers[$i]->getURL();