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())
159 $title .=
', '.$lng->txt(
'last_change').
': '.
165 if(!count($invalidLinks))
167 #$this->setNoEntriesText($lng->txt('no_invalid_links')); 171 foreach($invalidLinks as $key => $invalidLink)
173 $invalidLinks[$key] = $this->
getRowHandler()->formatInvalidLinkArray($invalidLink);
177 $this->
addColumn($lng->txt(
'title'),
'title',
'20%');
178 $this->
addColumn($lng->txt(
'url'),
'url',
'80%');
185 $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.
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.
static formatDate(ilDateTime $date)
Format a date public.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
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.
setLimit($a_limit=0, $a_default_limit=0)
__construct(ilObjectGUI $parentGUIObject, $parentStdCmd)
Constructor.
prepareHTML()
Call this before using getHTML()