eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase Class Reference

UrlAlias Gateway. More...

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

Public Member Functions

 __construct (EzcDbHandler $dbHandler, LanguageMaskGenerator $languageMaskGenerator)
 Creates a new EzcDatabase UrlAlias Gateway. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway
 cleanupAfterPublish ($action, $languageId, $newId, $parentId, $textMD5)
 Downgrades autogenerated entry matched by given $action and $languageId and negatively matched by composite primary key. More...
 
 getNextId ()
 Returns next value for "id" column. More...
 
 historizeId ($id, $link)
 Marks all entries with given $id as history entries. More...
 
 insertRow (array $values)
 Inserts new row in urlalias_ml table. More...
 
 isRootEntry ($id)
 Returns boolean indicating if the row with given $id is special root entry. More...
 
 listGlobalEntries ($languageCode=null, $offset=0, $limit=-1)
 Loads paged list of global aliases. More...
 
 loadAutogeneratedEntries ($parentId, $includeHistory=false)
 Loads all autogenerated entries with given $parentId with optionally included history entries. More...
 
 loadAutogeneratedEntry ($action, $parentId=null)
 Loads autogenerated entry id by given $action and optionally $parentId. More...
 
 loadLocationEntries ($locationId, $custom=false, $languageId=false)
 Loads list of aliases by given $locationId. More...
 
 loadPathData ($id)
 Loads path data identified by given $id. More...
 
 loadPathDataByHierarchy (array $hierarchyData)
 Loads path data identified by given ordered array of hierarchy data. More...
 
 loadRow ($parentId, $textMD5)
 Loads single row matched by composite primary key. More...
 
 loadUrlAliasData (array $urlHashes)
 Loads complete URL alias data by given array of path hashes. More...
 
 remove ($action, $id=null)
 Deletes all rows with given $action and optionally $id. More...
 
 removeCustomAlias ($parentId, $textMD5)
 Deletes single custom alias row matched by composite primary key. More...
 
 reparent ($oldParentId, $newParentId)
 Updates parent id of autogenerated entries. More...
 
 updateRow ($parentId, $textMD5, array $values)
 Updates single row data matched by composite primary key. More...
 

Public Attributes

const MAX_LIMIT = 1073741824
 2^30, since PHP_INT_MAX can cause overflows in DB systems, if PHP is run on 64 bit systems More...
 

Protected Member Functions

 setQueryValues (ezcQuery $query, $values)
 Sets value for insert or update query. More...
 

Protected Attributes

 $columns
 
 $dbHandler
 
 $languageMaskGenerator
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::__construct ( EzcDbHandler  $dbHandler,
LanguageMaskGenerator  $languageMaskGenerator 
)

Creates a new EzcDatabase UrlAlias Gateway.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler
\eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator$languageMaskGenerator

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::setQueryValues ( ezcQuery  $query,
  $values 
)
protected

Sets value for insert or update query.

Parameters
\ezcQuery | \ezcQueryInsert | \ezcQueryUpdate$query
array$values
Exceptions
\Exception
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::$columns
protected
Initial value:
= array(
"ezurlalias_ml" => array(
"action",
"action_type",
"alias_redirects",
"id",
"is_alias",
"is_original",
"lang_mask",
"link",
"parent",
"text",
"text_md5",
),
)
eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::$dbHandler
protected
eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::$languageMaskGenerator
protected
const eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Gateway\EzcDatabase::MAX_LIMIT = 1073741824

2^30, since PHP_INT_MAX can cause overflows in DB systems, if PHP is run on 64 bit systems


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