MEOW_FieldSet
Represents a single field set item within a multiple-item field set.
Note: technically, for convenience, a single item field set is not modelled as a MEOW_FieldSet, but rather a MEOW_FieldSetCollection. While this is slightly counterintuitive, it behaves the same way for all intents and purposes, as all access to fields underneath will always be on the first item in the collection (see example).
Example: Obtaining a MEOW_FieldSet
Magic Methods
-
An implementation of PHP 5’s __call magic method, which in this case simply silences the call by returning a WOOF_Silent instance.Note: this method is not intended to be called directly.
-
An implementation of PHP 5’s __get magic method, which in this case simply tries to access a field with the name provided via the field method.
-
An implementation of PHP 5’s __set magic method, to allow unknown properties to be set directly.
-
An implementation of the offsetExists method in PHP’s ArrayAccess interface.
Properties
-
Returns a collection of all of the fields in this set.
-
info()MPM_FieldSet
Returns a model object containing information about the definition of this field set.
-
Returns true if the field by the given name returns true for its “is” method.
-
Remove this field from the field set collection that surrounds it.
Manipulation
-
An implementation of PHP 5’s __set magic method, to allow unknown properties to be set directly.
-
Updates the database with with any changes made by any methods that can update the field set.
Theming
-
Returns true if all fields in the field set are currently blank, as determined by calling the MEOW_Field::blank method.
-
Checks if this field is actually defined against the WordPress object it was retrieved for.
-
Retrieves the field with the given name from this field set.
-
Checks to see if this field set has a field by the given name, but also if that field has a value available, returning the field itself if it is available, or boolean false otherwise.
-
Returns the index of this field set in the surrounding field set collection.
Internal Use
-
An implementation of PHP 5’s __call magic method, which in this case simply silences the call by returning a WOOF_Silent instance.Note: this method is not intended to be called directly.
-
An implementation of PHP 5’s __set magic method, to allow unknown properties to be set directly.
-
Returns 0 if the field set is blank, but 1 otherwise. .
-
Retrieves the field set collection object that encloses this field.
-
Checks whether or not this field set is editable for the current user, based on the current user’s capabilities.
-
An internal method to mark this field as dirty (modified).
-
An implementation of the offsetExists method in PHP’s ArrayAccess interface.
-
An implementation of the offsetGet method of PHP’s ArrayAccess interface.
-
An implementation of PHP 5’s __call magic method, which in this case simply silences the call by returning a WOOF_Silent instance.Note: this method is not intended to be called directly.
-
An implementation of PHP 5’s __get magic method, which in this case simply tries to access a field with the name provided via the field method.
-
An implementation of PHP 5’s __set magic method, to allow unknown properties to be set directly.
-
Returns true if all fields in the field set are currently blank, as determined by calling the MEOW_Field::blank method.
-
Returns 0 if the field set is blank, but 1 otherwise. .
-
Checks if this field is actually defined against the WordPress object it was retrieved for.
-
A synonym for the field method, to retrieve the field with the given name from this field set.
-
Retrieves the field with the given name from this field set.
-
Retrieves the field set collection object that encloses this field.
-
Returns a collection of all of the fields in this set.
-
Checks to see if this field set has a field by the given name, but also if that field has a value available, returning the field itself if it is available, or boolean false otherwise.
-
Returns the index of this field set in the surrounding field set collection.
-
info()MPM_FieldSet
Returns a model object containing information about the definition of this field set.
-
Returns true if the field by the given name returns true for its “is” method.
-
Checks whether or not this field set is editable for the current user, based on the current user’s capabilities.
-
An internal method to mark this field as dirty (modified).
-
An implementation of the offsetExists method in PHP’s ArrayAccess interface.
-
An implementation of the offsetGet method of PHP’s ArrayAccess interface.
-
Remove this field from the field set collection that surrounds it.
-
Updates the database with with any changes made by any methods that can update the field set.