silverstripe-gridfieldexten.../code/GridFieldExtensions.php

23 lines
500 B
PHP
Raw Normal View History

<?php
2016-11-29 18:20:15 +01:00
namespace SilverStripe\Forms\GridField;
use SilverStripe\View\Requirements;
/**
* Utility functions for the grid fields extension module.
*/
class GridFieldExtensions {
public static function include_requirements() {
$moduleDir = self::get_module_dir();
Requirements::css($moduleDir.'/css/GridFieldExtensions.css');
Requirements::javascript($moduleDir.'/javascript/GridFieldExtensions.js');
}
public static function get_module_dir() {
return basename(dirname(__DIR__));
}
}