Esempio n. 1
0
 /**
  * Format the search row by translating id's to names and formatting the date to human readable
  * 
  * @param array $row
  * @return array
  */
 public static function alterSearchRow($row)
 {
     $row['department_id'] = \systemsinventory\Factory\SystemDevice::getDepartmentByID($row['department_id']);
     $row['location_id'] = \systemsinventory\Factory\SystemDevice::getLocationByID($row['location_id']);
     $row['purchase_date'] = date('n/d/Y', $row['purchase_date']);
     return $row;
 }