Exemplo n.º 1
0
 public function search($term)
 {
     $api = new bbApi();
     $bbRepos = $api->getApi("repositories");
     $returnArray = array();
     foreach ($bbRepos->search(null, $term)->repositories as $result) {
         $returnResult = new Result();
         $returnResult->name = $result->name;
         $returnResult->type = "bitbucket";
         $returnResult->url = $this->baseUrl . $result->owner . '/' . $result->name;
         $returnArray[] = $returnResult;
     }
     return $returnArray;
 }
 /**
  * Descendant-usable username check.
  * If the username parameter is null it will return the authenticated user to the referenced parameter, 
  * otherwise it uses the existing user
  * @param	string 	&$username	BitBucket user name
  */
 public function checkUsername(&$username = null)
 {
     $username = $this->api->getAuthenticatedUser();
 }