/** * * @see IFormater::format **/ public function format($object) { $line = ''; if($object->groupware_usage) { $percent = (($object->groupware_usage/30) > 1)?"100%":round(($object->groupware_usage/30)*100).'%'; $line .= self::escapeField($percent).';'; } else { $line .= 'N/A;'; } $line .= parent::format($object); return $line; }