protected function getStatusValues()
    {
        $values = array();
        foreach ($this->dbObject('Status')->enumValues() as $value) {
            $values[$value] = _t('SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper($value), $value);
        }
        return $values;
    }
protected function getStatusValues()
    {
        $values = array();
        foreach ($this->dbObject('Status')->enumValues() as $value) {
            $values[$value] = _t('SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper($value), $value);
        }
        return $values;
    }
protected function getStatusValues ( ) { $ values = array ( ) ; foreach ( $ this -> dbObject ( 'Status' ) -> enumValues ( ) as $ value ) { $ values [ $ value ] = _t ( 'SilverStripe\Omnipay\Model\Payment.STATUS_' . strtoupper ( $ value ) , $ value ) ; } return $ values ; }
Get an array of status enum value to translated string.
Can be used for dropdowns
@return array
Get an array of status enum value to translated string . Can be used for dropdowns