GridFieldBulkEditingTools/code/GridFieldBulkEditingTools.php
2012-07-20 21:04:38 +03:00

30 lines
531 B
PHP

<?php
/**
* Generic helper class for the various bulk editing component
* contains common functions
*
* @author colymba
*/
class GridFieldBulkEditingTools {
//put your code here
public static function getModelDataFields ( $gridfield )
{
$modelClass = $gridfield->list->dataClass;
$cmsFields = singleton($modelClass)->getCMSFields();
$fields = $cmsFields->dataFields();
return $fields->dataFields();
}
public static function getModelFilteredDataFields ( $config, $dataFields )
{
//@todo
}
}