*/ class admin_plugin_watchcycle extends AdminPlugin { /** * @return int sort number in admin menu */ public function getMenuSort() { return 1; } /** * @return bool true if only access for superuser, false is for superusers and moderators */ public function forAdminOnly() { return false; } /** * Should carry out any processing required by the plugin. */ public function handle() { } /** * Render HTML output, e.g. helpful text and a form */ public function html() { global $ID; /* @var Input */ global $INPUT; /** @var \helper_plugin_watchcycle_db $dbHelper */ $dbHelper = plugin_load('helper', 'watchcycle_db'); echo '
' . $icon . ' ' . $lang . ' | '; } $rows = $dbHelper->getAll($headers); foreach ($rows as $row) { echo '||||
---|---|---|---|---|
' . $row['page'] . ' | '; echo '' . $row['maintainer'] . ' | '; echo '' . $row['cycle'] . ' | '; echo '' . $row['current'] . ' | '; $icon = $row['uptodate'] == 1 ? '✓' : '✕'; echo '' . $icon . ' | '; echo '