PHP Class CouponStatus

Exibir arquivo Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
all ( ) : array Return key=>value statuses list
coloredLabel ( integer $id ) : string Return status colored label
colors ( ) : array Return CSS class names associated with status
keys ( ) : array Return statuses keys
title ( integer $id ) : string Return status title

Method Details

all() public static method

Return key=>value statuses list
public static all ( ) : array
return array

coloredLabel() public static method

Return status colored label
public static coloredLabel ( integer $id ) : string
$id integer Status ID
return string

colors() public static method

Return CSS class names associated with status
public static colors ( ) : array
return array

keys() public static method

Return statuses keys
public static keys ( ) : array
return array

title() public static method

Return status title
public static title ( integer $id ) : string
$id integer Status ID
return string