コード例 #1
0
 /**
  * Executes an Interaction and gathering
  * its results in the HTTP Response Interface
  * as jSON Object or jSON Data Set
  *
  * @param InteractionModel $interaction
  */
 public function executeInteraction(InteractionModel $interaction)
 {
     /* Executes the Interaction process */
     if (!$interaction->prepare()) {
         return;
     }
     $interaction->execute();
     if ($interaction->getData() !== null) {
         $this->setData($interaction->getData());
     }
 }
コード例 #2
0
 /**
  * Does the Interactions Business Logic
  * and stores in an internal Variable;
  *
  * Necessary the business logic and logical operations
  * happens in this method.
  *
  * @param string $httpMethod Interaction HTTP Method
  * @note SearchInteraction uses HTTP Get Method
  */
 public function __construct($httpMethod)
 {
     parent::__construct($httpMethod);
 }