opensrs\OMA\GetUserAttributeHistory::call PHP Method

call() public static method

public static call ( $data )
    public static function call($data)
    {
        if (self::validate($data)) {
            return OMA::send_cmd('get_user_attribute_history', $data);
        }
    }

Usage Example

<?php

require __DIR__ . '/../../vendor/autoload.php';
use opensrs\OMA\GetUserAttributeHistory;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    require_once dirname(__FILE__) . '/../../opensrs/openSRS_loader.php';
    // Put the data to the Formatted array
    $callArray = array('user' => $_POST['user'], 'attribute' => $_POST['attribute']);
    if (!empty($_POST['token'])) {
        $callArray['token'] = $_POST['token'];
    }
    // Open SRS Call -> Result
    $response = GetUserAttributeHistory::call($callArray);
    // Print out the results
    echo ' In: ' . json_encode($callArray) . '<br>';
    echo 'Out: ' . $response;
} else {
    // Format
    if (isset($_GET['format'])) {
        $tf = $_GET['format'];
    } else {
        $tf = 'json';
    }
    ?>

<?php 
    include 'header.inc';
    ?>
<div class="container">
<h3>get_user_attribute_history</h3>
<form action="" method="post" class="form-horizontal" >
GetUserAttributeHistory