1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

PHPDoc fixes.

This commit is contained in:
Cameron 2019-01-31 14:35:57 -08:00
parent cbafa7e852
commit 59eed2752c
4 changed files with 39 additions and 6 deletions

View File

@ -1070,10 +1070,12 @@ if (!class_exists('e107table', false))
if(class_exists($this->adminThemeClass) && ($this->frontend == false))
{
/** @var e_theme_render $thm */
$thm = new $this->adminThemeClass();
}
elseif(class_exists($this->themeClass)) // disabled at the moment.
{
/** @var e_theme_render $thm */
$thm = new $this->themeClass();
}
@ -1468,7 +1470,14 @@ elseif (!in_array('lan_'.e_PAGE,$exclude_lan) && !$isPluginDir)
}
*/
if ($pref['anon_post'] ? define('ANON', true) : define('ANON', false));
if ($pref['anon_post'])
{
define('ANON', true);
}
else
{
define('ANON', false);
}
if (empty($pref['newsposts']) ? define('ITEMVIEW', 15) : define('ITEMVIEW', $pref['newsposts']));

View File

@ -215,7 +215,7 @@ class e_online
$row['online_pagecount'] ++;
}
//Update record with current IP, current page and increment pagecount
$query = "`online_user_id` = '{$udata}'{$update_page}, `online_pagecount` = ".intval($row['online_pagecount']).", `online_active` =1 WHERE `online_ip` = '{$ip}' AND `online_user_id` = '0'";
// $query = "`online_user_id` = '{$udata}'{$update_page}, `online_pagecount` = ".intval($row['online_pagecount']).", `online_active` =1 WHERE `online_ip` = '{$ip}' AND `online_user_id` = '0'";
$query = array(
// 'online_timestamp' => time(),

View File

@ -1402,7 +1402,7 @@ class themeHandler
$frm = e107::getForm();
return $frm->search($name, $searchVal, $submitName, $filterName, $filterArray, $filterVal);
/*
$text = '<span class="input-append e-search"><i class="icon-search"></i>
'.$frm->text($name, $searchVal,20,'class=search-query').'
<button class="btn btn-primary" name="'.$submitName.'" type="submit">'.LAN_GO.'</button>
@ -1411,7 +1411,7 @@ class themeHandler
// $text .= $this->admin_button($submitName,LAN_SEARCH,'search');
return $text;
*/
}
/**
@ -3124,6 +3124,10 @@ class themeHandler
}
interface e_theme_config
{
/**
@ -3144,3 +3148,23 @@ interface e_theme_config
*/
// public function help();
}
/**
* Interface e_theme_render
* @see e107_themes/bootstrap3/admin_theme.php
*/
interface e_theme_render
{
public function tablestyle($caption, $text, $mode, $data);
}
/**
* Interface e_theme_library
*//*
interface e_theme_library
{
public function config();
}*/

View File

@ -80,7 +80,7 @@ else
$no_core_css = TRUE;
class bootstrap3_admintheme
class bootstrap3_admintheme implements e_theme_render
{
function tablestyle($caption, $text, $mode, $data)