eZPublishCommunityProject  2013.5
eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage:

Public Member Functions

 getFieldData (Field $field)
 
 setConnection ($dbHandler)
 Set database handler for this gateway. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field)
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway
 getFieldData (Field $field)
 Sets a loaded URL, if one is stored for the given field. More...
 
 storeFieldData (VersionInfo $versionInfo, Field $field)
 Stores a URL based on the given field data. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\StorageGateway
 setConnection ($connection)
 Sets the data storage connection to use. More...
 

Public Attributes

const URL_TABLE = "ezurl"
 

Protected Member Functions

 getConnection ()
 Returns the active connection. More...
 

Protected Attributes

 $dbHandler
 

Private Member Functions

 fetchById ($id)
 Fetches a row in ezurl table referenced by its $id. More...
 
 fetchByLink ($link)
 Fetches a row in ezurl table referenced by $link. More...
 
 insert (VersionInfo $versionInfo, Field $field)
 Inserts a new entry in ezurl table with $field value data. More...
 

Member Function Documentation

eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::fetchById (   $id)
private

Fetches a row in ezurl table referenced by its $id.

Parameters
mixed$id
Returns
null|array Hash with columns as keys or null if no entry can be found

Referenced by eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage\getFieldData().

eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::fetchByLink (   $link)
private

Fetches a row in ezurl table referenced by $link.

Parameters
string$link
Returns
null|array Hash with columns as keys or null if no entry can be found

Referenced by eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage\storeFieldData().

eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::getConnection ( )
protected
eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::getFieldData ( Field  $field)
See Also
eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::insert ( VersionInfo  $versionInfo,
Field  $field 
)
private

Inserts a new entry in ezurl table with $field value data.

Parameters
\eZ\Publish\SPI\Persistence\Content\Field$field
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler
Returns
mixed

Referenced by eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage\storeFieldData().

eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::setConnection (   $dbHandler)

Set database handler for this gateway.

Parameters
mixed$dbHandler
Returns
void
Exceptions
\RuntimeExceptionif $dbHandler is not an instance of eZ\Publish\Core\Persistence\Legacy\EzcDbHandler
eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::storeFieldData ( VersionInfo  $versionInfo,
Field  $field 
)
See Also

Member Data Documentation

const eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage::URL_TABLE = "ezurl"

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