Пример #1
0
 /**
  * Тест на протекшены
  *
  * @return boolean
  */
 protected function checkProtections()
 {
     // Проверяем цепочку протекшенов
     $check = $this->protections->isValid();
     if (!$check) {
         // Получаем cause
         $this->cause = $this->protections->getCause();
         // Получаем статус
         $this->result = $this->protections->getStatus();
         if ($this->firephp) {
             $this->firephp->log($this->cause, 'Cause');
             $this->firephp->log($this->result, 'Status');
         }
     }
     return $check;
 }
Пример #2
0
 /**
  * Конструктор класса
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->_loadSettings();
     $this->_loadFraudProtections();
 }