Skip to content

Commit

Permalink
[Update] Add possibility to read user details
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Nov 16, 2022
1 parent ab15b98 commit 62f6e11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Controller/ReadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ReadController extends AbstractOnOfficeController
/**
* Controller entry
*/
public function run(string $module, $id=null, ?int $view=null, array $arrDefaultParam=[], bool $asArray=false)
public function run(string $module, $id=null, ?int $view=null, array $arrDefaultParam=[], bool $asArray=false, bool $blnAddressId=false)
{
$apiOptions = new ApiOptions(Options::MODE_READ);

Expand Down Expand Up @@ -266,6 +266,16 @@ public function run(string $module, $id=null, ?int $view=null, array $arrDefault
{
$userParameter['data'] = ['Nachname'];
}

// Get addressId
if ($blnAddressId)
{
$userParameter['data'] = [
'adrId:adressen.ID',
'Name',
'Kuerzel'
];
}

$data = $this->call(
onOfficeSDK::ACTION_ID_READ,
Expand Down

0 comments on commit 62f6e11

Please sign in to comment.