abstract class UcAddressesUcFieldHandler in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 handlers/ubercart.handlers.inc \UcAddressesUcFieldHandler
Base class for Ubercart core address fields
Hierarchy
- class \UcAddressesFieldHandler
- class \UcAddressesUcFieldHandler
Expanded class hierarchy of UcAddressesUcFieldHandler
1 string reference to 'UcAddressesUcFieldHandler'
File
- handlers/
ubercart.handlers.inc, line 12 - Field handlers for Ubercart core address fields: first_name, last_name, company, etc.
View source
abstract class UcAddressesUcFieldHandler extends UcAddressesFieldHandler {
/**
* Overrides UcAddressesFieldHandler::getFieldTitle().
*
* Returns the title to use when displaying the field.
*/
public function getFieldTitle() {
return uc_get_field_name($this
->getFieldName());
}
/**
* Implements UcAddressesFieldHandler::isFieldEnabled().
*/
public function isFieldEnabled() {
return uc_address_field_enabled($this
->getFieldName());
}
/**
* Implements UcAddressesFieldHandler::isFieldRequired().
*/
public function isFieldRequired() {
if ($this
->getContext() == 'order_form') {
return FALSE;
}
return uc_address_field_required($this
->getFieldName());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UcAddressesFieldHandler:: |
private | property | Address object. | |
UcAddressesFieldHandler:: |
private | property | The context in which this field is used. | |
UcAddressesFieldHandler:: |
private | property | The declared field definition. | |
UcAddressesFieldHandler:: |
private | property | Name of this field. | |
UcAddressesFieldHandler:: |
public | function | Checks if the field passes the context. | 1 |
UcAddressesFieldHandler:: |
final public | function | Returns the address attached to this field. | |
UcAddressesFieldHandler:: |
final public | function | Returns the context in which this field is used. | |
UcAddressesFieldHandler:: |
public | function | Returns a default value for this field. | 3 |
UcAddressesFieldHandler:: |
final public | function | Returns the field name. | |
UcAddressesFieldHandler:: |
abstract public | function | Returns the editable field. | 10 |
UcAddressesFieldHandler:: |
public | function | Returns supported mapping targets for Feeds. | 2 |
UcAddressesFieldHandler:: |
public | function | Returns an array of possible output formats the handler supports. | 2 |
UcAddressesFieldHandler:: |
final public | function | Returns a property from the field definition. | |
UcAddressesFieldHandler:: |
public | function | Returns supported tokens. | 1 |
UcAddressesFieldHandler:: |
protected | function | Can be used by subclasses to do some initialization upon construction of the object. | 2 |
UcAddressesFieldHandler:: |
public | function | Set a fields value based on the output format. | 2 |
UcAddressesFieldHandler:: |
public | function | Output a field's value. | 3 |
UcAddressesFieldHandler:: |
public | function | Sets value in the address object. | |
UcAddressesFieldHandler:: |
public | function | Check a fields' value. | 2 |
UcAddressesFieldHandler:: |
final public | function | UcAddressesFormField object constructor. | |
UcAddressesUcFieldHandler:: |
public | function |
Overrides UcAddressesFieldHandler::getFieldTitle(). Overrides UcAddressesFieldHandler:: |
|
UcAddressesUcFieldHandler:: |
public | function |
Implements UcAddressesFieldHandler::isFieldEnabled(). Overrides UcAddressesFieldHandler:: |
|
UcAddressesUcFieldHandler:: |
public | function |
Implements UcAddressesFieldHandler::isFieldRequired(). Overrides UcAddressesFieldHandler:: |