2015-09-15 20:18:35 +02:00
|
|
|
<?php
|
2022-07-07 20:01:15 +02:00
|
|
|
|
2015-09-15 20:18:35 +02:00
|
|
|
/**
|
|
|
|
* Created by PhpStorm.
|
|
|
|
* User: asantoni
|
|
|
|
* Date: 11/09/15
|
2021-10-11 16:10:47 +02:00
|
|
|
* Time: 2:47 PM.
|
2015-09-15 20:18:35 +02:00
|
|
|
*/
|
2021-10-11 16:10:47 +02:00
|
|
|
class AirtimeTableView
|
|
|
|
{
|
|
|
|
private static function _getTableJavaScriptDependencies()
|
|
|
|
{
|
2022-07-07 20:01:15 +02:00
|
|
|
return [
|
|
|
|
'js/airtime/widgets/table.js',
|
2021-10-11 16:10:47 +02:00
|
|
|
'js/datatables/js/jquery.dataTables.js',
|
|
|
|
'js/datatables/plugin/dataTables.pluginAPI.js',
|
|
|
|
'js/datatables/plugin/dataTables.fnSetFilteringDelay.js',
|
|
|
|
'js/datatables/plugin/dataTables.ColVis.js',
|
2022-09-19 11:58:31 +02:00
|
|
|
'js/datatables/plugin/dataTables.colReorder.min.js',
|
2021-10-11 16:10:47 +02:00
|
|
|
'js/datatables/plugin/dataTables.FixedColumns.js',
|
|
|
|
'js/datatables/plugin/dataTables.FixedHeader.js',
|
2022-09-19 11:58:31 +02:00
|
|
|
'js/datatables/plugin/dataTables.columnFilter.js',
|
2022-07-07 20:01:15 +02:00
|
|
|
];
|
2015-09-15 20:18:35 +02:00
|
|
|
}
|
|
|
|
|
2022-09-19 11:58:31 +02:00
|
|
|
public static function injectTableJavaScriptDependencies(&$headScript)
|
2015-09-15 20:18:35 +02:00
|
|
|
{
|
2022-09-19 11:58:31 +02:00
|
|
|
foreach (self::_getTableJavaScriptDependencies() as $path) {
|
|
|
|
$headScript->appendFile(Assets::url($path), 'text/javascript');
|
2015-09-15 20:18:35 +02:00
|
|
|
}
|
|
|
|
}
|
2021-10-11 16:10:47 +02:00
|
|
|
}
|