• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Gdn_Pluggable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Gdn_Pluggable的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Pluggable类的具体用法?PHP Gdn_Pluggable怎么用?PHP Gdn_Pluggable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Gdn_Pluggable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->RouteTypes = array('Internal' => 'Internal', 'Temporary' => 'Temporary (302)', 'Permanent' => 'Permanent (301)', 'NotAuthorized' => 'Not Authorized (401)', 'NotFound' => 'Not Found (404)', 'Test' => 'Test');
     $this->ReservedRoutes = array('DefaultController', 'DefaultForumRoot', 'Default404', 'DefaultPermission', 'UpdateMode');
     $this->_loadRoutes();
 }
开发者ID:caidongyun,项目名称:vanilla,代码行数:10,代码来源:class.router.php


示例2: __construct

 public function __construct()
 {
     // Prepare Identity storage container
     $this->Identity();
     $this->_AllowHandshake = FALSE;
     parent::__construct();
 }
开发者ID:tautomers,项目名称:knoopvszombies,代码行数:7,代码来源:class.auth.php


示例3: PHPMailer

 /**
  * Constructor
  */
 function __construct()
 {
     $this->PhpMailer = new PHPMailer();
     $this->PhpMailer->CharSet = Gdn::Config('Garden.Charset', 'utf-8');
     $this->Clear();
     parent::__construct();
 }
开发者ID:robi-bobi,项目名称:Garden,代码行数:10,代码来源:class.email.php


示例4: __construct

 public function __construct($Host, $Options, $Login, $Password)
 {
     LoadExtension('imap', True);
     $MailBox = '{' . $Host . ':' . $Options . '}INBOX';
     $this->Connection = imap_open($MailBox, $Login, $Password, OP_SILENT);
     $this->IMAP2 = new Mail_IMAPv2($this->Connection);
     parent::__construct();
 }
开发者ID:unlight,项目名称:UsefulFunctions,代码行数:8,代码来源:class.imapmailbox.php


示例5: PHPMailer

 /**
  * Constructor
  */
 function __construct() {
    $this->PhpMailer = new PHPMailer();
    $this->PhpMailer->CharSet = Gdn::Config('Garden.Charset', 'utf-8');
    $this->PhpMailer->SingleTo = Gdn::Config('Garden.Email.SingleTo', FALSE);
    $this->PhpMailer->PluginDir = PATH_LIBRARY.DS.'vendors'.DS.'phpmailer'.DS;
    $this->Clear();
    parent::__construct();
 }
开发者ID:nerdgirl,项目名称:Forums-ILoveBadTV,代码行数:11,代码来源:class.email.php


示例6: __construct

 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $AnalyticsServer = c('Garden.Analytics.Remote', 'analytics.vanillaforums.com');
     $AnalyticsServer = str_replace(array('http://', 'https://'), '', $AnalyticsServer);
     $this->AnalyticsServer = $AnalyticsServer;
     $this->TickExtra = array();
 }
开发者ID:R-J,项目名称:vanilla,代码行数:11,代码来源:class.statistics.php


示例7: __construct

 /**
  * Setup the default locale.
  *
  * @param $LocaleName
  * @param $ApplicationWhiteList
  * @param $PluginWhiteList
  * @param bool $ForceRemapping
  */
 public function __construct($LocaleName, $addonManager = null)
 {
     parent::__construct();
     $this->ClassName = __CLASS__;
     if ($addonManager instanceof AddonManager) {
         $this->addonManager = $addonManager;
     }
     $this->set($LocaleName);
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:17,代码来源:class.locale.php


示例8: __construct

 /**
  * Constructor
  *
  * @param string $TableName
  */
 public function __construct($TableName = '')
 {
     if ($TableName != '') {
         $TableModel = new Gdn_Model($TableName);
         $this->setModel($TableModel);
     }
     // Get custom error class
     $this->ErrorClass = C('Garden.Forms.InlineErrorClass', 'Error');
     parent::__construct();
 }
开发者ID:bryanjamesmiller,项目名称:vanilla,代码行数:15,代码来源:class.form.php


示例9: __construct

 /**
  * The constructor for this class. Automatically fills $this->ClassName.
  *
  * @param string $Database
  * @todo $Database needs a description.
  */
 public function __construct($Database = NULL)
 {
     parent::__construct();
     if (is_null($Database)) {
         $this->Database = Gdn::Database();
     } else {
         $this->Database = $Database;
     }
     $this->DatabasePrefix($this->Database->DatabasePrefix);
     $this->Reset();
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:17,代码来源:class.databasestructure.php


示例10: PHPMailer

 /**
  * Constructor
  */
 function __construct()
 {
     $this->PhpMailer = new PHPMailer();
     $this->PhpMailer->CharSet = C('Garden.Charset', 'utf-8');
     $this->PhpMailer->SingleTo = C('Garden.Email.SingleTo', FALSE);
     $this->PhpMailer->PluginDir = CombinePaths(array(PATH_LIBRARY, 'vendors/phpmailer/'));
     $this->PhpMailer->Hostname = C('Garden.Email.Hostname', '');
     $this->PhpMailer->Encoding = 'quoted-printable';
     $this->Clear();
     parent::__construct();
 }
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:14,代码来源:class.email.php


示例11: __construct

 /**
  * The constructor for this class. Automatically fills $this->ClassName.
  *
  * @param string $Database
  * @todo $Database needs a description.
  */
 public function __construct($Database = null)
 {
     parent::__construct();
     if (is_null($Database)) {
         $this->Database = Gdn::database();
     } else {
         $this->Database = $Database;
     }
     $this->databasePrefix($this->Database->DatabasePrefix);
     $this->setAlterTableThreshold(c('Database.AlterTableThreshold', 0));
     $this->reset();
 }
开发者ID:R-J,项目名称:vanilla,代码行数:18,代码来源:class.databasestructure.php


示例12: __construct

 /**
  * Class constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->_EnabledApplicationFolders = array();
     $this->Request = '';
     $this->_ApplicationFolder = '';
     $this->_AssetCollection = array();
     $this->ControllerName = '';
     $this->ControllerMethod = '';
     $this->_ControllerMethodArgs = array();
     $this->_PropertyCollection = array();
     $this->_Data = array();
 }
开发者ID:battaglia01,项目名称:vanilla,代码行数:16,代码来源:class.dispatcher.php


示例13: PHPMailer

 /**
  * Constructor.
  */
 function __construct()
 {
     $this->PhpMailer = new PHPMailer();
     $this->PhpMailer->CharSet = 'utf-8';
     $this->PhpMailer->SingleTo = c('Garden.Email.SingleTo', false);
     $this->PhpMailer->PluginDir = combinePaths(array(PATH_LIBRARY, 'vendors/phpmailer/'));
     $this->PhpMailer->Hostname = c('Garden.Email.Hostname', '');
     $this->PhpMailer->Encoding = 'quoted-printable';
     $this->clear();
     $this->addHeader('Precedence', 'list');
     $this->addHeader('X-Auto-Response-Suppress', 'All');
     parent::__construct();
 }
开发者ID:korelstar,项目名称:vanilla,代码行数:16,代码来源:class.email.php


示例14: c

 /**
  * Constructor.
  */
 function __construct()
 {
     $this->PhpMailer = new \Vanilla\VanillaMailer();
     $this->PhpMailer->CharSet = 'utf-8';
     $this->PhpMailer->SingleTo = c('Garden.Email.SingleTo', false);
     $this->PhpMailer->Hostname = c('Garden.Email.Hostname', '');
     $this->PhpMailer->Encoding = 'quoted-printable';
     $this->clear();
     $this->addHeader('Precedence', 'list');
     $this->addHeader('X-Auto-Response-Suppress', 'All');
     $this->setEmailTemplate(new EmailTemplate());
     $this->resolveFormat();
     parent::__construct();
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:17,代码来源:class.email.php


示例15: __construct

 /**
  * Class constructor
  *
  * @param object $Sender
  */
 public function __construct(&$Sender = '')
 {
     if (is_object($Sender)) {
         $this->_ApplicationFolder = $Sender->Application;
         $this->_ThemeFolder = $Sender->Theme;
     } else {
         $this->_ApplicationFolder = 'garden';
         $this->_ThemeFolder = Gdn::Config('Garden.Theme');
     }
     if (is_object($Sender)) {
         $this->_Sender =& $Sender;
     }
     parent::__construct();
 }
开发者ID:Beyzie,项目名称:Garden,代码行数:19,代码来源:class.module.php


示例16: __construct

 public function __construct($Config)
 {
     if (is_string($Config)) {
         $Config = Gdn::Config($Config);
     }
     $this->AuthenticateUrl = ArrayValue('AuthenticateUrl', $Config);
     $this->_RegisterUrl = ArrayValue('RegisterUrl', $Config);
     $this->_SignInUrl = ArrayValue('SignInUrl', $Config);
     $this->_SignOutUrl = ArrayValue('SignOutUrl', $Config);
     $this->Encoding = ArrayValue('Encoding', $Config, 'ini');
     $this->_Identity = Gdn::Factory('Identity');
     $this->_Identity->Init();
     parent::__construct();
 }
开发者ID:sheldon,项目名称:Garden,代码行数:14,代码来源:class.handshakeauthenticator.php


示例17: __construct

 /**
  * Class constructor
  *
  * @param object $Sender
  */
 public function __construct($Sender = '', $ApplicationFolder = FALSE)
 {
     if (is_object($Sender)) {
         $this->_ApplicationFolder = $Sender->ApplicationFolder;
         $this->_ThemeFolder = $Sender->Theme;
     } else {
         $this->_ApplicationFolder = 'dashboard';
         $this->_ThemeFolder = Gdn::Config('Garden.Theme');
     }
     if ($ApplicationFolder !== FALSE) {
         $this->_ApplicationFolder = $ApplicationFolder;
     }
     if (is_object($Sender)) {
         $this->_Sender = $Sender;
     }
     parent::__construct();
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:22,代码来源:class.module.php


示例18: PHPMailer

 /**
  * Constructor.
  */
 function __construct()
 {
     $this->PhpMailer = new PHPMailer();
     $this->PhpMailer->CharSet = c('Garden.Charset', 'utf-8');
     $this->PhpMailer->SingleTo = c('Garden.Email.SingleTo', false);
     $this->PhpMailer->PluginDir = combinePaths(array(PATH_LIBRARY, 'vendors/phpmailer/'));
     $this->PhpMailer->Hostname = c('Garden.Email.Hostname', '');
     $this->PhpMailer->Encoding = 'quoted-printable';
     $this->clear();
     $this->addHeader('Precedence', 'list');
     $this->addHeader('X-Auto-Response-Suppress', 'All');
     $this->emailTemplate = new EmailTemplate();
     $this->resolveFormat();
     if ($this->format === 'html') {
         $this->setDefaultEmailColors();
         $this->setDefaultEmailImage();
     }
     parent::__construct();
 }
开发者ID:bahill,项目名称:vanilla,代码行数:22,代码来源:class.email.php


示例19: __construct

 public function __construct()
 {
     // Figure out what the authenticator alias is
     $this->_AuthenticationSchemeAlias = $this->GetAuthenticationSchemeAlias();
     // Initialize gdn_pluggable
     parent::__construct();
 }
开发者ID:nickhx,项目名称:Garden,代码行数:7,代码来源:class.authenticator.php


示例20: __construct

 /**
  * Undocumented method.
  *
  * @todo Method __construct() needs a description.
  */
 public function __construct()
 {
     $this->Application = '';
     $this->ApplicationFolder = '';
     $this->Assets = array();
     $this->ControllerFolder = '';
     $this->CssClass = '';
     $this->Head = Gdn::Factory('Dummy');
     $this->MasterView = '';
     $this->ModuleSortContainer = '';
     $this->OriginalRequestMethod = '';
     $this->RedirectUrl = '';
     $this->RequestMethod = '';
     $this->RequestArgs = FALSE;
     $this->Request = FALSE;
     $this->SelfUrl = '';
     $this->SyndicationMethod = SYNDICATION_NONE;
     $this->Theme = Theme();
     $this->ThemeOptions = Gdn::Config('Garden.ThemeOptions', array());
     $this->View = '';
     $this->_CssFiles = array();
     $this->_JsFiles = array();
     $this->_Definitions = array();
     $this->_DeliveryMethod = DELIVERY_METHOD_XHTML;
     $this->_DeliveryType = DELIVERY_TYPE_ALL;
     $this->_FormSaved = '';
     $this->_Json = array();
     $this->_Headers = array('Cache-Control' => '	private, no-cache, no-store, must-revalidate', 'Expires' => 'Sat, 01 Jan 2000 00:00:00 GMT', 'Pragma' => 'no-cache', 'X-Garden-Version' => APPLICATION . ' ' . APPLICATION_VERSION, 'Content-Type' => Gdn::Config('Garden.ContentType', '') . '; charset=' . Gdn::Config('Garden.Charset', ''));
     $this->_ErrorMessages = '';
     $this->_InformMessages = array();
     $this->StatusMessage = '';
     parent::__construct();
     $this->ControllerName = strtolower($this->ClassName);
 }
开发者ID:ru4,项目名称:arabbnota,代码行数:39,代码来源:class.controller.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Gdn_Theme类代码示例发布时间:2022-05-23
下一篇:
PHP Gdn_PasswordHash类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap