Skip to content

Commit 495a1b8

Browse files
committed
documentation for functions
1 parent 3f3d62d commit 495a1b8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

functions/sap_connect.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Creates a connection to a SAP backend.
5+
* For documentation regarding logon parameters see the demo sapnwrfc.ini
6+
* provided by your SAP Netweaver RFC SDK (available from SAP Marketplace).
7+
*
8+
* @param array $logonParameters
9+
*
10+
* @return resource
11+
*
12+
* @throws InvalidArgumentException If empty array provided
13+
* @throws SapConnectionException For invalid logon parameters or other error occured
14+
*/
15+
function sap_connect(array $logonParameters) {}

functions/sap_invoke_function.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
/**
4+
* Invokes a remote enabled function module on the backend and returns it's export parameters.
5+
*
6+
* @param string $name The remote function name to invoke
7+
* @param array|null $imports import parameters
8+
* @param bool|null $rtrim right-trim string fields, if null the global .ini setting will be used
9+
*
10+
* @return array export/changing/table parameters for this function
11+
*
12+
* @throws InvalidArgumentException if $connection is not a valid SAP Connection resource
13+
* @throws LogicException if no connection available, or function's description has not been fetched
14+
* through a Sap object
15+
* @throws SapException RFC raised exception or other error occured
16+
*/
17+
function sap_invoke_function(string $name, $connection, array $imports = null, bool $rtrim = null): array {}

0 commit comments

Comments
 (0)