PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/public_html/afmediosc/plugins/system/jat3/core/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/public_html/afmediosc/plugins/system/jat3/core/object.5.php |
<?php
/*
# ------------------------------------------------------------------------
# JA T3v2 Plugin - Template framework for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - GNU/GPL V2, http://www.gnu.org/licenses/gpl2.html. For details
# on licensing, Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
class ObjectExtendable extends JObject
{
var $_extendableObjects = array();
function _extend($oObject)
{
if (is_object($oObject)) {
$this->_extendableObjects[] = $oObject;
} else if (is_array($oObject)) {
$this->_extendableObjects = array_merge($this->_extendableObjects, $oObject);
}
}
function __get($sName)
{
foreach ($this->_extendableObjects as $oObject) {
if (property_exists($oObject, $sName)) {
$sValue = $oObject->$sName;
return $sValue;
}
}
return null;
}
function __set($sName, $sValue)
{
foreach ($this->_extendableObjects as $oObject) {
if (property_exists($oObject, $sName)) {
return $oObject->$sName = $sValue;
}
}
}
function __call($sName, $aArgs = array())
{
// try call itself method
if (method_exists($this, $sName)) {
$return = call_user_func_array(array($this, $sName), $aArgs);
return $return;
}
// try to call method extended from objects
foreach ($this->_extendableObjects as $oObject) {
//if (method_callable($oObject, $sName)) {
if (method_exists($oObject, $sName)) {
$return = call_user_func_array(array($oObject, $sName), $aArgs);
return $return;
}
}
return NULL;
}
}