silverstripe-gridfieldexten.../src/GridFieldExtensions.php

25 lines
547 B
PHP
Raw Normal View History

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