Example #1
0
 /**
  * SearchCall constructor.
  *
  * @param \CventQuery\CventConnection $connection
  * @param                             $data
  */
 public function __construct(CventObjectInterface $cventObject)
 {
     parent::__construct(self::SEARCH_CALL_NAME, $cventObject->type());
     $this->cvSearchObject = new stdClass();
     $this->cvSearchObject->SearchType = self::OR_SEARCH;
     $this->filters = [];
 }
Example #2
0
 public function __construct(CventConnection $connection, CventObjectInterface $cventObject)
 {
     // default parameters for the search object
     $this->searchObject = new stdClass();
     $this->searchObject->SearchType = $this->orSearch;
     $this->parameters = new stdClass();
     $this->parameters->ObjectType = $cventObject->type();
     $this->parameters->CvSearchObject = new stdClass();
     $this->parameters->CvSearchObject = $this->searchObject;
     parent::__construct($connection, self::SEARCH_CALL_NAME, $this->parameters);
 }
Example #3
0
 public function __construct(CventObjectInterface $cventObject)
 {
     parent::__construct(self::RETRIEVE_CALL_NAME, $cventObject->type());
 }