-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Убрал слово Catalog из названия класса. Изменил документацию
- Loading branch information
Showing
4 changed files
with
15 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
* | ||
* @author Mikhail Zhurov <[email protected]> | ||
*/ | ||
class CatalogGroupFinder extends Finder | ||
class GroupFinder extends Finder | ||
{ | ||
protected static $cacheDir = 'bex_tools/catalog_groups'; | ||
protected static $cacheTag = 'bex_catalog_groups'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* | ||
* @author Mikhail Zhurov <[email protected]> | ||
*/ | ||
class CatalogGroupTools | ||
class GroupTools | ||
{ | ||
/** | ||
* Gets Finder for catalog groups by group name. | ||
|
@@ -20,11 +20,11 @@ class CatalogGroupTools | |
* @param bool $silenceMode When you use silence mode instead of an exception \Bex\Tools\ValueNotFoundException | ||
* (if value was be not found) is returned null. | ||
* | ||
* @return CatalogGroupFinder | ||
* @return GroupFinder | ||
*/ | ||
public static function find($name, $silenceMode = false) | ||
{ | ||
return new CatalogGroupFinder( | ||
return new GroupFinder( | ||
['name' => $name], | ||
$silenceMode | ||
); | ||
|
@@ -36,13 +36,11 @@ public static function find($name, $silenceMode = false) | |
* @param int $id Group ID | ||
* @param bool $silenceMode When you use silence mode instead of an exception \Bex\Tools\ValueNotFoundException | ||
* (if value was be not found) is returned null. | ||
* @return CatalogGroupFinder | ||
* @return GroupFinder | ||
*/ | ||
public static function findById($id, $silenceMode = false) | ||
{ | ||
return new CatalogGroupFinder( | ||
['id' => $id], | ||
return new GroupFinder(['id' => $id], | ||
$silenceMode | ||
); | ||
} | ||
|
@@ -53,12 +51,11 @@ public static function findById($id, $silenceMode = false) | |
* @param bool $silenceMode When you use silence mode instead of an exception \Bex\Tools\ValueNotFoundException | ||
* (if value was be not found) is returned null. | ||
* | ||
* @return CatalogGroupFinder | ||
* @return GroupFinder | ||
*/ | ||
public static function findBase($silenceMode = false) | ||
{ | ||
return new CatalogGroupFinder( | ||
['base' => true], | ||
return new GroupFinder(['base' => true], | ||
$silenceMode | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters