/** * Constructor */ function SAPFunction($fce = false) { parent::SAP(); if ($fce) { $this->rfc = false; $this->fce = $fce; $this->name = @saprfc_function_name($this->fce); $this->exception = ""; $this->server = true; $this->bapi = substr($this->name, 0, 4) == "BAPI"; $this->def = $this->GetDefinition(); $this->InitVars(); } }
/** * Constructor */ function SAPTable($fce, $name) { parent::SAP(); $this->fce = $fce; $this->name = $name; if ($this->fce) { $def = @saprfc_function_interface($this->fce); if (is_array($def)) { $ix = 0; while ($ix < count($def) && !($def[$ix][name] == $name && $def[$ix][type] == "TABLE")) { $ix++; } if ($ix != count($def)) { $members =& $def[$ix][def]; for ($j = 0; $j < count($members); $j++) { $this->rowStruct[] = $members[$j][name]; } } } $this->Rows(); } }
/** * Constructor */ function SAPConnection() { parent::SAP(); }