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);
 }
 public function OnLoadPageData()
 {
     $id = $this->school_manager->GetItemId();
     $this->school_manager->ReadById(array($id));
     $this->school = $this->school_manager->GetFirst();
     unset($this->school_manager);
     $this->ground_manager->ReadGroundForSchool($this->school);
     $ground = $this->ground_manager->GetFirst();
     if ($ground instanceof Ground) {
         $this->school->Ground()->SetId($ground->GetId());
         $this->school->Ground()->SetAddress($ground->GetAddress());
     }
 }