Available methods for Računi (minerva)
Application: minerva
Prefix: invoices
Name: Računi
Example:
// inside ObalaNET 1
$result = $registry->call("invoices/METHOD_NAME", array(PARAMETERS));
// inside ObalaNET 2
$result = $registry->callByPackage("minerva", "METHOD_NAME", array(PARAMETERS));
// XML RPC (http://pear.php.net/package/XML_RPC)
require_once "XML/RPC.php";
$msg = new XML_RPC_Message("invoices.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" => "invoices"));
$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.invoices.METHOD_NAME(PARAMETER_1, PARAMETER_2, PARAMETER_3 ...)
More detailed examples: http://www.drugapisarna.si/wicked/ZunanjaUporaba
commentCallback - Callback for Minerva...
Call: (mixed) commentCallback((integer) id)
Description :
Callback for Minerva comments.
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
id invoice id |
perms - Build permission arr...
Call: (mixed) perms()
Description :
Build permission array
exists - Check if invoice exi...
Call: (mixed) exists((integer) id)
Description :
Check if invoice exists
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
invoice id |
getOne - Gets invoice data...
Call: (mixed) getOne((integer) id)
Description :
Gets invoice data
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
invoice id |
getName - Gets invoice data...
Call: (mixed) getName((integer) id)
Description :
Gets invoice data
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
invoice id |
save - Save or update invoi...
Call: (mixed) save((array) data [ , (integer) id ] )
Description :
Save or update invoice
Parameters:
| Type |
Name |
Documentation |
| array |
data |
invoice data |
| integer |
id |
id invoice id |
getStatus - Gets invoice status...
Call: (mixed) getStatus((integer) id)
Description :
Gets invoice status
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
invoice id |
sendInvoice - Fast send an invoice...
Call: (mixed) sendInvoice((integer) id, (string) to, (string) subject, (string) body [ , (string) types, (string) template ] )
Description :
Fast send an invoice
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
$id invoice id |
| string |
to |
format to convert to |
| string |
subject |
subject of message |
| string |
body |
body of message |
| string |
types |
format to convert to |
| string |
template |
temaplet to use |
getDraft - Get invoice draft...
Call: (mixed) getDraft((integer) id)
Description :
Get invoice draft
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
id draft id |
getTypes - Return available typ...
Call: (mixed) getTypes( [ (mixed) perm ] )
Description :
Return available types
Parameters:
| Type |
Name |
Documentation |
| mixed |
perm |
getStatuses - Return available sta...
Call: (mixed) getStatuses( [ (mixed) perm, (mixed) type ] )
Description :
Return available statuses
Parameters:
| Type |
Name |
Documentation |
| mixed |
perm |
| mixed |
type |
convertInvoice - Convert invoice to a...
Call: (mixed) convertInvoice((integer) id [ , (string) mime, (string) template ] )
Description :
Convert invoice to a desiderated format
Parameters:
| Type |
Name |
Documentation |
| integer |
id |
$id invoice id |
| string |
mime |
format to convert to |
| string |
template |
temaplet to use |
authorizationResponse - Do authorization res...
Call: (mixed) authorizationResponse((mixed) id, (mixed) params)
Description :
Do authorization response. Sends email on authorization status change.
Parameters:
| Type |
Name |
Documentation |
| mixed |
id |
| mixed |
params |
listAlarms - Lists alarms for a g...
Call: (array) listAlarms((integer) time [ , (string) user ] )
Description :
Lists alarms for a given moment.
Parameters:
| Type |
Name |
Documentation |
| integer |
time |
The time to retrieve alarms for. |
| string |
user |
The user to retrieve alarms for. All users if null. |
listTimeObjectCategories - List available time ...
Call: (mixed) listTimeObjectCategories()
Description :
List available time categories
listTimeObjects - Lists invoices as ti...
Call: (mixed) listTimeObjects((array) categories, (mixed) start, (mixed) end)
Description :
Lists invoices 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. |
listCostObjects - List items...
Call: (mixed) listCostObjects( [ (mixed) criteria ] )
Description :
List items
Parameters:
| Type |
Name |
Documentation |
| mixed |
criteria |