Exemplo n.º 1
0
 public function countInBalance()
 {
     if ($this->getInBalancePUsers() + $this->getInBalanceUser() > 0) {
         // похоже уже считали входной баланс, сваливаем
         return;
     }
     $this->setInBalanceUser((double) UserTable::getUsersBalance('none'));
     $this->setInBalanceStandart((double) UserTable::getUsersBalance('standart'));
     $this->setInBalanceExpert((double) UserTable::getUsersBalance('expert'));
     $this->setInBalanceSuper((double) UserTable::getUsersBalance('super'));
 }