/**
  * Unsets all cookies.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.2.1
  */
 public static function unsetCookies()
 {
     self::$COOKIES = array();
 }
 /**
  * Disconnects and deletes all configuration data.
  */
 public static function disconnect()
 {
     self::$HOST = "";
     self::$SHOP = "";
     self::$AUTHTOKEN = "";
     self::$ISCONNECTED = false;
 }
Esempio n. 3
0
 /**
  * Change the time to wait with the next request.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.1.1
  * @param int time The time in ms every reload needs to wait until get new information.
  * @return boolean True if the change works, false if not.
  * @api
  */
 public static function setRequestWaitTime($time)
 {
     if (!InputValidator::isRangedInt($time, 0)) {
         return false;
     }
     self::$NEXT_RESPONSE_WAIT_TIME = $time;
     return true;
 }
 /**
  * Disconnects and deletes all configuration data.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.0.0
  * @api
  */
 public static function disconnect()
 {
     self::$HOST = "";
     self::$SHOP = "";
     self::$AUTHTOKEN = null;
     self::$ISCONNECTED = false;
     self::$ISSSL = true;
     return true;
 }