public function update($id, $itemId, array $data)
    {
        $this->validateRequiredParameters(array('name', 'state'), $data);

        $this->remove($id, $itemId);

        return $this->create($id, $data['name'], $data['state'], $data);
    }
public function update($id, $itemId, array $data)
    {
        $this->validateRequiredParameters(array('name', 'state'), $data);

        $this->remove($id, $itemId);

        return $this->create($id, $data['name'], $data['state'], $data);
    }
public function update ( $ id , $ itemId , array $ data ) { $ this -> validateRequiredParameters ( array ( 'name' , 'state' ) , $ data ) ; $ this -> remove ( $ id , $ itemId ) ; return $ this -> create ( $ id , $ data [ 'name' ] , $ data [ 'state' ] , $ data ) ; }
Update an item in the given checklist

FIXME
There is no put method on checklist items, so this is
a dirty workaround which works by deleting the item
and recreating it.

@param string $id     Id of the checklist
@param string $itemId the id of the item to update
@param array  $data   check item data

@return array
Update an item in the given checklist