Пример #1
0
 /**
  * @param boolean $is_error
  * @param int $cache_flag
  */
 public static function logMethodCall($is_error, $cache_flag)
 {
     $input = Core_Helper_Input::getInstance();
     self::$_db_static->insert('numista_api_log', array('time' => time(), 'ip' => $input->getIP(), 'log' => $input->getServer('REDIRECT_URL'), 'is_error' => $is_error ? 1 : 0, 'cache_flag' => $cache_flag));
 }
Пример #2
0
 public function __construct()
 {
     $this->force_cache = intval(Core_Helper_Input::getInstance()->force_cache) == 1;
     $this->io = new Library_Io_Curl();
 }