4require_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%');
184 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(), $this->getParentCmd()));
185 $this->
setRowTemplate(
'tpl.link_checker_table_row.html',
'Services/LinkChecker');
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
class ilLinkCheckerTableGUI
__construct(ilObjectGUI $parentGUIObject, $parentStdCmd)
Constructor.
getRowHandler()
Get the row handler.
setLinkChecker(ilLinkChecker $linkChecker)
Set the link checker instance.
prepareHTML()
Call this before using getHTML()
getLinkChecker()
Gget the link checker instance.
setRefreshButton($txt, $cmd)
Set refresh button attributes.
getRefreshButton()
get refresh button attributes
setRowHandler(ilLinkCheckerGUIRowHandling $rowHandler)
Set the row handler.
class for checking external links in page objects Normally used in Cron jobs, but should be extensibl...
Class ilObjectGUI Basic methods of all Output classes.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setEnableNumInfo($a_val)
Set enable num info.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
interface ilLinkCheckerGUIRowHandling