Ejemplo n.º 1
0
 function get_range(&$ctx, &$row)
 {
     if (is_array($row)) {
         return start_end_year($row[0]);
     } else {
         return start_end_year($row);
     }
 }
Ejemplo n.º 2
0
 public function get_range($period_start)
 {
     if (is_array($period_start)) {
         $period_start = sprintf("%04d", $period_start['y']);
     }
     return start_end_year($period_start);
 }