/** * Construct */ function __construct($service_prefs) { parent::__construct(array('id' => 'interest', 'defaults' => array('rate' => array('amount' => 2, 'period' => 1, 'pay_out' => 'monthly'), 'last_payout' => '', 'log' => __('%plural% interest rate payment', 'mycred'), 'min_balance' => 1, 'run_time' => 60)), $service_prefs); }
/** * Construct */ function __construct($service_prefs) { parent::__construct(array('id' => 'payouts', 'defaults' => array('amount' => 10, 'rate' => 'daily', 'log' => __('Daily %_plural%', 'mycred'), 'excludes' => '', 'cycles' => 0, 'last_run' => '', 'run_time' => 60)), $service_prefs); }
/** * Construct */ function __construct($service_prefs, $type = 'mycred_default') { parent::__construct(array('id' => 'interest', 'defaults' => array('rate' => array('amount' => 2, 'period' => 1, 'pay_out' => 'monthly'), 'log' => __('%plural% interest rate payment', 'mycred'), 'min_balance' => 1, 'exclude_ids' => '', 'exclude_roles' => array())), $service_prefs, $type); add_action('mycred_bank_interest_comp' . $this->mycred_type, array($this, 'do_compounding')); add_action('mycred_bank_interest_pay' . $this->mycred_type, array($this, 'do_interest_payout')); }
/** * Construct */ function __construct($service_prefs, $type = 'mycred_default') { parent::__construct(array('id' => 'central', 'defaults' => array('bank_id' => '', 'ignore_manual' => 1)), $service_prefs, $type); }
/** * Construct */ function __construct($service_prefs, $type = 'mycred_default') { parent::__construct(array('id' => 'payouts', 'defaults' => array('amount' => 10, 'rate' => 'daily', 'log' => __('Daily %_plural%', 'mycred'), 'cycles' => 0, 'min_balance' => 1, 'exclude_ids' => '', 'exclude_roles' => array())), $service_prefs, $type); add_action('mycred_bank_recurring_pay' . $this->mycred_type, array($this, 'do_masspayout')); }