/** * This function has some serious flaws and will be removed in a future release * Goes trough all fields defined in \a $def and tries to find a post variable * which is named \a $base_name, field name and "checked" with _ between items. * If the post variable is an array the id of the current object is matched against * that array, if one is found the matched field is set to be true otherwise false. * If no post variable was found with that signature the field is ignored. * Example of name: * <code> * In the HTML code use:<br/> * <input type="checkbox" name="ContentClassAttribute_is_searchable_checked[]" value="some_id" /> * </code> * * @deprecated * @param string $base_name * @param array $def * @param object|object[] $objects * @param eZHTTPTool $http * @param bool $is_array */ static function handleChecked( $base_name, array $def, $objects, eZHTTPTool $http, $is_array = true ) { if ( $is_array ) { foreach( $objects as $object ) { eZHTTPPersistence::handleCheckedElement( $base_name, $def, $object, $http ); } } else { eZHTTPPersistence::handleCheckedElement( $base_name, $def, $objects, $http ); } }
static function handleChecked( $base_name, /*! The definition of the objects, uses the same syntax as eZPersistentObject */ $def, $objects, $http, $is_array = true ) { if ( $is_array ) { foreach( $objects as $object ) { eZHTTPPersistence::handleCheckedElement( $base_name, $def, $object, $http ); } } else eZHTTPPersistence::handleCheckedElement( $base_name, $def, $objects, $http ); }