PHP 클래스 app\helpers\Utility

저자: Gustavo Ocanto ([email protected])
파일 보기 프로젝트 열기: ant-vel/antVel

공개 메소드들

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

메소드 상세

active() 공개 정적인 메소드

[active description].
public static active ( string $route, string $active = 'active' ) : [string]
$route string [Route to compare ]
$active string [class]
리턴 [string]

codeMasked() 공개 정적인 메소드

codeMasked It is able to generate a mask for any string passed through it.
public static codeMasked ( [string] $code, [integer] $lenght = 5, [char] $char = '0' ) : string
$code [string]
$lenght [integer]
$char [char]
리턴 string masked

getUrlQueryString() 공개 정적인 메소드

getUrlQueryString This method is able to return a complete url, including its GET variables, even if they have changes.
public static getUrlQueryString ( [array] $refine, [string] $key, [string] $value ) : [string]
$refine [array]
$key [string]
$value [string]
리턴 [string]

money_format() 공개 정적인 메소드

emulate money format if the function is not defined in the O.S.
public static money_format ( $format, $number )

printBarCode() 공개 정적인 메소드

printBarCode it prints the barcode taking in account whether the barcode exists or not.
public static printBarCode ( [object] $product = null, $type = 'EAN8' ) : [html]
$product [object]
리턴 [html]

removeFromUrlQueryString() 공개 정적인 메소드

removeFromUrlQueryString removes a specific variable from the url query string.
public static removeFromUrlQueryString ( [type] $refine, [type] $_key ) : [string]
$refine [type]
$_key [type]
리턴 [string]

requestToArrayUnique() 공개 정적인 메소드

requestToArrayUnique this method is able to return a unique multidimensional array.
public static requestToArrayUnique ( [array] $request ) : [array]
$request [array]
리턴 [array]

showPrice() 공개 정적인 메소드

[price description].
public static showPrice ( $arg ) : [String]
리턴 [String]

showRate() 공개 정적인 메소드

showRate it shows the rate score.
public static showRate ( $rate ) : [string]
리턴 [string]

thousandSuffix() 공개 정적인 메소드

[Format Currency to Nearest Thousands such as Kilos, Millions, Billions, and Trillions].
public static thousandSuffix ( [Float] $num ) : [String]
$num [Float]
리턴 [String]

totalByStatusOrder() 공개 정적인 메소드

totalByStatusOrder it stores all the orders totals by type to be used either in a reports view or a simple one.
public static totalByStatusOrder ( $orders ) : [array]
리턴 [array]

totalOrder() 공개 정적인 메소드

totalOrder It is able to return the order total, as items number and price total.
public static totalOrder ( [object] $items ) : [array]
$items [object]
리턴 [array]