mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed @deprecated 2.3 method DataObject::filledOut(): Please use custom code instead for checking values
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77379 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7d0e767db5
commit
e27f41238d
@ -1783,25 +1783,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
return $untabbedFields;
|
return $untabbedFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if the given fields have been filled out.
|
|
||||||
* Pass this method a number of field names, it will return true if they all have values.
|
|
||||||
*
|
|
||||||
* @deprecated 2.3 Use custom code
|
|
||||||
* @param array|string $args,... The field names may be passed either as an array, or as multiple parameters.
|
|
||||||
* @return boolean True if all fields have values, otherwise false
|
|
||||||
*/
|
|
||||||
public function filledOut($args) {
|
|
||||||
// Field names can be passed as arguments or an array
|
|
||||||
if(!is_array($args)) $args = func_get_args();
|
|
||||||
foreach($args as $arg) {
|
|
||||||
if(!$this->$arg) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value of a field.
|
* Gets the value of a field.
|
||||||
* Called by {@link __get()} and any getFieldName() methods you might create.
|
* Called by {@link __get()} and any getFieldName() methods you might create.
|
||||||
|
Loading…
Reference in New Issue
Block a user