public function applyDefaults(array $defaults)
    {
        foreach($defaults as $dkey => $dvalue)
        {
            if(!$this->exists($dkey))
            {
                $this[$dkey] = $dvalue;
            }
        }
    }
public function applyDefaults(array $defaults)
    {
        foreach($defaults as $dkey => $dvalue)
        {
            if(!$this->exists($dkey))
            {
                $this[$dkey] = $dvalue;
            }
        }
    }
public function applyDefaults ( array $ defaults ) { foreach ( $ defaults as $ dkey => $ dvalue ) { if ( ! $ this -> exists ( $ dkey ) ) { $ this [ $ dkey ] = $ dvalue ; } } }
Applies given fields to this object if field does not exist
@param array $defaults
Applies given fields to this object if field does not exist