public function setDataToAll($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $k => $v) {
                $this->setDataToAll($k, $v);
            }
            return $this;
        }

        foreach ($this->getItems() as $item) {
            /** @var Aoe_Scheduler_Model_Job $item */
            $item->setDataUsingMethod($key, $value);
        }

        return $this;
    }
public function setDataToAll($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $k => $v) {
                $this->setDataToAll($k, $v);
            }
            return $this;
        }

        foreach ($this->getItems() as $item) {
            /** @var Aoe_Scheduler_Model_Job $item */
            $item->setDataUsingMethod($key, $value);
        }

        return $this;
    }
public function setDataToAll ( $ key , $ value = null ) { if ( is_array ( $ key ) ) { foreach ( $ key as $ k => $ v ) { $ this -> setDataToAll ( $ k , $ v ) ; } return $ this ; } foreach ( $ this -> getItems ( ) as $ item ) { /** @var Aoe_Scheduler_Model_Job $item */ $ item -> setDataUsingMethod ( $ key , $ value ) ; } return $ this ; }
Setting data for all collection items

@param   mixed $key
@param   mixed $value

@return  $this
Setting data for all collection items