MasterPress 1.2.8 is now available
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
Represents the collection of field set item records in a MasterPress multiple-item field set.
Note: technically, for convenience, a single item field set is also modelled as a MEOW_FieldSetCollection, and not a MEOW_FieldSet. 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).
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 there is no data at all inside this field set collection.
Returns the count of items in this field set collection.
Returns a MEOW_FieldSet object to allow creation of a new item in this field set collection.
Returns an associative array of virtual field set collections grouped by the value in the given name.
Sorts the field set collection by the value of the specified field property.
Returns a virtual field set collection representing a slice of the field set items in the collection starting at the from index supplied, and ending at the to index supplied. Important: in order to match up with the numbers presented in the user interface, this method is one-based.
An implementation of PHP 5’s __set magic method, to allow unknown properties to be set directly.
A synonym for the MEOW_FieldSetCollection::create method, for creating a new field set in this collection, with the default value of the update parameter set to true.
Removes the field set item at the given index from this collection.
Updates the database with with any changes made by any methods that can update the field set collection or the field sets / field within.
Checks to see if this field set collection actually exists for the WordPress object it is requested on.
A shorthand synonym of the field method, to retrieve the field of the given name in the first field set in the collection – for single item field sets, this is simply the field in the (only) field set, but for multiple items you may want to iterate over all of the field sets in the collection instead.
Retrieve the field of the given name in the first field set in the collection – for single item field sets, this is simply the field in the (only) field set, but for multiple items you may want to iterate over all of the field sets in the collection instead.
Filters the field set collection according to rules that are passed in as the first argument.
Checks to see if this field set collection 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.
A synonym for the MEOW_FieldSetCollection::create method, for creating a new field set in this collection, with the default value of the update parameter set to true.
Returns true if the field by the given name returns true for its “is” method.
Returns a collection of field set items sorted by the values in the given field name.
Returns a field set collection of items sorted by the given field in the order of a supplied values map.
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 the model object representing the definition of this field set in MasterPress.
An internal method to mark this field set as dirty (modified).
Implements the rewind method required by PHP’s Iterator interface.
Implements the valid method required by PHP’s Iterator interface.
Returns the database rows for the stored versions of the content in this field set.
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 there is no data at all inside this field set collection.
Returns the count of items in this field set collection.
Returns a MEOW_FieldSet object to allow creation of a new item in this field set collection.
Checks to see if this field set collection actually exists for the WordPress object it is requested on.
A shorthand synonym of the field method, to retrieve the field of the given name in the first field set in the collection – for single item field sets, this is simply the field in the (only) field set, but for multiple items you may want to iterate over all of the field sets in the collection instead.
Retrieve the field of the given name in the first field set in the collection – for single item field sets, this is simply the field in the (only) field set, but for multiple items you may want to iterate over all of the field sets in the collection instead.
Filters the field set collection according to rules that are passed in as the first argument.
Returns an associative array of virtual field set collections grouped by the value in the given name.
Checks to see if this field set collection 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 model object representing the definition of this field set in MasterPress.
A synonym for the MEOW_FieldSetCollection::create method, for creating a new field set in this collection, with the default value of the update parameter set to true.
Returns true if the field by the given name returns true for its “is” method.
An internal method to mark this field set as dirty (modified).
Sorts the field set collection by the value of the specified field property.
Returns a virtual field set collection representing a slice of the field set items in the collection starting at the from index supplied, and ending at the to index supplied. Important: in order to match up with the numbers presented in the user interface, this method is one-based.
Removes the field set item at the given index from this collection.
Implements the rewind method required by PHP’s Iterator interface.
Returns a collection of field set items sorted by the values in the given field name.
Returns a field set collection of items sorted by the given field in the order of a supplied values map.
Updates the database with with any changes made by any methods that can update the field set collection or the field sets / field within.
Implements the valid method required by PHP’s Iterator interface.
Returns the database rows for the stored versions of the content in this field set.
View method list from the base class WOOF_Collection.
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.
We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).
This plug-in is not compatible with the WordPress.com hosted service.
Copyright 2021 © Three AM All rights reserved.