yf_manage_payment_lib admin module

Fileplugins/payment/admin_modules/yf_manage_payment_lib.class.php
Useadmin URL ?object=manage_payment_lib

Public properties

A site sets them in its config with $PROJECT_CONF['manage_payment_lib']['NAME'] = ...;

PropertyDefaultDescription
$css_by_status
['processing' => 'text-warning', 'in_progress' => 'text-warning', 'success' => 'text-success', 'expired' => 'text-danger', 'refused' => 'text-danger', 'cancelled' => 'text-danger', ... (7 items)]
array (
  'processing' => 'text-warning',
  'in_progress' => 'text-warning',
  'success' => 'text-success',
  'expired' => 'text-danger',
  'refused' => 'text-danger',
  'cancelled' => 'text-danger',
  'confirmation' => 'text-warning',
)

Public methods 2

css_by_status

public function css_by_status($options = null)
    public function css_by_status($options = null)
    {
        $_status_name = null;
        // import options
        is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
        // var
        $css = &$this->css_by_status;
        $result = ($css[$_status_name] ?? null) ?: '';
        return  $result;
    }

Methods starting with _ hooks and helpers; not routable as page actions

_init

public function _init()
    public function _init()
    {
    }