当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminPage::__construct方法代码示例

本文整理汇总了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'];
 }
开发者ID:gudwin,项目名称:extasy,代码行数:25,代码来源:sql_console.php

示例2: Exception

 function __construct(ISblamServices $s)
 {
     parent::__construct($s);
     if (!function_exists('apc_cache_info')) {
         throw new Exception("APC not installed");
     }
 }
开发者ID:bitemyapp,项目名称:Sblam,代码行数:7,代码来源:apc.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:reson-svn,代码行数:7,代码来源:EnterDataPage.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:reson-svn,代码行数:7,代码来源:EnterDataPage.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addGet('id,to', 'move');
     $this->addPost('id,to', 'move');
     $this->AddGet('id', 'showMove');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:move.php

示例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;
 }
开发者ID:BackupTheBerlios,项目名称:reson-svn,代码行数:26,代码来源:ManageProjectPage.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addGet('id', 'showAliases');
     $this->addPost('id,aliasId,delete', 'delete');
     $this->addPost('id,url,submit', 'add');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:aliases.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addGet('filter,term', 'searchForJqueryUI');
     $this->addPost('filter,term', 'searchForJqueryUI');
     $this->addGet('query,start,limit,callback', 'search');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:search.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addPost('node', 'getData');
     $this->addPost('method,path,title', 'call');
     $this->addPost('method,path', 'call');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:index.php

示例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.';
 }
开发者ID:EddieRingle,项目名称:wicketpixie,代码行数:7,代码来源:wicketpixie-admin.php

示例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;
 }
开发者ID:gauthierm,项目名称:pinhole,代码行数:8,代码来源:Loader.php

示例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');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:8,代码来源:edit.php

示例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');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:8,代码来源:config.php

示例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');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:9,代码来源:TemplateManager.php

示例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');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:10,代码来源:regedit.php


注:本文中的AdminPage::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。