/** * returns a specific variable for the object in a proper format * * @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 */ public function getVar($key, $format = 's') { $ret = null; if (!isset($this->vars[$key])) { return $ret; } $ret = Dtype::getVar($this, $key, $format); return $ret; }