mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Removed unused method ComplexTableField::PopupClasses().
This commit is contained in:
parent
5c972b231d
commit
825242eba1
23
forms/ComplexTableField.php
Executable file → Normal file
23
forms/ComplexTableField.php
Executable file → Normal file
@ -937,29 +937,6 @@ class ComplexTableField_ItemRequest extends TableListField_ItemRequest {
|
|||||||
* #################################
|
* #################################
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Get part of class ancestry (even if popup is not subclassed it might be styled differently in css)
|
|
||||||
*/
|
|
||||||
function PopupClasses() {
|
|
||||||
global $_ALL_CLASSES;
|
|
||||||
|
|
||||||
$items = array();
|
|
||||||
$parents = isset($_ALL_CLASSES['parents'][$this->class]) ? $_ALL_CLASSES['parents'][$this->class] : null;
|
|
||||||
|
|
||||||
if($parents) {
|
|
||||||
foreach($parents as $parent) {
|
|
||||||
if(!in_array($parent, $_ALL_CLASSES['parents']['TableListField'])) {
|
|
||||||
$items[] = $parent . '_Popup';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$items[] = $this->class . '_Popup';
|
|
||||||
|
|
||||||
return implode(' ', $items);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the db-fieldname of the currently used has_one-relationship.
|
* Returns the db-fieldname of the currently used has_one-relationship.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user