PHP Class app\helpers\categoriesHelper

Author: Gustavo Ocanto ([email protected])
Show file Open project: ant-vel/antVel Class Usage Examples

Public Methods

Method Description
findChildren ( &$father, $array, $list, $noSub = false, $posible = [] )
findfather ( &$son, $array, $id )
level ( $categories, $category_id )
orderByParents ( $data, $posible = [] )
printCategory ( array | collection $categories = [] ) : function return function that return html to the list of categories in wpanel.
searchCategories ( $categories, $products )
separateTypesCategories ( $data )

Method Details

findChildren() public static method

public static findChildren ( &$father, $array, $list, $noSub = false, $posible = [] )

findfather() public static method

public static findfather ( &$son, $array, $id )

level() public static method

public static level ( $categories, $category_id )

orderByParents() public static method

public static orderByParents ( $data, $posible = [] )

printCategory() public static method

return function that return html to the list of categories in wpanel.
public static printCategory ( array | collection $categories = [] ) : function
$categories array | collection All Categories
return function

searchCategories() public static method

public static searchCategories ( $categories, $products )

separateTypesCategories() public static method

public static separateTypesCategories ( $data )