class myClass{
var $category = null;
function __construct{
$this->category = "hello";
}
}
$obj = new myClass;
echo $obj->category;
(would result in the output of)
hello
(then ...)
$obj->category = "hello world";
echo $obj->category;
(now results in output of)
hello world
foreach ($this->getProperties() as $k => $v)
$row = & JTable::getInstance('eventlist_events', '');
//bind it to the table
if (!$row->bind($data)) {
JError::raiseError( 500, $this->_db->stderr() );
return false;
}
JError::raiseWarning('SOME_ERROR_MESSAGE', 'editevent data loc_country:'.$data[loc_country]);
JError::raiseWarning('SOME_ERROR_MESSAGE', 'editevent row title:'.$row->title);
JError::raiseWarning('SOME_ERROR_MESSAGE', 'editevent row loc_country:'.$row->loc_country);
$row = & JTable::getInstance('eventlist_events', '');
//Make sure we are returning a DBO object
if (array_key_exists('dbo', $config)) {
$db =& $config['dbo'];
} else {
$db = & JFactory::getDBO();
}
$instance = new $tableClass($db);
//$instance->setDBO($db);
return $instance;
Time to create page: 0.048 seconds