You are here

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

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

Returns if the field's value may be displayed on te given page.

Returns TRUE if the display setting for the given page does not exist.

@access public

Parameters

string $p_sPage:

Return value

boolean

1 call to UCXF_Field::may_display()
UCXF_Field::edit_form in class/UCXF_Field.class.php
Get the edit form for the field. @access public

File

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

Class

UCXF_Field
Base class for a Extra Fields Pane field

Code

public function may_display($p_sPage) {
  if (isset($this->display_settings[$p_sPage])) {
    return $this->display_settings[$p_sPage] ? TRUE : FALSE;
  }
  return TRUE;
}