mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
PHPDoc fixes.
This commit is contained in:
parent
cbafa7e852
commit
59eed2752c
13
class2.php
13
class2.php
@ -1070,10 +1070,12 @@ if (!class_exists('e107table', false))
|
|||||||
|
|
||||||
if(class_exists($this->adminThemeClass) && ($this->frontend == false))
|
if(class_exists($this->adminThemeClass) && ($this->frontend == false))
|
||||||
{
|
{
|
||||||
$thm = new $this->adminThemeClass();
|
/** @var e_theme_render $thm */
|
||||||
|
$thm = new $this->adminThemeClass();
|
||||||
}
|
}
|
||||||
elseif(class_exists($this->themeClass)) // disabled at the moment.
|
elseif(class_exists($this->themeClass)) // disabled at the moment.
|
||||||
{
|
{
|
||||||
|
/** @var e_theme_render $thm */
|
||||||
$thm = new $this->themeClass();
|
$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']));
|
if (empty($pref['newsposts']) ? define('ITEMVIEW', 15) : define('ITEMVIEW', $pref['newsposts']));
|
||||||
|
|
||||||
|
@ -215,7 +215,7 @@ class e_online
|
|||||||
$row['online_pagecount'] ++;
|
$row['online_pagecount'] ++;
|
||||||
}
|
}
|
||||||
//Update record with current IP, current page and increment 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(
|
$query = array(
|
||||||
// 'online_timestamp' => time(),
|
// 'online_timestamp' => time(),
|
||||||
|
@ -1402,7 +1402,7 @@ class themeHandler
|
|||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
return $frm->search($name, $searchVal, $submitName, $filterName, $filterArray, $filterVal);
|
return $frm->search($name, $searchVal, $submitName, $filterName, $filterArray, $filterVal);
|
||||||
|
/*
|
||||||
$text = '<span class="input-append e-search"><i class="icon-search"></i>
|
$text = '<span class="input-append e-search"><i class="icon-search"></i>
|
||||||
'.$frm->text($name, $searchVal,20,'class=search-query').'
|
'.$frm->text($name, $searchVal,20,'class=search-query').'
|
||||||
<button class="btn btn-primary" name="'.$submitName.'" type="submit">'.LAN_GO.'</button>
|
<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');
|
// $text .= $this->admin_button($submitName,LAN_SEARCH,'search');
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3124,6 +3124,10 @@ class themeHandler
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
interface e_theme_config
|
interface e_theme_config
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -3144,3 +3148,23 @@ interface e_theme_config
|
|||||||
*/
|
*/
|
||||||
// public function help();
|
// 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();
|
||||||
|
}*/
|
||||||
|
@ -80,7 +80,7 @@ else
|
|||||||
$no_core_css = TRUE;
|
$no_core_css = TRUE;
|
||||||
|
|
||||||
|
|
||||||
class bootstrap3_admintheme
|
class bootstrap3_admintheme implements e_theme_render
|
||||||
{
|
{
|
||||||
|
|
||||||
function tablestyle($caption, $text, $mode, $data)
|
function tablestyle($caption, $text, $mode, $data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user