Beispiel #1
0
 protected function getReview(Object\OnlineShopConfiguration $configuration, $uid, $email, $creationDate)
 {
     $db = \Pimcore\Resource::get();
     $list = new Object\TrustedShopReview\Listing();
     $list->setCondition("uid = " . $db->quote($uid));
     $list->setLimit(1);
     $list->setUnpublished(true);
     $list = $list->load();
     if ($list) {
         $item = $list[0];
     } else {
         $item = new Object\TrustedShopReview();
         $item->setPublished(1);
     }
     $item->setKey(Pimcore\File::getValidFilename($email . "_" . $uid));
     return $item;
 }
Beispiel #2
0
 protected function getObjectTable()
 {
     $object = new Object\TrustedShopReview();
     return 'object_' . $object->getClass()->getId();
 }