Community Documentation

5/ The SL object

Last updated December 23, 2008. Created by ssm2017 Binder on December 23, 2008.
Log in to edit this page.

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

Page status

Needs updating

Log in to edit this page

About this page

Drupal version
Drupal 5.x, Drupal 6.x

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.