PHP Class app\helpers\productsHelper

Afficher le fichier Open project: ant-vel/antVel Class Usage Examples

Méthodes publiques

Méthode Description
categoriesDropDownFormat ( $array, &$outPut )
countingProductsByCategory ( [type] $all_products, [type] $categories ) : [array] countingProductsByCategory Products total by category collection.
getFieldToSuggestions ( $key ) : [string] get the table product field evaluated by the time when it calls.
resetHaystack ( )
setToHaystack ( $products, $field = 'id' ) : [array] Build the not in id array to be evaluated in suggestions.
suggest ( $type, $limit = 4 ) : [json] manage the home section suggestions.

Method Details

categoriesDropDownFormat() public static méthode

public static categoriesDropDownFormat ( $array, &$outPut )

countingProductsByCategory() public static méthode

countingProductsByCategory Products total by category collection.
public static countingProductsByCategory ( [type] $all_products, [type] $categories ) : [array]
$all_products [type]
$categories [type]
Résultat [array]

getFieldToSuggestions() public méthode

get the table product field evaluated by the time when it calls.
public getFieldToSuggestions ( $key ) : [string]
Résultat [string]

resetHaystack() public méthode

public resetHaystack ( )

setToHaystack() public méthode

Build the not in id array to be evaluated in suggestions.
public setToHaystack ( $products, $field = 'id' ) : [array]
Résultat [array]

suggest() public static méthode

manage the home section suggestions.
public static suggest ( $type, $limit = 4 ) : [json]
Résultat [json]