本文整理汇总了PHP中JRegistry::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JRegistry::__construct方法的具体用法?PHP JRegistry::__construct怎么用?PHP JRegistry::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JRegistry
的用法示例。
在下文中一共展示了JRegistry::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
*
* @param object|array $data
*/
public function __construct($data = null)
{
parent::__construct($data);
$framework = Zo2Framework::getInstance();
/* Init default profile root directory */
$this->_profileDir = JPATH_ROOT . '/templates/' . $framework->template->template . '/assets/profiles';
}
示例2: __construct
/**
* __construct description
* @param [object] $data [description]
* @param [string] $xmlPath [description]
*/
public function __construct($data = NULL, $xmlPath = NULL)
{
parent::__construct($data);
if (!is_null($xmlPath)) {
$this->_xml = new SimpleXMLElement($xmlPath, NULL, true);
}
}
示例3: __construct
/**
* Constructor
*
* @param string $data The raw parms text.
* @param string $path Path to the XML setup file.
*
* @return JParameter
*
* @deprecated 12.1
* @since 11.1
*/
public function __construct($data = '', $path = '')
{
// Deprecation warning.
JLog::add('JParameter::__construct is deprecated.', JLog::WARNING, 'deprecated');
parent::__construct('_default');
// Set base path.
$this->_elementPath[] = dirname(__FILE__) . '/parameter/element';
if ($data = trim($data))
{
if (strpos($data, '{') === 0)
{
$this->loadString($data);
}
else
{
$this->loadINI($data);
}
}
if ($path)
{
$this->loadSetupFile($path);
}
$this->_raw = $data;
}
示例4: dirname
/**
* Constructor
*
* @access protected
* @param string The raw parms text
* @param string Path to the xml setup file
* @since 1.5
*/
function __construct($data, $path = '')
{
parent::__construct('_default');
// Set base path
$this->_elementPath[] = dirname(__FILE__) . DS . 'parameter' . DS . 'element';
if (trim($data)) {
$this->loadINI($data);
}
if ($path) {
$this->loadSetupFile($path);
}
$this->_raw = $data;
}
示例5: __construct
/**
* Constructor
*
* @param string The raw parms text.
* @param string Path to the xml setup file.
* @since 1.5
*/
public function __construct($data = '', $path = '')
{
parent::__construct('_default');
// Set base path.
$this->_elementPath[] = dirname(__FILE__) . '/parameter/element';
if ($data = trim($data)) {
if (strpos($data, '{') === 0) {
$this->loadJSON($data);
} else {
$this->loadINI($data);
}
}
if ($path) {
$this->loadSetupFile($path);
}
$this->_raw = $data;
}
示例6: __construct
public function __construct($data = '', $path = '')
{
$this->_defaultNameSpace = 'default';
parent::__construct($data, $path);
}
示例7: __construct
public function __construct($data = '', $path = '')
{
parent::__construct('_default');
// Set base path.
$this->_elementPath[] = dirname(__FILE__) . '/parameter/element';
if (!empty($data) && is_string($data)) {
$this->loadString($data);
}
if ($path) {
$this->loadSetupFile($path);
}
$this->_raw = $data;
}