clean and comments for category templates and php files
This commit is contained in:
parent
5ee30cf9ed
commit
ff037ff75b
18 changed files with 180 additions and 72 deletions
|
|
@ -76,4 +76,16 @@ class Entry
|
|||
$entry->equipment_id, $entry->equipment_number, $entry->entry_date);
|
||||
}
|
||||
}
|
||||
|
||||
public function AllDatesByEquipment($eqmt_id)
|
||||
{
|
||||
$entry_dates = DB::getInstance()->get(
|
||||
'SELECT DISTINCT entry_date FROM plugin_materiels_entry WHERE equipment_id = ? ORDER BY entry_date DESC;', $eqmt_id);
|
||||
$entry_dates_array = array();
|
||||
foreach ($entry_dates as $row)
|
||||
{
|
||||
array_push($entry_dates_array, $row->entry_date);
|
||||
}
|
||||
return $entry_dates_array;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue