php-arapi

The easy to use interface for BMC Remedy AR System
6.3/7.0/7.1

Examples

 

Get some fields from one entry

The following code will connect to a server and get two fields from one entry in one form. The field ids for the fields are 2 and 8 in the example.

$Server = new ARAPI( "server", "user", "password" );
$Values = $Server->getentry( "form", "000000000000001", 2, 8 );
foreach( $Value as $k => $v ) {
  echo "<br>".$k."=".$v;
}
$Server->termination();

After getting the values the example will print them.

 

Get fields from more then one entry

$Server = new ARAPI( "server", "user", "password" );
$Values = $Server->getlistentrywithfields( "form", "(1=1)", 2, 8 );
foreach( $myValues as $e => $r ) {
  echo "<br>entry id = ".$e;
  foreach( $r as $k => $v ) {
    echo "<br>".$k." = ".$v;
  }
}
$Server->termination();

After getting the values the example will print them.

Copyright © 2006- core*ar | All Rights Reserved
Jens Yllman | Anders Wilhelm | SourceForge | W3C Validator