/** * Overriding the icms_ipf_Object::getVar method to assign a custom method on some * specific fields to handle the value before returning it * * @param str $key key of the field * @param str $format format that is requested * @return mixed value of the field that is requested */ public function getVar($key, $format = 's') { if ($format == 's' && in_array($key, array())) { return call_user_func(array($this, $key)); } return parent::getVar($key, $format); }
public function getVar($key, $format = 's') { if ($format == 's' && in_array($key, array('content_pid', 'content_uid', 'content_status', 'content_visibility', 'content_subs', 'content_tags'))) { return call_user_func(array($this, $key)); } return parent::getVar($key, $format); }