public static function UCXF_FieldList::reset in Extra Fields Checkout Pane 7
Same name and namespace in other branches
- 6.2 class/UCXF_FieldList.class.php \UCXF_FieldList::reset()
Resets the field list.
This will remove all fields currently tracked by the field list. All the properties will be set back to the default values.
Calling this method is bad for performance as it will force to reload fields from the database, so use it with caution.
This method is generally only of use within automated tests.
@access public @static
Return value
void
2 calls to UCXF_FieldList::reset()
- UCXFApiTestCase::testUCXF_FieldList in ./
uc_extra_fields_pane.test - Test if UCXF_FieldList behaves as excepted.
- UCXFTestCase::setUp in ./
uc_extra_fields_pane.test - Install users and modules needed for all tests.
File
- class/
UCXF_FieldList.class.php, line 79 - Contains the UCXF_FieldList class.
Class
- UCXF_FieldList
- This class is used to keep track of all loaded fields in one request. It's also used as a central place to request fields.
Code
public static function reset() {
self::$fields = array();
self::$loadedPanes = array();
self::$allLoaded = FALSE;
}