Returns field from theme data if cookie is set to valid theme.

@param string $field_name
@param mixed  $default

@deprecated :2.0

@return mixed
766787
public static function get_theme_field( $field_name, $default = false ) {

		if ( ! empty( self::$theme ) ) {
			return self::$theme->get( $field_name );
		}

		return $default;
	}
178582
public function get($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        return $this->data[$name];
    }
714867
public static function getString($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToString($_GET[$name]);
        return $default;
    }
233908
public function get($field_key)
	{
		if ( isset($this->fields[$field_key]) ) {
			return $this->fields[$field_key];
		}

		return null;
	}
488864
public function getAttribute($name, $default = null)
    {
        $value = $default;
        if ($this->hasAttribute($name)) {
            $value = $this->attributes->get($name);
        }
        return $value;
    }
362576
public function get($name, $default = null)
    {
        $name = $this->prefix . $name;
        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : $default;
    }
722967
public function getCleanedFieldAsBool(string $field_name): bool
    {
        // Special case, if we have key set but no value - we keep it as true, e.g. &status=active&order_desc = order_desc must be true
        if (isset($this->initial_data[$field_name]) && '' === $this->initial_data[$field_name]) {
            return $this->initial_data[$field_name] = true;
        }

        return parent::getCleanedFieldAsBool($field_name);
    }
754924
public function getConverterForField($field_name)
    {
        if (!isset($this->converters[$field_name])) {
            throw new \RuntimeException(
                sprintf(
                    "Error, '%s' field has no converters registered. Fields are {%s}.",
                    $field_name,
                    join(', ', array_keys($this->converters))
                )
            );
        }

        return $this->converters[$field_name];
    }
995033
public function getField($field_name)
    {
        $field = null;
        
        if (isset($this->m_fields[$field_name]))
        {
            $field = $this->m_fields[$field_name];
        }
        else
        {
            $err_msg = '[' . $field_name . '] does not exist in table ' .
                       '[' . $this->m_name . ']';
            
            throw new \Exception($err_msg);
        }
        
        return $field;
    }
500404
public static function updateField($field_name)
    {
        $irregular = [
            'get_started' => 'get_started_button_payload',
            'greeting'    => 'greeting_text'
        ];
        
        if ( ! isset($irregular[$field_name])) {
            $field_value = Instance::get($field_name);
        } else {
            $field_value = Instance::get($irregular[$field_name]);
        }
    
        $resource = self::getResourceUrl();
    
        if ( ! empty($field_value) && ! is_null($field_value)) {
            
            $data = [
                $field_name => $field_value
            ];
    
            if ($field_name === 'get_started') {
                $data = [
                    'get_started' => [
                        'payload' => $field_value,
                    ],
                ];
            }
    
            return Request::send($resource, $data);
        }
    
        return self::deleteFields($field_name);
    }
1256634
public function getValue($name, $default = null)
    {
        return isset($this->data[$name]) ? $this->data[$name] : $default;
    }
715009
function (name) {
    if ($.cookie(this.cookieName)) {
      var cookieVals = $.cookie(this.cookieName).split("|");
      for (var i = 0; i < cookieVals.length; i++) {
        var fieldVals = cookieVals[i].split("~");
        if (fieldVals[0] == name) {
          return fieldVals[1];
        }
      }
    }
    return false;
  }
187709
public function get($name, $default = null)
  {
    $name = $this->get_field_name($name);
    $dotPos = strpos($name, '.');
    if (!$dotPos && $default === null)
    {
      return $this->__get($name);
    }
    $this->load_if_needed($dotPos ? substr($name, 0, $dotPos) : $name);
    $ref = $this->get_field_reference($name, FALSE, $default);
    return $ref;
  }
270064
public function cookie($name, $default = null)
    {
        return array_key_exists($name, $this->cookies) ? $this->cookies[$name] : $default;
    }
660384
public function isFieldValid(string $field_name) : bool
    {
        if (false === $this->validated) {
            $this->validate();
        }
        return (false === $this->getErrorByFieldName($field_name));
    }
120724
public static function GetClassVar ($name, $default_value = null) {
		if (is_array($name)) {
			return Arrays::GetLowest(static::$_ClassVariableTrait_Data, $name) ?: $default_value;
		}
		return isset(static::$_ClassVariableTrait_Data[$name]) ? static::$_ClassVariableTrait_Data[$name] : $default_value;
	}
491897
public static function GetClassVar ($name, $default_value = null) {
		return (static::HasClassVar($name)) ? Arrays::GetLowest(static::$_ApplicationVariableTrait_Data, $name) : $default_value;
	}