コード例 #1
0
ファイル: ApiClient.php プロジェクト: riyadennis/my_civicrm
 /**
  * @param array $appMeta
  * @param CxnStore\CxnStoreInterface $cxnStore
  */
 public function __construct($appMeta, $cxnStore, $cxnId)
 {
     parent::__construct(NULL, $cxnStore);
     $this->appMeta = $appMeta;
     $this->cxnId = $cxnId;
     $this->http = new Http\PhpHttp();
 }
コード例 #2
0
ファイル: RegistrationServer.php プロジェクト: kidaa30/yes
 /**
  * @param array $appMeta
  * @param array $keyPair
  * @param CxnStore\CxnStoreInterface $cxnStore
  *
  * TODO Change contract, passing in AppStoreInterface instead of appMeta/keyPair.
  * This will allow hosting multiple apps in the same endpoint.
  */
 public function __construct($appMeta, $keyPair, $cxnStore)
 {
     if (empty($keyPair)) {
         throw new CxnException("Missing keyPair");
     }
     if (empty($keyPair)) {
         throw new CxnException("Missing cxnStore");
     }
     parent::__construct(NULL, $cxnStore);
     $this->appStore = new SingletonAppStore($appMeta['appId'], $appMeta, $keyPair['privatekey'], $keyPair['publickey']);
 }
コード例 #3
0
 /**
  * @param CxnStore\CxnStoreInterface $cxnStore
  *   The place to store active connections.
  * @param string $siteUrl
  *   The callback URL used when the app wishes to send an API call to the site.
  */
 public function __construct($cxnStore, $siteUrl)
 {
     parent::__construct(NULL, $cxnStore);
     $this->siteUrl = $siteUrl;
 }
コード例 #4
0
 /**
  * @param CxnStore\CxnStoreInterface $cxnStore
  *   The place to store active connections.
  * @param string $siteUrl
  *   The callback URL used when the app wishes to send an API call to the site.
  * @param string|NULL $viaPort
  *   If $siteUrl is behind a firewall or otherwise unrouteable, you can
  *   specify a proxy for any callback messages.
  *   Ex: "123.123.123.123:456".
  *   Ex: "proxy.example.com:789"
  *   Ex: "dhcp123.isp.example.net:456"
  */
 public function __construct($cxnStore, $siteUrl, $viaPort = NULL)
 {
     parent::__construct(NULL, $cxnStore);
     $this->siteUrl = $siteUrl;
     $this->viaPort = $viaPort;
 }
コード例 #5
0
ファイル: ApiServer.php プロジェクト: riyadennis/my_civicrm
 /**
  * @param CxnStore\CxnStoreInterface $cxnStore
  */
 public function __construct($cxnStore, $router = NULL)
 {
     parent::__construct(NULL, $cxnStore);
     $this->router = $router;
 }