本文整理汇总了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();
}
示例2: __construct
public function __construct()
{
// Prepare Identity storage container
$this->Identity();
$this->_AllowHandshake = FALSE;
parent::__construct();
}
示例3: PHPMailer
/**
* Constructor
*/
function __construct()
{
$this->PhpMailer = new PHPMailer();
$this->PhpMailer->CharSet = Gdn::Config('Garden.Charset', 'utf-8');
$this->Clear();
parent::__construct();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}