mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
New helper class with common functions
for future usage
This commit is contained in:
parent
bdb3ce7c5e
commit
2baad766c3
30
code/GridFieldBulkEditingTools.php
Normal file
30
code/GridFieldBulkEditingTools.php
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user