5/ The SL object

Last modified: December 23, 2008 - 19:17

The "sl" object is containing values that can be shared between the functions and modules.

default properties :

  $sl->objectkey  : the uuid key of the object that called the website
  $sl->objectname : the name of the object that called the website
  $sl->ownerkey : the uuid key of the owner of the object that called the website
  $sl->ownername  : the username of the owner of the object that called the website
  $sl->region  : the region ( sim ) informations where is the object that called the website
  $sl->position : the position on the sim of the object that called the website
  $sl->app : the module name to call
  $sl->cmd : the command name for the module
  $sl->arg : optionnal arguments as an array of key/value
  $sl->region_name = the name of the region where is the object that called the website
  $sl->region_x : absolute x position of the object that called the website
  $sl->region_y : absolute y position of the object that called the website
  $sl->position_x : the sim relative x position of the object that called the website
  $sl->position_y : the sim relative y position of the object that called the website
  $sl->position_z : the sim relative z position of the object that called the website

called module defined properties :

  $sl->response['app'] : the app name used
  $sl->response['cmd'] : the command used
  $sl->repsonse['message'] : a message to send to the lsl script

 
 

Drupal is a registered trademark of Dries Buytaert.