/** * @param CMbObject|CPatient|CSejour $object Object to build the vars array * * @return array */ static function getVars(CMbObject $object) { $vars = $object->getIncrementVars(); $default_vars = array("YYYY" => CMbDT::format(null, "%Y"), "YY" => CMbDT::format(null, "%y")); $vars = array_merge($vars, $default_vars); return $vars; }