MasterPress 1.3.1 is now available
MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
Represents a single field within a MasterPress field set.
This class implements many of PHP 5’s magic methods to provide a number of benefits:
An implementation of PHP 5’s __call magic method, to allow field objects to call unknown methods directly.
An implementation of PHP 5’s __get magic method, to allow field objects to access unknown properties directly.
An implementation of PHP 5’s __set magic method, to allow unknown field properties to be set directly.
An implementation of PHP 5’s __toString magic method, to allow this field to be echoed directly.
Checks if the field is empty or non-existent.
This method’s behaviour depends on the type of field you’re dealing with.
Check that this field does indeed exist, in the sense that it is a defined field against the set or object it is requested from.
A shorthand synonym for the fallback method.
Returns the name of this field.
Retrieves the MEOW_FieldSet object that contains this field.
A synonym for the blank method to check if the value of this field is empty (not specified).
Retrieve the current set index for this field.
A shorthand synonym for the value method, to retrieve the value of the field.
Returns the value of the field, as determined by the field type.Important: the _toString PHP magic method handles direct echoing of field values out to your templates by simply echoing the a MEOW_Field object directly, but this automatic conversion to a string does NOT happen when using the value of a field as a variable in an expression.
An implementation of PHP 5’s __set magic method, to allow unknown field properties to be set directly.
Sets the value of the field.
Updates the database with with any changes made by any methods that can update the field, which are: val, value, prop, __set.
A shorthand synonym for the value method, to retrieve the value of the field.
Returns a supplied fallback value if this field is blank or does not exist.
Returns a supplied fallback value if this field is blank or does not exist.
Either get or set a named property associated with this field type, or retrieve an associative array of all properties and values if the $name argument is not provided.
Retrieve the raw unprocessed value of the field.
Output the raw data contained in this field, for debugging purposes.
Checks whether or not this field is editable for the current user, based on the current user’s capabilities.
Gets an associative array of raw data contained in this field.
Retrieves the MEOW_FieldSetCollection object that contains this field.
Returns a model object containing information about the definition of this field.
Checks whether or not this field is editable for the current user, based on the current user’s capabilities.
A function used internally to allow this field to be directly iterated over by forwarding the call on to the field type delegate object.
An internal function used to mark this field as dirty (updated in some way).
Retrieves the WordPress object associated with this field, whether this is a post, (taxonomy) term, user, or a site.
An implementation of the offsetExists method in PHP’s ArrayAccess interface.
An implementation of the offsetGet method in PHP’s ArrayAccess interface.
Get the raw value of a field type property. A property in this case is not a standard PHP object property, but rather a meta property that further clarifies the value of this field.
Get the raw value of a field type property. A property in this case is not a standard PHP object property, but rather a meta property that further clarifies the value of this field.
An implementation of PHP 5’s __call magic method, to allow field objects to call unknown methods directly.
An implementation of PHP 5’s __get magic method, to allow field objects to access unknown properties directly.
An implementation of PHP 5’s __set magic method, to allow unknown field properties to be set directly.
An implementation of PHP 5’s __toString magic method, to allow this field to be echoed directly.
Checks if the field is empty or non-existent.
This method’s behaviour depends on the type of field you’re dealing with.
Gets an associative array of raw data contained in this field.
Output the raw data contained in this field, for debugging purposes.
Check that this field does indeed exist, in the sense that it is a defined field against the set or object it is requested from.
Returns a supplied fallback value if this field is blank or does not exist.
A shorthand synonym for the fallback method.
Returns the name of this field.
Retrieves the MEOW_FieldSet object that contains this field.
Retrieves the MEOW_FieldSetCollection object that contains this field.
Returns a model object containing information about the definition of this field.
Checks whether or not this field is editable for the current user, based on the current user’s capabilities.
A synonym for the blank method to check if the value of this field is empty (not specified).
A function used internally to allow this field to be directly iterated over by forwarding the call on to the field type delegate object.
An internal function used to mark this field as dirty (updated in some way).
Retrieves the WordPress object associated with this field, whether this is a post, (taxonomy) term, user, or a site.
An implementation of the offsetExists method in PHP’s ArrayAccess interface.
An implementation of the offsetGet method in PHP’s ArrayAccess interface.
Returns a supplied fallback value if this field is blank or does not exist.
Either get or set a named property associated with this field type, or retrieve an associative array of all properties and values if the $name argument is not provided.
Get the raw value of a field type property. A property in this case is not a standard PHP object property, but rather a meta property that further clarifies the value of this field.
Get the raw value of a field type property. A property in this case is not a standard PHP object property, but rather a meta property that further clarifies the value of this field.
Retrieve the raw unprocessed value of the field.
Retrieve the current set index for this field.
Sets the value of the field.
Updates the database with with any changes made by any methods that can update the field, which are: val, value, prop, __set.
A shorthand synonym for the value method, to retrieve the value of the field.
Returns the value of the field, as determined by the field type.Important: the _toString PHP magic method handles direct echoing of field values out to your templates by simply echoing the a MEOW_Field object directly, but this automatic conversion to a string does NOT happen when using the value of a field as a variable in an expression.
This class delegates to the MPFT class, meaning it also supports the methods available in that class.
View method list from the base class WOOF_Collection.
MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
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 2022 © Three AM All rights reserved.