/** * (non-PHPdoc) * @see EPPager::getControlLinks() */ protected function getControlLinks(EPDBObject $item) { $links = parent::getControlLinks($item); $links[] = $item->getLink('view', wfMsgHtml('view')); if (!$this->readOnlyMode && $this->getUser()->isAllowed('ep-course')) { $links[] = $item->getLink('edit', wfMsgHtml('edit'), array(), array('wpreturnto' => $this->getTitle()->getFullText())); $links[] = $this->getDeletionLink(ApiDeleteEducation::getTypeForClassName($this->className), $item->getId(), $item->getIdentifier()); } return $links; }
/** * (non-PHPdoc) * @see EPPager::getControlLinks() */ protected function getControlLinks(EPDBObject $item) { $links = parent::getControlLinks($item); $links[] = $value = Linker::linkKnown(SpecialPage::getTitleFor('Institution', $item->getField('name')), wfMsgHtml('view')); if ($this->getUser()->isAllowed('ep-org')) { $links[] = $value = Linker::linkKnown(SpecialPage::getTitleFor('EditInstitution', $item->getField('name')), wfMsgHtml('edit')); $links[] = $this->getDeletionLink('org', $item->getId()); } return $links; }