public function setData($data)
    {
        foreach ($this->getComponents() as $component) {
            $component->setData($this->order, $this->dependantData($component, $data));
        }
    }
public function setData($data)
    {
        foreach ($this->getComponents() as $component) {
            $component->setData($this->order, $this->dependantData($component, $data));
        }
    }
public function setData ( $ data ) { foreach ( $ this -> getComponents ( ) as $ component ) { $ component -> setData ( $ this -> order , $ this -> dependantData ( $ component , $ data ) ) ; } }
Set data on all components

@param array $data map of field names to data values
Set data on all components