Exemplo n.º 1
0
 /**
  * Loads this tag from the database
  *
  * @param string $id the database identifier of this tag. This should be
  *                    a numeric string.
  *
  * @return boolean true if this tag was loaded and false if this tag was
  *                  not loaded.
  */
 public function load($id)
 {
     $id = intval($id);
     $loaded = false;
     if ($this->data_object->load($id)) {
         $this->id = $this->data_object->id;
         $this->name = $this->data_object->name;
         $this->title = $this->data_object->title;
         $this->event = $this->data_object->event;
         $this->order_manually = $this->data_object->order_manually;
         $this->createdate = $this->data_object->createdate;
         $loaded = true;
     }
     return $loaded;
 }