Change getRewrittenUrlViewName signature to public, to allow export to do a single query.

modifié:         core/lib/Thelia/Model/Brand.php
	modifié:         core/lib/Thelia/Model/Category.php
	modifié:         core/lib/Thelia/Model/Content.php
	modifié:         core/lib/Thelia/Model/Folder.php
	modifié:         core/lib/Thelia/Model/Product.php
	modifié:         core/lib/Thelia/Model/Tools/UrlRewritingTrait.php
This commit is contained in:
Benjamin Perche
2014-07-23 08:38:28 +02:00
parent a5a62b40e0
commit 32450117c2
6 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ class Brand extends BaseBrand implements FileModelParentInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getRewrittenUrlViewName() public function getRewrittenUrlViewName()
{ {
return 'brand'; return 'brand';
} }

View File

@@ -31,7 +31,7 @@ class Category extends BaseCategory implements FileModelParentInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getRewrittenUrlViewName() public function getRewrittenUrlViewName()
{ {
return 'category'; return 'category';
} }

View File

@@ -27,7 +27,7 @@ class Content extends BaseContent implements FileModelParentInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getRewrittenUrlViewName() public function getRewrittenUrlViewName()
{ {
return 'content'; return 'content';
} }

View File

@@ -20,7 +20,7 @@ class Folder extends BaseFolder implements FileModelParentInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getRewrittenUrlViewName() public function getRewrittenUrlViewName()
{ {
return 'folder'; return 'folder';
} }

View File

@@ -25,7 +25,7 @@ class Product extends BaseProduct implements FileModelParentInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getRewrittenUrlViewName() public function getRewrittenUrlViewName()
{ {
return 'product'; return 'product';
} }

View File

@@ -29,7 +29,7 @@ trait UrlRewritingTrait
/** /**
* @returns string the view name of the rewritten object (e.g., 'category', 'product') * @returns string the view name of the rewritten object (e.g., 'category', 'product')
*/ */
abstract protected function getRewrittenUrlViewName(); abstract public function getRewrittenUrlViewName();
/** /**
* Get the object URL for the given locale, rewritten if rewriting is enabled. * Get the object URL for the given locale, rewritten if rewriting is enabled.