eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::assignSectionToContent PHP Method

assignSectionToContent() abstract public method

Inserts the assignment of $contentId to $sectionId.
abstract public assignSectionToContent ( integer $sectionId, integer $contentId )
$sectionId integer
$contentId integer
    public abstract function assignSectionToContent($sectionId, $contentId);

Usage Example

コード例 #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);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway::assignSectionToContent