예제 #1
0
 /**
  * Perform the client delete() method.
  *
  * @param string $path
  *
  * @return array
  */
 protected function delete($path)
 {
     return $this->client->delete($path);
 }
예제 #2
0
 public function billingCategory()
 {
     $issueId = 50620;
     $client = new Client("https://portal.optimusinfo.com/redmine/", 'vikas.singhal', 'vzi950');
     $timeEntries = $client->api('time_entry')->all(array('issue_id' => $issueId));
     //echo "<pre>";print_r($timeEntries);die;
     $billingCategory = new BillingCategory();
     foreach ($timeEntries['time_entries'] as $key => $entry) {
         foreach ($entry['custom_fields'] as $key => $value) {
             $billingCategory->exchangeArray($value);
             $this->getBillingCategoryTable()->saveBillingCategory($billingCategory);
         }
     }
     return true;
 }