/** * Perform the client delete() method. * * @param string $path * * @return array */ protected function delete($path) { return $this->client->delete($path); }
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; }