function getVar($key, $format = 's') { if ($format == 's' && in_array($key, array())) { return call_user_func(array($this, $key)); } return parent::getVar($key, $format); }
/** * returns a specific variable for the object in a proper format * * @access public * @param string $key key of the object's variable to be returned * @param string $format format to use for the output * @return mixed formatted value of the variable */ function getVar($key, $format = 's') { if ($format == 's' && in_array($key, array('from_uid', 'to_uid', 'date', 'link'))) { return call_user_func(array($this, $key)); } return parent::getVar($key, $format); }
function getVar($key, $format = 's') { if ($key == "options") { $key = "nb_options"; } return parent::getVar($key, $format); }
function getVar($key, $format = 's') { if ($format == 's' && in_array($key, array('rate', 'default_currency'))) { return call_user_func(array($this, $key)); } return parent::getVar($key, $format); }
function getVar($key, $format = 'e') { if (substr($key, 0, 4) == 'url_') { return parent::getVar('url', $format); } elseif (substr($key, 0, 8) == 'caption_') { return parent::getVar('caption', $format); } else { return parent::getVar($key, $format); } }