diff options
author | xue <> | 2006-03-07 03:31:38 +0000 |
---|---|---|
committer | xue <> | 2006-03-07 03:31:38 +0000 |
commit | f80fb0ce53e5aeec66ebf129c007c00faab175d1 (patch) | |
tree | a96a3e19cb268cdf182e3f567272339e32ec876f /demos/composer/protected/pages/Home.php | |
parent | 72bf039357e9137122733c50924130747fd14855 (diff) |
fixed a bug using insertAt().
Diffstat (limited to 'demos/composer/protected/pages/Home.php')
-rw-r--r-- | demos/composer/protected/pages/Home.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/composer/protected/pages/Home.php b/demos/composer/protected/pages/Home.php index 17be1759..d3d02b66 100644 --- a/demos/composer/protected/pages/Home.php +++ b/demos/composer/protected/pages/Home.php @@ -37,13 +37,13 @@ class Home extends TPage {
$property=$this->ClassDefinition->Properties->itemAt($param->CommandParameter);
$this->ClassDefinition->Properties->removeAt($param->CommandParameter);
- $this->ClassDefinition->Properties->insert($param->CommandParameter-1,$property);
+ $this->ClassDefinition->Properties->insertAt($param->CommandParameter-1,$property);
}
else if($param->CommandName==='down')
{
$property=$this->ClassDefinition->Properties->itemAt($param->CommandParameter);
$this->ClassDefinition->Properties->removeAt($param->CommandParameter);
- $this->ClassDefinition->Properties->insert($param->CommandParameter+1,$property);
+ $this->ClassDefinition->Properties->insertAt($param->CommandParameter+1,$property);
}
$this->PropertyList->DataSource=$this->ClassDefinition->Properties;
$this->PropertyList->dataBind();
@@ -59,13 +59,13 @@ class Home extends TPage {
$property=$this->ClassDefinition->Events->itemAt($param->CommandParameter);
$this->ClassDefinition->Events->removeAt($param->CommandParameter);
- $this->ClassDefinition->Events->insert($param->CommandParameter-1,$property);
+ $this->ClassDefinition->Events->insertAt($param->CommandParameter-1,$property);
}
else if($param->CommandName==='down')
{
$property=$this->ClassDefinition->Events->itemAt($param->CommandParameter);
$this->ClassDefinition->Events->removeAt($param->CommandParameter);
- $this->ClassDefinition->Events->insert($param->CommandParameter+1,$property);
+ $this->ClassDefinition->Events->insertAt($param->CommandParameter+1,$property);
}
$this->EventList->DataSource=$this->ClassDefinition->Events;
$this->EventList->dataBind();
|