Skip to content
shahariaazam edited this page Sep 10, 2014 · 1 revision

Get details of a specific User

<?php
require_once 'vendor/autoload.php';

use OpenErp\Modules\HumanResource\User;

$user = new User(USERNAME, PASSWORD, DATABASE, SERVER);
$result = $user->read(5);
var_dump($result); die();

The above example will display all the res.user model fields. If you want to get any specific fields then just call $user->read(5, array('Your', 'Specific', 'Fields', 'name')); then you will get the specific fields result instead of all fields.

Clone this wiki locally