src/Model/DataObject/AbstractPricing.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Model\DataObject;
  3. use Pimcore\Model\DataObject\ClassDefinition;
  4. use App\Services\ObjectServices;
  5. use Pimcore\Model\DataObject\Pricing;
  6. use Pimcore\Tool;
  7. abstract class AbstractPricing extends \Pimcore\Model\DataObject\Concrete
  8. {
  9.     const CLASS_ID 'pricing';
  10.     public function getJson($hiddenFields = [])
  11.     {
  12.         $classData ClassDefinition::getById(self::CLASS_ID);
  13.         $jsonDetail ObjectServices::getJsonDetail($this$classData$hiddenFields);
  14.         $createDate date("d/m/Y"$this->getCreationDate());
  15.         $jsonDetail['createDate'] = $createDate;
  16.         return $jsonDetail;
  17.     }
  18. }