src/Forms/GridField/GridState_Data.php
public function getData($name, $default = null)
    {
        if (!isset($this->data[$name])) {
            $this->data[$name] = $default;
        } else {
            if (is_array($this->data[$name])) {
                $this->data[$name] = new GridState_Data($this->data[$name]);
            }
        }

        return $this->data[$name];
    }
public function getData($name, $default = null)
    {
        if (!isset($this->data[$name])) {
            $this->data[$name] = $default;
        } else {
            if (is_array($this->data[$name])) {
                $this->data[$name] = new GridState_Data($this->data[$name]);
            }
        }

        return $this->data[$name];
    }
public function getData ( $ name , $ default = null ) { if ( ! isset ( $ this -> data [ $ name ] ) ) { $ this -> data [ $ name ] = $ default ; } else { if ( is_array ( $ this -> data [ $ name ] ) ) { $ this -> data [ $ name ] = new GridState_Data ( $ this -> data [ $ name ] ) ; } } return $ this -> data [ $ name ] ; }
Retrieve the value for the given key

@param string $name The name of the value to retrieve
@param mixed $default Default value to assign if not set
@return mixed The value associated with this key, or the value specified by $default if not set
Retrieve the value for the given key