|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * File src/IConfig.php |
| 4 | + * |
| 5 | + * Basic configuration interface. |
| 6 | + * |
| 7 | + * @package interfaces |
| 8 | + * @author Gregor J. |
| 9 | + * @license MIT |
| 10 | + */ |
| 11 | + |
| 12 | +namespace phpsap\interfaces; |
| 13 | + |
| 14 | +/** |
| 15 | + * Interface IConfig |
| 16 | + * |
| 17 | + * Interface to configure basic connection parameters for SAP remote function calls. |
| 18 | + * |
| 19 | + * @package phpsap\interfaces |
| 20 | + * @author Gregor J. |
| 21 | + * @license MIT |
| 22 | + */ |
| 23 | +interface IConfig |
| 24 | +{ |
| 25 | + /** |
| 26 | + * If the connection needs to be made through a firewall using a SAPRouter, |
| 27 | + * specify the SAPRouter parameters in the following format: |
| 28 | + * /H/hostname/S/portnumber/H/ |
| 29 | + * @return string the saprouter |
| 30 | + */ |
| 31 | + public function getSaprouter(); |
| 32 | + |
| 33 | + /** |
| 34 | + * Get the trace level (0-3) |
| 35 | + * @return int the trace level |
| 36 | + */ |
| 37 | + public function getTrace(); |
| 38 | + |
| 39 | + /** |
| 40 | + * Only needed it if you want to connect to a non-Unicode backend using a |
| 41 | + * non-ISO-Latin-1 user name or password. The RFC library will then use that |
| 42 | + * codepage for the initial handshake, thus preserving the characters in |
| 43 | + * username/password. |
| 44 | + * |
| 45 | + * @return int the codepage |
| 46 | + */ |
| 47 | + public function getCodepage(); |
| 48 | + |
| 49 | + /** |
| 50 | + * Get the username to use for authentication. |
| 51 | + * @return string the username |
| 52 | + */ |
| 53 | + public function getUser(); |
| 54 | + |
| 55 | + /** |
| 56 | + * Get the password to use for authentication. |
| 57 | + * @return string the password |
| 58 | + */ |
| 59 | + public function getPasswd(); |
| 60 | + |
| 61 | + /** |
| 62 | + * Get the destination in RfcOpen. |
| 63 | + * @return string Get the destination in RfcOpen. |
| 64 | + */ |
| 65 | + public function getClient(); |
| 66 | + |
| 67 | + /** |
| 68 | + * Get the logon Language. |
| 69 | + * @return string the logon language |
| 70 | + */ |
| 71 | + public function getLang(); |
| 72 | + |
| 73 | + /** |
| 74 | + * Get the destination in RfcOpenConnection. |
| 75 | + * @return string the logon language |
| 76 | + */ |
| 77 | + public function getDest(); |
| 78 | + |
| 79 | + /** |
| 80 | + * Generate the configuration needed for connecting. |
| 81 | + * @return mixed |
| 82 | + */ |
| 83 | + public function generateConfig(); |
| 84 | +} |
0 commit comments