assignSectionToContent() 추상적인 공개 메소드

Inserts the assignment of $contentId to $sectionId.
abstract public assignSectionToContent ( integer $sectionId, integer $contentId )
$sectionId integer
$contentId integer
예제 #1
0
 /**
  * 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);
     }
 }
예제 #2
0
 /**
  * Assigns section to single content object
  *
  * @param mixed $sectionId
  * @param mixed $contentId
  */
 public function assign($sectionId, $contentId)
 {
     $this->sectionGateway->assignSectionToContent($sectionId, $contentId);
 }