eZPublishCommunityProject  2013.4
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase Class Reference

ezcDatabase based Language Gateway More...

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

Public Member Functions

 __construct (EzcDbHandler $dbHandler)
 Creates a new EzcDatabase Section Gateway. More...
 
 canDeleteLanguage ($id)
 Check whether a language may be deleted. More...
 
 deleteLanguage ($id)
 Deletes the language with $id. More...
 
 insertLanguage (Language $language)
 Inserts the given $language. More...
 
 loadAllLanguagesData ()
 Loads the data for all languages. More...
 
 loadLanguageData ($id)
 Loads data for the Language with $id. More...
 
 loadLanguageDataByLanguageCode ($languageCode)
 Loads data for the Language with Language Code (eg: eng-GB) More...
 
 updateLanguage (Language $language)
 Updates the data of the given $language. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway
 canDeleteLanguage ($id)
 Check whether a language may be deleted. More...
 
 deleteLanguage ($id)
 Deletes the language with $id. More...
 
 insertLanguage (Language $language)
 Inserts the given $language. More...
 
 loadAllLanguagesData ()
 Loads the data for all languages. More...
 
 loadLanguageData ($id)
 Loads data for the Language with $id. More...
 
 loadLanguageDataByLanguageCode ($languageCode)
 Loads data for the Language with Language Code (eg: eng-GB) More...
 
 updateLanguage (Language $language)
 Updates the data of the given $language. More...
 

Protected Member Functions

 createFindQuery ()
 Creates a Language find query. More...
 
 setCommonLanguageColumns (ezcQuery $query, Language $language)
 Sets columns in $query from $language. More...
 

Protected Attributes

 $dbHandler
 Database handler. More...
 

Detailed Description

ezcDatabase based Language Gateway

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Language\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\Language\Gateway\EzcDatabase::canDeleteLanguage (   $id)

Check whether a language may be deleted.

Parameters
int$id
Returns
boolean
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::deleteLanguage (   $id)

Deletes the language with $id.

Parameters
int$id
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::insertLanguage ( Language  $language)

Inserts the given $language.

Parameters
Language$language
Returns
int ID of the new language
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::loadAllLanguagesData ( )

Loads the data for all languages.

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

Loads data for the Language with $id.

Parameters
int$id
Returns
string[][]
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::loadLanguageDataByLanguageCode (   $languageCode)

Loads data for the Language with Language Code (eg: eng-GB)

Parameters
string$languageCode
Returns
string[][]
eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::setCommonLanguageColumns ( ezcQuery  $query,
Language  $language 
)
protected

Sets columns in $query from $language.

Parameters
\ezcQuery$query
\eZ\Publish\SPI\Persistence\Content\Language$language
Returns
void

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase\insertLanguage(), and eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase\updateLanguage().

eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway\EzcDatabase::updateLanguage ( Language  $language)

Updates the data of the given $language.

Parameters
Language$language
Returns
void

Member Data Documentation

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

Database handler.

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

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


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