本文整理汇总了PHP中JParameter::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JParameter::__construct方法的具体用法?PHP JParameter::__construct怎么用?PHP JParameter::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JParameter
的用法示例。
在下文中一共展示了JParameter::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($data, $element, $path, $type = 'opctracking')
{
$this->_type = $type;
//if (method_exists('JParameter', 'getInstance'))
//return JParameter::getInstance($element, $path);
JParameter::__construct($element, $path);
$this->bind($data);
}
示例2: __construct
/**
* modified
*/
public function __construct($data = '', $path = '')
{
parent::__construct($data);
jimport('joomla.form.form');
JForm::addFormPath($path);
$form =& JForm::getInstance('templateDetails', JPATH_ADMINISTRATOR . '/templates/rt_missioncontrol/templateDetails.xml', array(), true, '//config');
$this->_form = $form;
}
示例3:
/**
* modified
*/
function __construct($data, $path = '')
{
parent::__construct($data);
if ($path) {
$this->loadSetupFile($path);
}
// Set base path
$this->_elementPath[] = JPATH_SITE . DS . 'libraries' . DS . 'joomla' . DS . 'html' . DS . 'parameter' . DS . 'element';
}
示例4:
/**
* This constructor is overloaded to accept XML setup data directly
*
* @access protected
* @param string The raw parms text
* @param string The xml setup data
* @since 1.5
*/
function __construct($data, $xmldata = '')
{
parent::__construct('_default');
if (trim($data)) {
$this->loadINI($data);
}
if (!empty($xmldata)) {
$this->loadSetupData($xmldata);
}
}
示例5:
/**
* Constructor
*
* @access protected
* @param string The raw parms text
* @param string Path to the xml setup file
* @param string Namespace to the xml setup file
* @since 1.5
*/
function __construct($data, $path = '', $namespace)
{
parent::__construct('_default');
// Set base path
$this->_elementPath[] = JPATH_COMPONENT_ADMINISTRATOR . DS . 'elements';
if (trim($data)) {
$this->loadINI($data);
}
if ($path) {
$this->loadSetupFile($path);
}
if ($namespace) {
$this->namespace = $namespace;
}
$this->_raw = $data;
}
示例6: StdClass
function __construct($data = null, $path = '', $keys = null)
{
parent::__construct('', $path);
$this->_data = new StdClass();
if ($data) {
if (!is_object($data)) {
$data = json_decode($data);
}
if ($keys) {
if (!is_array($keys)) {
$keys = explode('.', $keys);
}
$this->_key = $keys;
foreach ($keys as $key) {
$data = isset($data->{$key}) ? $data->{$key} : $data;
}
}
$this->bind($this->_data, $data);
}
}
示例7:
/**
* @param string The raw parms text
* @param string Path to the xml setup file
* @param string The type of setup file
*/
function __construct($text, $path = '', $type = 'component')
{
parent::__construct($text, $path);
}
示例8: basename
/**
* Constructor
*
* @access protected
* @param string The raw parms text
* @param string payment_element payment element name
* @since 1.5
*/
function __construct($data, $element = '', $type = 'component', $pluginfolder)
{
$lang = JFactory::getLanguage();
$lang->load('plg_' . $pluginfolder . '_' . $element, JPATH_ADMINISTRATOR);
if (JVM_VERSION === 2) {
$path = JPATH_ROOT . DS . 'plugins' . DS . $pluginfolder . DS . basename($element) . DS . basename($element) . '.xml';
} else {
$path = JPATH_ROOT . DS . 'plugins' . DS . $pluginfolder . DS . basename($element) . '.xml';
}
parent::__construct($element, $path);
$this->_type = $type;
if (JVM_VERSION === 2) {
} else {
}
// $this->_raw = $data;
$this->bind($data);
}
示例9: __construct
public function __construct($data = '', $path = '')
{
parent::__construct($data, $path);
}
示例10:
/**
* constructor
*/
function __construct($data, $path = '')
{
$this->_identifier = str_replace("\\", "-", str_replace(".xml", "", str_replace(JPATH_SITE, '', $path)));
$this->_identifier = str_replace('/', '-', $this->_identifier);
parent::__construct($data, $path);
}
示例11:
function __construct($text, $file = '', $type = 'component')
{
parent::__construct($text, $file);
}
示例12: basename
/**
* Constructor
*
* @access protected
* @param string The raw parms text
* @param string payment_element payment element name
* @since 1.5
*/
function __construct($data, $element = '', $type = 'component', $pluginfolder)
{
JPlugin::loadLanguage('plg_' . $pluginfolder . '_' . $element);
if (JVM_VERSION === 2) {
$path = JPATH_PLUGINS . DS . $pluginfolder . DS . basename($element) . DS . basename($element) . '.xml';
} else {
$path = JPATH_PLUGINS . DS . $pluginfolder . DS . basename($element) . '.xml';
}
parent::__construct($element, $path);
$this->_type = $type;
if (JVM_VERSION === 2) {
} else {
}
// $this->_raw = $data;
$this->bind($data);
}
示例13:
/**
* Constructor
*
*/
function __construct($data = '')
{
parent::__construct($data);
}
示例14: __construct
/**
* Contstruct the Parent
*/
public function __construct($data, $path = '')
{
parent::__construct($data, $path);
$this->addElementPath(TUIYO_HELPERS . DS . "elements" . DS);
}
示例15: __construct
public function __construct($data = '', $path = '')
{
if (!$data && !$path) {
return false;
}
parent::__construct($data, $path);
}