本文整理汇总了PHP中AdminPage::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminPage::__construct方法的具体用法?PHP AdminPage::__construct怎么用?PHP AdminPage::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminPage
的用法示例。
在下文中一共展示了AdminPage::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->addPost('sql', 'post');
$this->addGet('dump', 'getDump');
$this->addPost('import', 'import');
if (empty($_SESSION['cms_sql_session'])) {
$_SESSION['cms_sql_session'] = array();
}
$this->aSession =& $_SESSION['cms_sql_session'];
// Не более десяти запросов
if (sizeof($this->aSession) > 30) {
array_shift($this->aSession);
}
// Сохраняем результат
if (empty($_SESSION['cms_sql_result'])) {
$_SESSION['cms_sql_result'] = array();
}
$this->aResult =& $_SESSION['cms_sql_result'];
// Сохраняем ошибку
if (empty($_SESSION['cms_sql_error'])) {
$_SESSION['cms_sql_error'] = array();
}
$this->szError =& $_SESSION['cms_sql_error'];
}
示例2: Exception
function __construct(ISblamServices $s)
{
parent::__construct($s);
if (!function_exists('apc_cache_info')) {
throw new Exception("APC not installed");
}
}
示例3: array
function __construct()
{
parent::__construct();
$this->setTitle(sprintf(Messages::getString('EnterDataPage.Title'), $this->project->getName()));
$this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu;
$this->db = Database::getInstance();
}
示例4: array
function __construct()
{
parent::__construct();
$this->setTitle(sprintf("Enter results for %s:", $this->project->getName()));
$this->menu = array("Admin Menu" => "admin.php") + $this->menu;
$this->db = Database::getInstance();
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->addGet('id,to', 'move');
$this->addPost('id,to', 'move');
$this->AddGet('id', 'showMove');
}
示例6: header
function __construct()
{
parent::__construct();
if (isset($_POST['name'])) {
$this->error = $this->processForm();
if (!$this->error) {
header("Location: " . $this->SUCCESS_REDIRECT_PAGE);
//Redirect to admin menu, if succeeded
}
} else {
if (isset($_POST['reset_data'])) {
$this->error = $this->processResetForm();
if (!$this->error) {
header("Location: " . $this->SUCCESS_REDIRECT_PAGE);
//Redirect to admin menu, if succeeded
} else {
if ($this->error == "project_deleted") {
header("Location: " . $this->LOGOUT_REDIRECT_PAGE);
//Redirect to admin menu, if succeeded
}
}
}
}
$this->setTitle(sprintf(Messages::getString('ManageProjectPage.Title'), $this->project->getName()));
$this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu;
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->addGet('id', 'showAliases');
$this->addPost('id,aliasId,delete', 'delete');
$this->addPost('id,url,submit', 'add');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->addGet('filter,term', 'searchForJqueryUI');
$this->addPost('filter,term', 'searchForJqueryUI');
$this->addGet('query,start,limit,callback', 'search');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->addPost('node', 'getData');
$this->addPost('method,path,title', 'call');
$this->addPost('method,path', 'call');
}
示例10: array
function __construct()
{
parent::__construct('', 'wicketpixie-admin.php', null, array($GLOBALS['site_settings'], $GLOBALS['socnet_settings'], $GLOBALS['misc_settings']));
$this->page_title = 'WicketPixie Admin';
$this->page_name = 'WicketPixie';
$this->page_description = 'WicketPixie requires some configuration before it works properly.';
}
示例11: __construct
public function __construct(SiteApplication $app, SiteLayout $layout = null, array $arguments = array())
{
parent::__construct($app, $layout, $arguments);
$id = $this->app->initVar('id');
$dimension = $this->app->initVar('dimension', 'small');
$this->photo = $this->getPhoto($id);
$this->dimension_shortname = $dimension;
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->addGet('id', 'showEditForm');
$this->addPost('sitemapId,submit', 'post');
$this->addPost('sitemapId,fieldName,action', 'ajaxEditColumn');
$this->addPost('sitemapId,fieldnName,action,data', 'ajaxEditColumn');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->addPost('ssl,server,port,name,password,from_email,from_name', 'post');
$this->title = 'Редактирование данных для аутентификации';
$this->begin = array('Почта' => './index.php', $this->title => '#');
$this->register = new SystemRegister('System/email');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->addPost('tplFile,content,comment', 'post');
$this->addPost('tplFile,content,comment', 'post');
$this->addPost('tpl', 'create');
$this->addPost('type,path', 'create');
$this->addGet('tplFile', 'show');
}
示例15: __construct
public function __construct()
{
parent::__construct();
$this->addGet('json', 'getData');
$this->addPost('json', 'getData');
$this->addPost('node', 'getData');
$this->addPost('name,type,comment,value,parent,create', 'create');
$this->addPost('id,name,comment,value,update', 'update');
$this->addPost('delete', 'delete');
}