4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
55 parent::__construct($parentGUIObject, $parentStdCmd);
123 $this->refreshButton[
'txt'] =
$txt;
124 $this->refreshButton[
'cmd'] = $cmd;
154 $lng->loadLanguageModule(
"webr");
157 if ($last_access = $this->
getLinkChecker()->getLastCheckTimestamp()) {
158 $title .=
', ' . $lng->txt(
'last_change') .
': ' .
164 if (!count($invalidLinks)) {
165 #$this->setNoEntriesText($lng->txt('no_invalid_links')); 167 foreach ($invalidLinks as
$key => $invalidLink) {
168 $invalidLinks[
$key] = $this->
getRowHandler()->formatInvalidLinkArray($invalidLink);
172 $this->
addColumn($lng->txt(
'title'),
'title',
'20%');
173 $this->
addColumn($lng->txt(
'url'),
'url',
'80%');
180 $this->
setRowTemplate(
'tpl.link_checker_table_row.html',
'Services/LinkChecker');
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setEnableNumInfo($a_val)
Set enable num info.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
getRefreshButton()
get refresh button attributes
class for checking external links in page objects Normally used in Cron jobs, but should be extensibl...
getParentCmd()
Get parent command.
getParentObject()
Get parent object.
setRowHandler(ilLinkCheckerGUIRowHandling $rowHandler)
Set the row handler.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
class ilLinkCheckerTableGUI
setLinkChecker(ilLinkChecker $linkChecker)
Set the link checker instance.
getRowHandler()
Get the row handler.
Class ilObjectGUI Basic methods of all Output classes.
interface ilLinkCheckerGUIRowHandling
getLinkChecker()
Gget the link checker instance.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setRefreshButton($txt, $cmd)
Set refresh button attributes.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
setLimit($a_limit=0, $a_default_limit=0)
__construct(ilObjectGUI $parentGUIObject, $parentStdCmd)
Constructor.
prepareHTML()
Call this before using getHTML()