/** * Display delete confirmation form (repository/workspace switch) */ public function delete() { switch ($this->id_type) { case self::REPOSITORY_NODE_ID: case self::REPOSITORY_OBJECT_ID: return parent::deleteObject(); case self::WORKSPACE_NODE_ID: case self::WORKSPACE_OBJECT_ID: return $this->deleteConfirmation(); case self::OBJECT_ID: case self::PORTFOLIO_OBJECT_ID: // :TODO: should this ever occur? break; } }