/**
  * This function prints the status of the REST client in a FORCE Logger message.
  */
 public static function printStatus()
 {
     if (!self::$ISCONNECTED) {
         Logger::force("The status of the REST client:<br/>" . "<strong>You are not connected.</strong>");
     } else {
         Logger::force("The status of the REST client:<br/>" . "<strong>host</strong>: <i>" . self::$HOST . "</i><br/>" . "<strong>shop</strong>: <i>" . self::$SHOP . "</i><br/>" . "<strong>authToken</strong>: <i>" . self::$AUTHTOKEN . "</i>");
     }
 }
 /**
  * This function prints the filter in a FORCE message.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.0.0
  * @since 0.1.0 Use a default Locale and Currency.
  * @since 0.1.1 To print the product filter echo the object itself.
  * @deprecated To print the product filter echo the object itself.
  */
 public function printFilter()
 {
     Logger::force($this);
 }
Beispiel #3
0
 /**
  * Prints the connection status via "FORCE".
  *
  * This function will print the current values of the REST client.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.0.0
  * @since 0.1.1 Echo the object itself to see all values setted.
  * @deprecated Echo the object itself to see all values setted.
  */
 public function printStatus()
 {
     Logger::force(RESTClient);
 }
 /**
  * This function prints the status of the REST client in a FORCE Logger message.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.0.0
  * @since 0.1.1 Echo the object itself to see all values setted.
  * @deprecated Echo the object itself to see all values setted.
  */
 public static function printStatus()
 {
     Logger::force(self);
 }
 /**
  * This function prints the filter in a NOTIFICATION message.
  *
  * @author David Pauli <*****@*****.**>
  * @since 0.0.0
  * @since 0.1.0 Use a default Locale and Currency.
  * @api
  */
 public function printFilter()
 {
     $message = array();
     if (!InputValidator::isEmpty($this->page)) {
         array_push($message, "Page: " . $this->page);
     }
     if (!InputValidator::isEmpty($this->resultsPerPage)) {
         array_push($message, "Results per page: " . $this->resultsPerPage);
     }
     if (!InputValidator::isEmpty($this->direction)) {
         array_push($message, "Direction: " . $this->direction);
     }
     if (!InputValidator::isEmpty($this->sort)) {
         array_push($message, "Sort: " . $this->sort);
     }
     if (!InputValidator::isEmpty($this->q)) {
         array_push($message, "Search string: " . $this->q);
     }
     if (!InputValidator::isEmpty($this->categoryID)) {
         array_push($message, "Category ID: " . $this->categoryID);
     }
     foreach ($this->IDs as $number => $id) {
         array_push($message, "Product id" . $number . ": " . $id);
     }
     Logger::force($message);
 }