示例#1
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());
     }
 }
 public function getTitle()
 {
     $this->__load();
     return parent::getTitle();
 }