File: //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/modules/tryout/classes/TryoutAdminMgr.php
<?php
class TryoutAdminMgr extends SGL_Manager
{
function TryoutAdminMgr()
{
SGL::logMessage(null, PEAR_LOG_DEBUG);
parent::SGL_Manager();
$this->pageTitle = 'Tryout Admin';
$this->template = 'tryout.html';
$this->_aActionsMapping = array(
'list' => array('list')
);
}
function validate($req, &$input)
{
SGL::logMessage(null, PEAR_LOG_DEBUG);
$this->validated = true;
$input->error = array();
$input->pageTitle = $this->pageTitle;
$input->masterTemplate = 'masterLeftCol.html';
$input->template = $this->template;
$input->action = ($req->get('action')) ? $req->get('action') : 'list';
}
function _cmd_list($input, &$output)
{
}
function display(&$output)
{
}
function getUserByUserId()
{
$query = sprintf("
SELECT
*
FROM
%s
WHERE
usr_id = '%s'
"
, $this->conf['table']['user']
, $_SESSION['uid']
);
$aUserInfo = $this->dbh->getAll($query);
return $aUserInfo;
}
}
?>