<?php
namespace App\Model\DataObject;
use Pimcore\Model\DataObject\ClassDefinition;
use App\Services\ObjectServices;
use Pimcore\Model\DataObject\Pricing;
use Pimcore\Tool;
abstract class AbstractPricing extends \Pimcore\Model\DataObject\Concrete
{
const CLASS_ID = 'pricing';
public function getJson($hiddenFields = [])
{
$classData = ClassDefinition::getById(self::CLASS_ID);
$jsonDetail = ObjectServices::getJsonDetail($this, $classData, $hiddenFields);
$createDate = date("d/m/Y", $this->getCreationDate());
$jsonDetail['createDate'] = $createDate;
return $jsonDetail;
}
}