function OnLoadPageData()
 {
     # get item to be deleted
     if (!is_object($this->data_object)) {
         $id = $this->manager->GetItemId($this->data_object);
         $this->manager->ReadById(array($id));
         $this->data_object = $this->manager->GetFirst();
     }
     # tidy up
     unset($this->manager);
 }
 function OnLoadPageData()
 {
     # get id of category
     $i_id = $this->o_category_manager->GetItemId();
     # no need to read data if creating a new category
     if ($i_id and !isset($_POST['item'])) {
         # get category
         $this->o_category_manager->ReadById(array($i_id));
         $this->o_category = $this->o_category_manager->GetFirst();
     }
     # tidy up
     unset($this->o_category_manager);
 }