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


PHP JObject::__construct方法代碼示例

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


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

示例1: JParameter

 function __construct()
 {
     parent::__construct();
     $model =& JModel::getInstance('Configuration', 'JDefenderModel');
     $this->_params = new JParameter($model->getIni());
     require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_jdefender' . DS . 'lib' . DS . 'utils' . DS . 'jd_extension_resolver.php';
 }
開發者ID:alphashuro,項目名稱:audeprac,代碼行數:7,代碼來源:jd_handler.php

示例2: __construct

 /**
  * Class constructor
  *
  * @param   string  $xmlPath  XML content
  */
 public function __construct($xmlPath = '')
 {
     parent::__construct();
     if (!empty($xmlPath)) {
         $this->loadManifestFromXML($xmlPath);
     }
 }
開發者ID:Rikisha,項目名稱:proj,代碼行數:12,代碼來源:manifest.php

示例3:

 /**
  * Constructor activating the default information of the class
  *
  * @access protected
  */
 function __construct()
 {
     parent::__construct();
     $document =& WFDocument::getInstance();
     // Load Extensions Object
     $document->addScript(array('extensions'));
 }
開發者ID:neoandrew1000,項目名稱:crao_journal,代碼行數:12,代碼來源:extensions.php

示例4: __construct

 /**
  * Constructor.
  *
  * @param null $properties
  */
 public function __construct($properties = null)
 {
     $this->runTime = microtime(true);
     $this->setupLog();
     JLog::add('|¯¯¯ Starting');
     parent::__construct($properties);
 }
開發者ID:cuongnd,項目名稱:etravelservice,代碼行數:12,代碼來源:ziper.php

示例5: array

 function __construct($p = array())
 {
     parent::__construct($p);
     if (is_string($this->get('params'))) {
         $this->set('params', oseJson::decode($this->get('params')));
     }
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:7,代碼來源:oseObject.php

示例6: jimport

 function __construct($filename)
 {
     parent::__construct();
     jimport('joomla.filesystem.file');
     jimport('joomla.filesystem.folder');
     $this->_filename = $filename;
 }
開發者ID:alphashuro,項目名稱:audeprac,代碼行數:7,代碼來源:jd_file.php

示例7: __construct

 public function __construct($properties = null)
 {
     if (!is_object($this->state)) {
         $this->state = new JObject();
     }
     $this->options = array();
     parent::__construct($properties);
 }
開發者ID:afend,項目名稱:RULug,代碼行數:8,代碼來源:product.php

示例8: array

 function __construct()
 {
     parent::__construct();
     $this->rules = array();
     $this->operations = array();
     $this->values = array();
     $this->results = array();
 }
開發者ID:alphashuro,項目名稱:audeprac,代碼行數:8,代碼來源:jd_expression_evaluator.php

示例9:

 function __construct($projectid = null)
 {
     parent::__construct();
     $this->_db = JFactory::getDBO();
     if ($projectid) {
         $this->setProjectId($projectid);
     }
 }
開發者ID:julienV,項目名稱:Joomla-Tracks,代碼行數:8,代碼來源:rankingtool.php

示例10: array

 function __construct($taskName = 'All')
 {
     parent::__construct();
     $this->taskName = $taskName;
     $this->listeners = array();
     $model =& JModel::getInstance('Configuration', 'JDefenderModel');
     $this->_jd_options = new JParameter($model->getIni());
 }
開發者ID:alphashuro,項目名稱:audeprac,代碼行數:8,代碼來源:jd_scanner.php

示例11: __construct

 /**
  * Public contructor. Automatically initializes the object with the status and quirks.
  *
  * @access public
  * @return AkeebaHelperStatus
  */
 public function __construct()
 {
     parent::__construct();
     $status = AEUtilQuirks::get_folder_status();
     $this->outputWritable = $this->status['output'];
     $this->tempWritable = $this->status['temporary'];
     $this->status = AEUtilQuirks::get_status();
     $this->quirks = AEUtilQuirks::get_quirks();
 }
開發者ID:WineWorld,項目名稱:joomlatrialcmbg,代碼行數:15,代碼來源:status.php

示例12: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access  protected
  */
 public function __construct($config = array())
 {
     parent::__construct();
     // set document title
     if (isset($config['title'])) {
         $this->setTitle($config['title']);
     }
     $this->setProperties($config);
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:14,代碼來源:document.php

示例13: __construct

 /**
  * Constructor. Initialises variables.
  *
  * @param   mixed  $properties  Either and associative array or another
  *                              object to set the initial properties of the object.
  */
 public function __construct($properties = null)
 {
     // Construct JObject
     parent::__construct($properties);
     // Initialise vars
     if (empty($this->data)) {
         $this->reset();
     }
 }
開發者ID:angelexevior,項目名稱:jedchecker,代碼行數:15,代碼來源:report.php

示例14: __construct

 /**
  * Public contructor. Automatically initializes the object with the status and quirks.
  *
  * @access public
  * @return AkeebaHelperStatus
  */
 public function __construct()
 {
     parent::__construct();
     $status = Factory::getConfigurationChecks()->getFolderStatus();
     $this->outputWritable = $this->status['output'];
     $this->tempWritable = $this->status['temporary'];
     $this->status = Factory::getConfigurationChecks()->getShortStatus();
     $this->quirks = Factory::getConfigurationChecks()->getDetailedStatus();
 }
開發者ID:esorone,項目名稱:efcpw,代碼行數:15,代碼來源:status.php

示例15: jimport

 function __construct($context)
 {
     parent::__construct();
     jimport('joomla.error.log');
     if (JString::substr($context, -4) != '.php') {
         $context .= '.php';
     } else {
         $context = 'mighty_defender_log.php';
     }
     $this->_context = $context;
     $this->_loggingEnabled = defined(JDEBUG) && JDEBUG;
 }
開發者ID:alphashuro,項目名稱:audeprac,代碼行數:12,代碼來源:jd_logger.php


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