CategoryPath
class CategoryPath extends BaseI18nLoop implements ArraySearchLoopInterface
Category path loop, to get the path to a given category.
- category is the category id
- depth is the maximum depth to go, default unlimited
- level is the exact level to return. Example: if level = 2 and the path is c1 -> c2 -> c3 -> c4, the loop will return c2
- visible if true or missing, only visible categories will be displayed. If false, all categories (visible or not) are returned.
Class CategoryPath
Methods
Provides a getter to loop parameter values
No description
No description
Add the search clause for an I18N column, taking care of the back/front context, as defaultlocalei18n is not defined in the backEnd I18N context.
No description
No description
No description
Details
in
BaseLoop at line 99
__construct(
ContainerInterface $container)
Create a new Loop
in
BaseLoop at line 210
mixed
__call(
string $name,
mixed $arguments)
Provides a getter to loop parameter values
in
BaseLoop at line 231
initializeArgs(
array $nameValuePairs)
Initialize the loop arguments.
in
BaseLoop at line 456
count()
in
BaseLoop at line 496
LoopResult
exec(
PropelModelPager $pagination)
at line 112
LoopResult
parseResults(
LoopResult $loopResult)
in
BaseLoop at line 744
ArgumentCollection
getArgumentCollection()
Get the argument collection
in
BaseLoop at line 754
null|String
getLoopName()
Get the loop name
in
BaseLoop at line 52
string
getType()
in
BaseLoop at line 52
bool
getForceReturn()
in
BaseLoop at line 52
bool
getBackendContext()
in
BaseLoop at line 52
int
getOffset()
available if countable is true
in
BaseLoop at line 52
int
getPage()
available if countable is true
in
BaseLoop at line 52
int
getLimit()
available if countable is true
in
BaseLoop at line 52
bool
getReturnUrl()
false for disable the generation of urls
in
BaseLoop at line 52
ModelCriteria
buildModelCriteria()
at line 57
array
buildArray()
in
BaseI18nLoop at line 89
addSearchInI18nColumn(
ModelCriteria $search,
string $columnName,
string $searchCriteria,
string $searchTerm)
Add the search clause for an I18N column, taking care of the back/front context, as defaultlocalei18n is not defined in the backEnd I18N context.