Thread: Scheduleevent
View Single Post
  #4  
Old 03-17-2007, 09:54 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Chandler View Post
HTML Code:
function onCreated()
  this.scheduleevent(5, "removeImages", {300, 301});
function onRemoveImages(imageIndexs)
  echo(temp.imageIndexs);
returns:
PHP Code:
300 
Doesn't transmit array types?
It passes them as separate params:
HTML Code:
function onCreated() {
  this.scheduleEvent(1, "Test", {"param0", "param1"});
}

function onTest() {
  echo(params[0]);
  echo(params[1]);
}
Returns:
param0
param1

You can get around this by doing an array in an array:
HTML Code:
function onCreated() {
  this.scheduleEvent(1, "Test", { {"param0", "param1"} });
}

function onTest() {
  echo(params[0]);
}
returns:
param0,param1
Reply With Quote