예제 #1
0
 public static function field($field)
 {
     $settings = new TB_Settings();
     if (!in_array($field, array_keys($settings->fields))) {
         return 'Not a valid field';
     } else {
         $options = $settings->get();
         return $options[$field];
     }
 }
예제 #2
0
 function __construct()
 {
     $settings = new TB_Settings();
     $this->options = $settings->get();
     $this->airportsWithCharge = array('Melbourne Airport', 'Tullamarine Airport');
 }
예제 #3
0
function tb_get_field($field)
{
    return TB_Settings::field($field);
}