private static function UCXF_FieldList::loadAll in Extra Fields Checkout Pane 6.2
Same name and namespace in other branches
- 7 class/UCXF_FieldList.class.php \UCXF_FieldList::loadAll()
Loads all fields @access private @static
Return value
void
Throws
2 calls to UCXF_FieldList::loadAll()
- UCXF_FieldList::getAllCustomFields in class/
UCXF_FieldList.class.php - Get all available custom order fields @access public @static
- UCXF_FieldList::getAllFields in class/
UCXF_FieldList.class.php - Get all available fields @access public @static
File
- class/
UCXF_FieldList.class.php, line 315 - 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
private static function loadAll() {
// Reasons to skip out early
if (self::$allLoaded) {
return;
}
$query = "SELECT * FROM {uc_extra_fields} ORDER BY weight";
$result = db_query($query);
if ($result === FALSE) {
throw new UCXF_DbException(t('Failed to read from database table uc_extra_fields'));
}
// Set flag that all fields are loaded
self::$allLoaded = TRUE;
self::dbResultToField($result);
}