original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Sets an array of submitted data
  @param string|array|null $key
  @param mixed $value
  @param boolean|string $filter
  @return array
docstring_tokens: Sets an array of submitted data