Method |
Description |
|
active ( string $route, string $active = 'active' ) : [string] |
[active description]. |
|
codeMasked ( [string] $code, [integer] $lenght = 5, [char] $char = '0' ) : string |
codeMasked
It is able to generate a mask for any string passed through it. |
|
getUrlQueryString ( [array] $refine, [string] $key, [string] $value ) : [string] |
getUrlQueryString
This method is able to return a complete url, including its GET variables, even if they have changes. |
|
money_format ( $format, $number ) |
emulate money format if the function is not defined in the O.S. |
|
printBarCode ( [object] $product = null, $type = 'EAN8' ) : [html] |
printBarCode
it prints the barcode taking in account whether the barcode exists or not. |
|
removeFromUrlQueryString ( [type] $refine, [type] $_key ) : [string] |
removeFromUrlQueryString
removes a specific variable from the url query string. |
|
requestToArrayUnique ( [array] $request ) : [array] |
requestToArrayUnique
this method is able to return a unique multidimensional array. |
|
showPrice ( $arg ) : [String] |
[price description]. |
|
showRate ( $rate ) : [string] |
showRate
it shows the rate score. |
|
thousandSuffix ( [Float] $num ) : [String] |
[Format Currency to Nearest Thousands such as Kilos, Millions, Billions, and Trillions]. |
|
totalByStatusOrder ( $orders ) : [array] |
totalByStatusOrder
it stores all the orders totals by type to be used either in a reports view or a simple one. |
|
totalOrder ( [object] $items ) : [array] |
totalOrder
It is able to return the order total, as items number and price total. |
|