CMS  Version 3.9
component_versions.inc File Reference

Go to the source code of this file.

Functions

 drawLogFile ($log)
 

Variables

 $component_id = checkNumeric($_GET["component_id"])
 
 $component = new Component($component_id)
 
 $menu_item = "Components"
 
 $title = "Version History"
 
 $logs = ComponentUpdateLog::getLogs($component->name)
 
 $table = new DataListView($logs, "component_logs")
 
$table sortable = true
 
$table filter = true
 
$table pageSize = 20
 
$table emptyMessage = "There are no update records."
 
 $tabs = ComponentManager::componentFormTabs($component_id)
 
 $script = $table->writeScript()
 

Function Documentation

◆ drawLogFile()

drawLogFile (   $log)

Definition at line 72 of file component_versions.inc.

73 {
74  if($log->filename)
75  return $log->format("<a href='/action/component/download_update_log?component_update_log_id={component_update_log_id}'>{filename}</a>");
76  else
77  return "";
78 }

Variable Documentation

◆ $component

$component = new Component($component_id)

Definition at line 42 of file component_versions.inc.

◆ $component_id

$component_id = checkNumeric($_GET["component_id"])

Definition at line 37 of file component_versions.inc.

◆ $logs

$logs = ComponentUpdateLog::getLogs($component->name)

Definition at line 47 of file component_versions.inc.

◆ $menu_item

$menu_item = "Components"

Definition at line 44 of file component_versions.inc.

◆ $script

$script = $table->writeScript()

Definition at line 64 of file component_versions.inc.

◆ $table

$table = new DataListView($logs, "component_logs")

Definition at line 49 of file component_versions.inc.

◆ $tabs

$tabs = ComponentManager::componentFormTabs($component_id)

Definition at line 62 of file component_versions.inc.

◆ $title

$title = "Version History"

Definition at line 45 of file component_versions.inc.

◆ emptyMessage

$table emptyMessage = "There are no update records."

Definition at line 60 of file component_versions.inc.

◆ filter

$table filter = true

Definition at line 58 of file component_versions.inc.

◆ pageSize

$table pageSize = 20

Definition at line 59 of file component_versions.inc.

◆ sortable

$table sortable = true

Definition at line 57 of file component_versions.inc.