| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/backend-accounting.sk/app/modules/logbook/code/ |
Upload File : |
<?php
namespace modules\logbook\code;
/**
* Description of VehiclesColumnController
*
* @author maros
*/
class VehiclesColumnController extends \modules\extendedDatatable\code\ColumnController {
protected function initFilterOptions() {
$company = LogbookUser::getLoggedUser()->getCurrentCompany();
$this->filterOptions = ['' => ''];
if ($company) {
$vehicles = [];
foreach ($company->getVehicles(enums\VehicleEnums::OWNERSHIP_COMPANY)->toArray() as $item) {
$vehicles[$item['name'] . ' - ' . $item['license_plate']] = $item['name'] . ' - ' . $item['license_plate'];
}
$this->filterOptions += $vehicles;
}
}
}