Available methods for Prijave (whups)
Application: whups
Prefix: tickets
Name: Prijave
Example:
// inside ObalaNET 1
$result = $registry->call("tickets/METHOD_NAME", array(PARAMETERS));
// inside ObalaNET 2
$result = $registry->callByPackage("whups", "METHOD_NAME", array(PARAMETERS));
// XML RPC (http://pear.php.net/package/XML_RPC)
require_once "XML/RPC.php";
$msg = new XML_RPC_Message("tickets.METHOD_NAME", PARAMETERS);
$cli = new XML_RPC_Client("/rpc.php", "http://HOSTNAME");
$resp = $cli->send($msg);
$val = $resp->value();
$result = XML_RPC_decode($val);
// XML RPC 2 (http://pear.php.net/package/XML_RPC2)
require_once "XML/RPC2/Client.php";
$client = XML_RPC2_Client::create("http://HOSTNAME/rpc.php", array("prefix" => "tickets"));
$result = $client->METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...);
// Python Example (http://wiki.horde.org/XmlRpcPythonHowTo)
import xmlrpclib
url = "http://HOSTNAME/rpc.php"
server = xmlrpclib.ServerProxy(url, verbose=0)
result = server.tickets.METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...)
More detailed examples: http://www.drugapisarna.si/wicked/ZunanjaUporaba
perms - ...
Call: (mixed) perms()
browse - Browse through Whups...
Call: (array) browse( [ (string) path ] )
Description :
Browse through Whups' object tree.
Parameters:
| Type |
Name |
Documentation |
| string |
path |
The level of the tree to browse. |
list - ...
Call: (mixed) list()
add - ...
Call: (mixed) add((mixed) name)
Parameters:
| Type |
Name |
Documentation |
| mixed |
name |
addComment - ...
Call: (mixed) addComment((mixed) ticket_id, (mixed) comment [ , (mixed) group ] )
Parameters:
| Type |
Name |
Documentation |
| mixed |
ticket_id |
| mixed |
comment |
| mixed |
group |
get_assigned_ticket_ids - ...
Call: (mixed) get_assigned_ticket_ids()
get_requested_ticket_ids - ...
Call: (mixed) get_requested_ticket_ids()
get_schema - ...
Call: (mixed) get_schema()
addTicket - ...
Call: (mixed) addTicket((mixed) ticket_info)
Parameters:
| Type |
Name |
Documentation |
| mixed |
ticket_info |
add_tickets - ...
Call: (mixed) add_tickets((mixed) ticket_info_array)
Parameters:
| Type |
Name |
Documentation |
| mixed |
ticket_info_array |
updateTicket - ...
Call: (mixed) updateTicket((mixed) ticket_id, (mixed) ticket_info)
Parameters:
| Type |
Name |
Documentation |
| mixed |
ticket_id |
| mixed |
ticket_info |
set_ticket_attributes - ...
Call: (mixed) set_ticket_attributes((mixed) info)
Parameters:
| Type |
Name |
Documentation |
| mixed |
info |
getListTypes - ...
Call: (mixed) getListTypes()
listAs - ...
Call: (mixed) listAs((mixed) type)
Parameters:
| Type |
Name |
Documentation |
| mixed |
type |
listQueues - ...
Call: (mixed) listQueues()
getQueueDetails - ...
Call: (mixed) getQueueDetails((mixed) queue)
Parameters:
| Type |
Name |
Documentation |
| mixed |
queue |
listVersions - ...
Call: (mixed) listVersions((mixed) queue)
Parameters:
| Type |
Name |
Documentation |
| mixed |
queue |
addVersion - ...
Call: (mixed) addVersion((mixed) queue, (mixed) name, (mixed) description)
Parameters:
| Type |
Name |
Documentation |
| mixed |
queue |
| mixed |
name |
| mixed |
description |
getVersionDetails - ...
Call: (mixed) getVersionDetails((mixed) version_id)
Parameters:
| Type |
Name |
Documentation |
| mixed |
version_id |
getTicketDetails - ...
Call: (mixed) getTicketDetails((mixed) queue_id [ , (mixed) state ] )
Parameters:
| Type |
Name |
Documentation |
| mixed |
queue_id |
| mixed |
state |
listCostObjects - ...
Call: (mixed) listCostObjects((mixed) criteria)
Parameters:
| Type |
Name |
Documentation |
| mixed |
criteria |
listTimeObjectCategories - ...
Call: (mixed) listTimeObjectCategories()
listTimeObjects - Lists tickets with d...
Call: (mixed) listTimeObjects((array) categories, (mixed) start, (mixed) end)
Description :
Lists tickets with due dates as time objects.
Parameters:
| Type |
Name |
Documentation |
| array |
categories |
The time categories (from listTimeObjectCategories) to list. |
| mixed |
start |
The start date of the period. |
| mixed |
end |
The end date of the period. |