silverstripe-framework/forms/FieldSet.php
ajshort def001566c API CHANGE: Renamed FieldSet to FieldList.
API CHANGE: Renamed HiddenFieldSet to HiddenFieldList.
2011-05-06 08:51:02 +10:00

17 lines
392 B
PHP

<?php
/**
* @deprecated 3.0 Please use {@link FieldList}.
* @package forms
* @subpackage fields-structural
*/
class FieldSet extends FieldList {
public function __construct($items = array()) {
user_error(
'FieldSet is deprecated, please use FieldList instead.', E_USER_NOTICE
);
parent::__construct(!is_array($items) || func_num_args() > 1 ? func_get_args(): $items);
}
}