public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return (int) $this->_identifier["id"];
     }
     $this->__load();
     return parent::getId();
 }
Beispiel #2
0
 public function setExistingChronicle(Chronicle $chronicle)
 {
     $this->setDefaults(array("id" => $chronicle->getId(), "title" => $chronicle->getTitle(), "keywords" => $chronicle->getKeywords(), "text" => $chronicle->getText(), "link" => $chronicle->getLink(), "link_type" => $chronicle->getLink_type(), "user_id" => $chronicle->getGroup()->getId(), "image" => $chronicle->getImage(), "type" => $chronicle->getType_id(), "user_id" => $chronicle->getUser()->getId(), "group_id" => $chronicle->getGroup()->getId()));
     if ($chronicle->getTag()) {
         $this->setDefault("tag_id", $chronicle->getTag()->getId());
     }
     if ($chronicle->getBook()) {
         $this->setDefault("book_id", $chronicle->getBook()->getId());
     }
 }