Inserts the assignment of $contentId to $sectionId.
abstract public assignSectionToContent ( integer $sectionId, integer $contentId ) | ||
$sectionId | integer | |
$contentId | integer |
/** * Inserts the assignment of $contentId to $sectionId. * * @param int $sectionId * @param int $contentId */ public function assignSectionToContent($sectionId, $contentId) { try { return $this->innerGateway->assignSectionToContent($sectionId, $contentId); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * Assigns section to single content object * * @param mixed $sectionId * @param mixed $contentId */ public function assign($sectionId, $contentId) { $this->sectionGateway->assignSectionToContent($sectionId, $contentId); }