* Functions.php:
(BSFunctions::bool_to_string): New function
+3.2.1
+===================
+- New: BSFunctions::bool_to_string() to convert a boolean value into human-readable Yes/No
+
3.2.0
===================
- New: Decorator.css.php and Decorator.js to be used to create HTML templates with standard formatting
{
return substr($string, $start, $end - $start);
}
+
+ /**
+ * Converts a boolean value into the string 'Yes' or 'No'
+ *
+ * @param boolean
+ * @return string
+ */
+ public static function bool_to_string($bool)
+ {
+ return ($bool ? _('Yes') : _('No'));
+ }
}
?>
\ No newline at end of file