/**
  * Load the objects for the page.
  * @return boolean
  */
 protected function loadObjects()
 {
     parent::loadObjects();
     if (!$this->get_exists('id')) {
         $this->userMessage("Invalid Training Provider Requested");
         return false;
     }
     if ($this->get_exists('id')) {
         $id = $this->get('id');
         if (strpos($id, '|') === false) {
             I2CE::raiseError("Deprecated use of id variable");
             $id = 'provider_instance|' . $id;
         }
     } else {
         $id = 'provider_instance|0';
     }
     $this->instance = $this->factory->createContainer($id);
     $this->instance->populate();
 }
 /**
  * Load the objects for the page.
  * This loads the person object based on the ID passed to the page.
  * @return boolean
  */
 protected function loadObjects()
 {
     parent::loadObjects();
     if (array_key_exists('HTTP_HOST', $_SERVER)) {
         if (!$this->get_exists('id')) {
             $this->userMessage("Invalid person id provided.");
             return false;
         }
         $this->person = $this->factory->createContainer($this->get('id'));
         if (!$this->person instanceof iHRIS_Person) {
             $this->userMessage("Invalid id passed to education upload page.");
             return false;
         }
         $this->person->populate();
     }
     return true;
 }