本文整理汇总了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';
}
示例2: __construct
/**
* Class constructor
*
* @param string $xmlPath XML content
*/
public function __construct($xmlPath = '')
{
parent::__construct();
if (!empty($xmlPath)) {
$this->loadManifestFromXML($xmlPath);
}
}
示例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'));
}
示例4: __construct
/**
* Constructor.
*
* @param null $properties
*/
public function __construct($properties = null)
{
$this->runTime = microtime(true);
$this->setupLog();
JLog::add('|¯¯¯ Starting');
parent::__construct($properties);
}
示例5: array
function __construct($p = array())
{
parent::__construct($p);
if (is_string($this->get('params'))) {
$this->set('params', oseJson::decode($this->get('params')));
}
}
示例6: jimport
function __construct($filename)
{
parent::__construct();
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
$this->_filename = $filename;
}
示例7: __construct
public function __construct($properties = null)
{
if (!is_object($this->state)) {
$this->state = new JObject();
}
$this->options = array();
parent::__construct($properties);
}
示例8: array
function __construct()
{
parent::__construct();
$this->rules = array();
$this->operations = array();
$this->values = array();
$this->results = array();
}
示例9:
function __construct($projectid = null)
{
parent::__construct();
$this->_db = JFactory::getDBO();
if ($projectid) {
$this->setProjectId($projectid);
}
}
示例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());
}
示例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();
}
示例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);
}
示例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();
}
}
示例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();
}
示例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;
}