コード例 #1
0
 /**
  * @return Ranking[]
  * @throws InvalidResponseException
  */
 public function getRanking()
 {
     $response = $this->api->request('competities/' . $this->TeamId . '/' . $this->District . '/' . $this->CompId . '/' . $this->ClassId . '/' . $this->PouleId . '/ranking');
     $ranking = array();
     foreach ($response['List'] as $item) {
         $ranking[] = $this->api->map($item, new Ranking());
     }
     return $ranking;
 }
コード例 #2
0
 /**
  * @param  string   $comptype Van welke competitie type moet de stand worden terug gegeven
  * @return Competition[]
  * @throws InvalidResponseException
  */
 public function getCompetitions($comptype = null)
 {
     $params = [];
     if ($comptype !== null) {
         $params['comptype'] = $comptype;
     }
     $response = $this->api->request('competities/' . $this->getId(), $params);
     $competitions = array();
     foreach ($response['List'] as $item) {
         $competition = new Competition($this->api);
         $competition->TeamId = $this->getId();
         $competitions[] = $this->api->map($item, $competition);
     }
     return $competitions;
 }
コード例 #3
0
ファイル: ApiController.php プロジェクト: sov-20-07/billing
 function request()
 {
     DB::escapePost();
     $_SESSION['iuser']['token'] = Api::getToken();
     $error = Api::request();
     print "Action REQUEST<br> Try connecting to 4myself...<BR><BR>";
     if ($error) {
         print "Error: insufficient funds";
     }
     /*if($_POST){
     			
     		}else{
     			$this->redirect(Funcs::$conf['settings']['source']);
     		}*/
 }
コード例 #4
0
ファイル: Entrada.php プロジェクト: flafuente/parrillas
 private function syncTribo()
 {
     $data = array("programaId" => $this->programaId, "capitulo" => $this->capitulo, "titulo" => $this->titulo, "id" => $this->id);
     Api::request("programas/syncParrillas", $data);
 }
コード例 #5
0
ファイル: Paginator.php プロジェクト: runt18/github-api-1
 private function load()
 {
     if ($this->response === NULL) {
         $this->response = $this->api->request($this->request);
     }
 }
コード例 #6
0
 /**
  * @return Banner
  */
 public function getBanner()
 {
     $response = $this->api->request('banners');
     return $this->api->map($response['List'], new Banner());
 }
コード例 #7
0
ファイル: entradas.php プロジェクト: flafuente/parrillas
 public function ajaxProgramas()
 {
     $res = Api::request("programas/entradas", array("q" => $_REQUEST["q"]));
     $this->ajax(array("programas" => $res->programas));
 }