eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase Class Reference

Section Handler. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase:

Public Member Functions

 __construct (EzcDbHandler $dbHandler)
 Creates a new EzcDatabase Section Gateway. More...
 
 assignSectionToContent ($sectionId, $contentId)
 Inserts the assignment of $contentId to $sectionId. More...
 
 countContentObjectsInSection ($id)
 Counts the number of content objects assigned to section with $id. More...
 
 deleteSection ($id)
 Deletes the Section with $id. More...
 
 insertSection ($name, $identifier)
 Inserts a new section with $name and $identifier. More...
 
 loadAllSectionData ()
 Loads data for all sections. More...
 
 loadSectionData ($id)
 Loads data for section with $id. More...
 
 loadSectionDataByIdentifier ($identifier)
 Loads data for section with $identifier. More...
 
 updateSection ($id, $name, $identifier)
 Updates section with $id to have $name and $identifier. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway
 assignSectionToContent ($sectionId, $contentId)
 Inserts the assignment of $contentId to $sectionId. More...
 
 countContentObjectsInSection ($id)
 Counts the number of content objects assigned to section with $id. More...
 
 deleteSection ($id)
 Deletes the Section with $id. More...
 
 insertSection ($name, $identifier)
 Inserts a new section with $name and $identifier. More...
 
 loadAllSectionData ()
 Loads data for all sections. More...
 
 loadSectionData ($id)
 Loads data for section with $id. More...
 
 loadSectionDataByIdentifier ($identifier)
 Loads data for section with $identifier. More...
 
 updateSection ($id, $name, $identifier)
 Updates section with $id to have $name and $identifier. More...
 

Protected Attributes

 $dbHandler
 Database handler. More...
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::__construct ( EzcDbHandler  $dbHandler)

Creates a new EzcDatabase Section Gateway.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::assignSectionToContent (   $sectionId,
  $contentId 
)

Inserts the assignment of $contentId to $sectionId.

Parameters
int$sectionId
int$contentId
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::countContentObjectsInSection (   $id)

Counts the number of content objects assigned to section with $id.

Parameters
int$id
Returns
int
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::deleteSection (   $id)

Deletes the Section with $id.

Parameters
int$id
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::insertSection (   $name,
  $identifier 
)

Inserts a new section with $name and $identifier.

Parameters
string$name
string$identifier
Returns
int The ID of the new section
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::loadAllSectionData ( )

Loads data for all sections.

Returns
string[][]
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::loadSectionData (   $id)

Loads data for section with $id.

Parameters
int$id
Returns
string[][]
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::loadSectionDataByIdentifier (   $identifier)

Loads data for section with $identifier.

Parameters
int$identifier
Returns
string[][]
eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::updateSection (   $id,
  $name,
  $identifier 
)

Updates section with $id to have $name and $identifier.

Parameters
int$id
string$name
string$identifier
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase::$dbHandler
protected

Database handler.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\EzcDatabase\__construct().


The documentation for this class was generated from the following file: