Вход Регистрация
Файл: plugins/user_credits/components/cost_of_actions.php
Строк: 32
<?php

class USERCREDITS_CMP_CostOfActions extends PEEP_Component
{
    public function 
__construct( )
    {
        
parent::__construct();

        
$creditService USERCREDITS_BOL_CreditsService::getInstance();

        
$accountTypeId $creditService->getUserAccountTypeId(PEEP::getUser()->getId());
        
$earning $creditService->findCreditsActions('earn'$accountTypeIdfalse);
        
$losing $creditService->findCreditsActions('lose'$accountTypeIdfalse);
        
        
$this->assign('losing'$losing);
        
$this->assign('earning'$earning);
    }
}
Онлайн: 1
Реклама