/** * Receives a builder element and removes it from the project's integration * builder. It does it's best to find the matching [deeply] nested element * and removes it. It also checks if the removed element is a special task, * and unregisters it accordingly from the project. * * @param Build_BuilderElement $element * @param string $id */ public function removeFromIntegrationBuilder(Build_BuilderElement $element) { $newBuilder = $this->getIntegrationBuilder()->deleteElement($element->getInternalId()); $this->setIntegrationBuilder($newBuilder); // // If it's a special task, unregister it with the project // if ($element->isSpecialTask()) { $this->unregisterSpecialTask($element->getSpecialTask()); } }