4 * Class test_extension_manager_paymenttest
6 class test_extension_manager_paymenttest
extends CRM_Core_Payment
{
8 public static $counts = array();
10 public function install() {
11 self
::$counts['install'] = isset(self
::$counts['install']) ? self
::$counts['install'] : 0;
12 self
::$counts['install'] = 1 +
(int) self
::$counts['install'];
15 public function uninstall() {
16 self
::$counts['uninstall'] = isset(self
::$counts['uninstall']) ? self
::$counts['uninstall'] : 0;
17 self
::$counts['uninstall'] = 1 +
(int) self
::$counts['uninstall'];
20 public function disable() {
21 self
::$counts['disable'] = isset(self
::$counts['disable']) ? self
::$counts['disable'] : 0;
22 self
::$counts['disable'] = 1 +
(int) self
::$counts['disable'];
25 public function enable() {
26 self
::$counts['enable'] = isset(self
::$counts['enable']) ? self
::$counts['enable'] : 0;
27 self
::$counts['enable'] = 1 +
(int) self
::$counts['enable'];
30 public function checkConfig() {
34 * Get the desired value from $counts.
40 public static function getCount($type) {
41 return isset(self
::$counts[$type]) ? self
::$counts[$type] : 0;