BoolFormatter

The Inline Google Spreadsheet Viewer BoolFormatter class.

Defined (1)

The class is defined in the following location(s).

/lib/visformat.php  
  1. class BoolFormatter { 
  2. private $format; 
  3.  
  4. public function __construct($format) 
  5. $this->format = explode(":", $format, 2); 
  6.  
  7. public function format($value) 
  8. return $this->format[$value?1:0]; 
  9. };