public function add($key, $val)
    {
      if (is_array($key))
        foreach($key as $k)
          $this->data[$k] = $val;
      else
        if (is_array($val))
          $this->data[$key] = $val;
      else
        $this->data[$key] = (string) $val;
    }
public function add($key, $val)
    {
      if (is_array($key))
        foreach($key as $k)
          $this->data[$k] = $val;
      else
        if (is_array($val))
          $this->data[$key] = $val;
      else
        $this->data[$key] = (string) $val;
    }
public function add ( $ key , $ val ) { if ( is_array ( $ key ) ) foreach ( $ key as $ k ) $ this -> data [ $ k ] = $ val ; else if ( is_array ( $ val ) ) $ this -> data [ $ key ] = $ val ; else $ this -> data [ $ key ] = ( string ) $ val ; }
Set a single key
for the schema

@param key -> key [within schema]
@param val -> val
Set a single key for the schema