MINOR: Removed unused method ComplexTableField::PopupClasses().

This commit is contained in:
ajshort 2011-02-26 18:04:20 +11:00
parent 5c972b231d
commit 825242eba1

23
forms/ComplexTableField.php Executable file → Normal file
View 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.
*/ */