Beispiel #1
0
 private function copyObjectToTrashBin()
 {
     $id = $this->getId();
     if (!($trashBin = PcTrashbinListPeer::retrieveByPK($id))) {
         $trashBin = new PcTrashbinList();
     }
     $trashBin->setId($this->getId())->setCreatorId($this->getCreatorId())->setTitle($this->getTitle())->setSortOrder($this->getSortOrder())->setIsHeader($this->isHeader())->setIsInbox($this->isInbox())->setIsTodo($this->isTodo())->setUpdatedAt($this->getUpdatedAt())->setCreatedAt($this->getCreatedAt())->setDeletedAt(time('U'))->save();
 }