Cheetah
inc
classes
ChWsbEditorQuery.php
Go to the documentation of this file.
1
<?
php
2
8
ch_import
(
'ChWsbDb'
);
9
14
class
ChWsbEditorQuery
extends
ChWsbDb
15
{
16
protected
$_aObject
;
17
18
public
function
__construct
($aObject)
19
{
20
parent::__construct();
21
$this->_aObject = $aObject;
22
}
23
24
static
public
function
getEditorObject
($sObject)
25
{
26
$oDb
=
$GLOBALS
[
'MySQL'
];
27
$sQuery =
"SELECT * FROM `sys_objects_editor` WHERE `object` = ?"
;
28
$aObject =
$oDb
->getRow($sQuery, [$sObject]);
29
if
(!$aObject || !is_array($aObject))
30
return
false
;
31
32
return
$aObject;
33
}
34
35
}
ChWsbEditorQuery\$_aObject
$_aObject
Definition:
ChWsbEditorQuery.php:16
ChWsbEditorQuery
Definition:
ChWsbEditorQuery.php:15
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
php
ChWsbEditorQuery\__construct
__construct($aObject)
Definition:
ChWsbEditorQuery.php:18
$oDb
global $oDb
Definition:
db.inc.php:39
ChWsbEditorQuery\getEditorObject
static getEditorObject($sObject)
Definition:
ChWsbEditorQuery.php:24
ChWsbDb
Definition:
ChWsbDb.php:13
$GLOBALS
$GLOBALS['iAdminPage']
Definition:
advanced_settings.php:10
Generated by
1.8.20