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


PHP Gdn_Pluggable类代码示例

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


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


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