Hi Aleksander,
I wrote a little wrapper class for me and that's my TicketGet method:
public function getTicketData ($ticketId)
{
$ticketData = $this->client->__soapCall('Dispatch',
array($this->username, $this->password, "TicketObject", "TicketGet",
"Result", "ARRAY", "UserID", 1, "TicketID", $ticketId));
$data = array();
foreach (array_keys($ticketData) as $key => $val) {
$data[$key] = $ticketData[$val];
}
$td = array();
for ($i = 0; $i < count($data); $i = $i + 2) {
$td[$data[$i]] = $data[$i + 1];
}
return $td;
}
The method returns a hash array, e.g. $ticketData['TicketFreeText5']
hth,
Roy
--
Roy Kaldung
e-mail: [email protected]
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs