public function setSubmitted($key = null, $value = null, $filter = true)
    {
        if (!isset($key)) {

            if (isset($value)) {
                return $this->submitted = (array) $value;
            }

            $this->submitted = (array) $this->request->post(null, array(), $filter, 'array');
            return $this->submitted;
        }

        if (!isset($value) && empty($this->submitted)) {
            $this->post_key = (string) $key;
            $this->submitted = (array) $this->request->post($key, array(), $filter, 'array');
            return $this->submitted;
        }

        gplcart_array_set($this->submitted, $key, $value);
        return $this->submitted;
    }
public function setSubmitted($key = null, $value = null, $filter = true)
    {
        if (!isset($key)) {

            if (isset($value)) {
                return $this->submitted = (array) $value;
            }

            $this->submitted = (array) $this->request->post(null, array(), $filter, 'array');
            return $this->submitted;
        }

        if (!isset($value) && empty($this->submitted)) {
            $this->post_key = (string) $key;
            $this->submitted = (array) $this->request->post($key, array(), $filter, 'array');
            return $this->submitted;
        }

        gplcart_array_set($this->submitted, $key, $value);
        return $this->submitted;
    }
public function setSubmitted ( $ key = null , $ value = null , $ filter = true ) { if ( ! isset ( $ key ) ) { if ( isset ( $ value ) ) { return $ this -> submitted = ( array ) $ value ; } $ this -> submitted = ( array ) $ this -> request -> post ( null , array ( ) , $ filter , 'array' ) ; return $ this -> submitted ; } if ( ! isset ( $ value ) && empty ( $ this -> submitted ) ) { $ this -> post_key = ( string ) $ key ; $ this -> submitted = ( array ) $ this -> request -> post ( $ key , array ( ) , $ filter , 'array' ) ; return $ this -> submitted ; } gplcart_array_set ( $ this -> submitted , $ key , $ value ) ; return $ this -> submitted ; }
Sets an array of submitted data
@param string|array|null $key
@param mixed $value
@param boolean|string $filter
@return array
Sets an array of submitted data