PHP 클래스 app\helpers\productsHelper

파일 보기 프로젝트 열기: ant-vel/antVel 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

categoriesDropDownFormat() 공개 정적인 메소드

public static categoriesDropDownFormat ( $array, &$outPut )

countingProductsByCategory() 공개 정적인 메소드

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

getFieldToSuggestions() 공개 메소드

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

resetHaystack() 공개 메소드

public resetHaystack ( )

setToHaystack() 공개 메소드

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

suggest() 공개 정적인 메소드

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