You are here

public function UCXF_Field::output in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 class/UCXF_Field.class.php \UCXF_Field::output()

Output a value with filtering

@access public

Parameters

string $p_sMember:

Return value

string

1 call to UCXF_Field::output()
UCXF_Field::generate in class/UCXF_Field.class.php
generate() Generates a field array used in forms generated by uc_extra_fields_pane @access public

File

class/UCXF_Field.class.php, line 204
Contains the UCXF_Field class.

Class

UCXF_Field
Base class for a Extra Fields Pane field

Code

public function output($p_sMember) {
  switch ($p_sMember) {
    case 'description':
      return filter_xss_admin(uc_extra_fields_pane_tt("field:{$this->db_name}:description", $this->{$p_sMember}));
    case 'label':
      return check_plain(uc_extra_fields_pane_tt("field:{$this->db_name}:label", $this->{$p_sMember}));
    case 'pane_type':
      return check_plain($this
        ->__get('pane_type'));
    default:
      if (isset($this->{$p_sMember})) {
        return check_plain($this->{$p_sMember});
      }
  }
  return '';
}