Example #1
0
 /**
  * Render data as formatted date.
  *
  * \param $data
  *   Data to pack into the cell
  *
  * \return
  *   Rendered cell
  */
 function render_cell($data)
 {
     $dt = $this->fetch_value_from_data($data);
     if (is_null($dt)) {
         $str = null;
     } else {
         assert('$dt instanceof AnewtDateTimeAtom;');
         $str = AnewtDateTime::format($this->_format, $dt);
     }
     return $this->create_td($str);
 }