/** * @return array of available payment systems. e.g array(id=>name) */ public function getPaymentSystemsArray() { // Yii::import('application.modules.shop.components.payment.PaymentSystemManager'); $result = array(); $systems = new PaymentSystemManager(); foreach ($systems->getSystems() as $system) { $result[(string) $system->id] = $system->name; } return $result; }