當前位置: 首頁>>代碼示例>>PHP>>正文


PHP System::__construct方法代碼示例

本文整理匯總了PHP中System::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP System::__construct方法的具體用法?PHP System::__construct怎麽用?PHP System::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System的用法示例。


在下文中一共展示了System::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Set the data from an array
  * 
  * @param array An optional data array
  */
 public function __construct($arrData = null)
 {
     parent::__construct();
     if (is_array($arrData)) {
         $this->arrData = $arrData;
     }
 }
開發者ID:rburch,項目名稱:core,代碼行數:12,代碼來源:FeedItem.php

示例2: __construct

 /**
  * @construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->HostName = $this->registry->databaseHost;
     $this->DB_Access = $this->registry->databaseAccess;
     $this->DB_Name = $this->registry->databaseDbname;
     $this->DB_User = $this->registry->databaseDbuser;
     $this->DB_Pass = $this->registry->databaseDbpass;
     $this->DB_Port = $this->registry->databaseDbport;
 }
開發者ID:DevSKolb,項目名稱:FLOWLite,代碼行數:13,代碼來源:DBConfiguration.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     // Disable debug mode
     $GLOBALS['TL_CONFIG']['debugMode'] = false;
     // Load required classes
     \ClassLoader::addNamespace('Craffft');
     \ClassLoader::addClass('Craffft\\AccountMail\\Updater', 'system/modules/accountmail/library/Craffft/AccountMail/Updater.php');
     \ClassLoader::register();
     // Load updater
     $this->import('\\Craffft\\AccountMail\\Updater', 'Updater');
 }
開發者ID:craffft,項目名稱:contao-accountmail,代碼行數:12,代碼來源:runonce.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->path_root = HTTP_ROOT;
     /* Carregando Smarty */
     $this->smarty = new Smarty();
     $this->smarty->debugging = false;
     $this->smarty->force_compile = true;
     $this->smarty->caching = true;
     $this->smarty->template_dir = SMARTYDIR;
     $this->smarty->compile_dir = ROOT_APP . "/tmp/";
     $this->smarty->config_dir = SMARTYDIR . "/configs/";
     $this->smarty->cache_dir = ROOT_APP . "/tmp/cache/";
     $this->smarty->assign('HTTP_ROOT', HTTP_ROOT);
     $this->template = new template($this->smarty);
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:16,代碼來源:controller.php

示例5: __construct

 /**
  * Load the relations and optionally process a result set
  * 
  * @param \Database_Result $objResult An optional database result
  */
 public function __construct(\Database_Result $objResult = null)
 {
     parent::__construct();
     $objRelations = new \DcaExtractor(static::$strTable);
     $this->arrRelations = $objRelations->getRelations();
     if ($objResult !== null) {
         $this->arrData = $objResult->row();
         // Look for joined fields
         foreach ($this->arrData as $k => $v) {
             if (strpos($k, '__') !== false) {
                 list($key, $field) = explode('__', $k, 2);
                 // Create the related model
                 if (!isset($this->arrRelated[$key])) {
                     $table = $this->arrRelations[$key]['table'];
                     $strClass = $this->getModelClassFromTable($table);
                     $this->arrRelated[$key] = new $strClass();
                 }
                 $this->arrRelated[$key]->{$field} = $v;
                 unset($this->arrData[$k]);
             }
         }
     }
 }
開發者ID:rikaix,項目名稱:core,代碼行數:28,代碼來源:Model.php

示例6: __construct

 /**
  * Store the feed name (without file extension)
  * 
  * @param string $strName The feed name
  */
 public function __construct($strName)
 {
     parent::__construct();
     $this->strName = $strName;
 }
開發者ID:rburch,項目名稱:core,代碼行數:10,代碼來源:Feed.php

示例7:

 function __construct($forTable = "")
 {
     parent::__construct();
     $this->forTable = $forTable;
     $this->import('Database');
 }
開發者ID:AgentCT,項目名稱:tags,代碼行數:6,代碼來源:TagList.php

示例8: __construct

 /**
  * Instantiate the object and load the mailer framework
  */
 public function __construct()
 {
     parent::__construct();
     $this->strCharset = $GLOBALS['TL_CONFIG']['characterSet'];
     // Instantiate mailer
     if (!is_object(self::$objMailer)) {
         if (!$GLOBALS['TL_CONFIG']['useSMTP']) {
             // Mail
             $objTransport = \Swift_MailTransport::newInstance();
         } else {
             // SMTP
             $objTransport = \Swift_SmtpTransport::newInstance($GLOBALS['TL_CONFIG']['smtpHost'], $GLOBALS['TL_CONFIG']['smtpPort']);
             // Encryption
             if ($GLOBALS['TL_CONFIG']['smtpEnc'] == 'ssl' || $GLOBALS['TL_CONFIG']['smtpEnc'] == 'tls') {
                 $objTransport->setEncryption($GLOBALS['TL_CONFIG']['smtpEnc']);
             }
             // Authentication
             if ($GLOBALS['TL_CONFIG']['smtpUser'] != '') {
                 $objTransport->setUsername($GLOBALS['TL_CONFIG']['smtpUser'])->setPassword($GLOBALS['TL_CONFIG']['smtpPass']);
             }
         }
         self::$objMailer = \Swift_Mailer::newInstance($objTransport);
     }
     // Instantiate Swift_Message
     $this->objMessage = \Swift_Message::newInstance();
     $this->objMessage->getHeaders()->addTextHeader('X-Mailer', 'Contao Open Source CMS');
 }
開發者ID:rikaix,項目名稱:core,代碼行數:30,代碼來源:Email.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:bit3,項目名稱:contao-logger,代碼行數:4,代碼來源:Contao2xBridge.php

示例10: __construct

 public function __construct($tabelas = null)
 {
     parent::__construct();
     $this->_tabelas = $tabelas == null ? ModelTable::getListTabelas() : $tabelas;
 }
開發者ID:jeancopp,項目名稱:framework-mvc-php,代碼行數:5,代碼來源:ModelTable.php

示例11: __construct

 public function __construct($channelId)
 {
     parent::__construct();
     $this->channelId = $channelId;
     $this->import('Database');
 }
開發者ID:heimrichhannot,項目名稱:contao-newsletter_plus,代碼行數:6,代碼來源:CleverRearchSoapHelper.php

示例12: __construct

 public function __construct($numberOfBytes, $formatWithPrecision = self::DEFAULT_FORMAT_PRECISION)
 {
     parent::__construct($numberOfBytes, new Formatter(self::scale(), $formatWithPrecision));
 }
開發者ID:gabrielelana,項目名稱:byte-units,代碼行數:4,代碼來源:Binary.php

示例13: __construct

 public function __construct()
 {
     \System::__construct();
     $this->import("Database");
 }
開發者ID:blioxxx,項目名稱:contao-universal-library,代碼行數:5,代碼來源:images.php

示例14: __construct

 /**
  * Constructor
  *
  * Instance of SecurityManager
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // get instance of request
     $this->request = $this->objectManager->getObject('Request');
 }
開發者ID:DevSKolb,項目名稱:FLOWLite,代碼行數:12,代碼來源:SecurityManager.php

示例15: __construct

 /**
  * Constructor
  *
  * Instance of SecurityManager
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // xml file with filters
     $this->source = $_SERVER["DOCUMENT_ROOT"] . '/' . $this->registry->securityFile;
 }
開發者ID:DevSKolb,項目名稱:FLOWLite,代碼行數:12,代碼來源:SecurityStorage.php


注:本文中的System::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。