You are here

public static function UCXF_FieldList::deleteField in Extra Fields Checkout Pane 6.2

Same name and namespace in other branches
  1. 7 class/UCXF_FieldList.class.php \UCXF_FieldList::deleteField()

Deletes an field from the database by giving the field object

@static

Parameters

UCXF_Field $field:

Return value

boolean

Throws

UCXF_DbException

1 call to UCXF_FieldList::deleteField()
UCXF_Field::delete in class/UCXF_Field.class.php
Delete the field from the database. @access public

File

class/UCXF_FieldList.class.php, line 203
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 deleteField(UCXF_Field $field) {
  return self::deleteOne(self::BY_ID, $field->field_id);
}