Pimcore\Model\Object\ClassDefinition\Data::setDropNullValues PHP Метод

setDropNullValues() публичный статический Метод

public static setDropNullValues ( $dropNullValues )
$dropNullValues
    public static function setDropNullValues($dropNullValues)
    {
        self::$dropNullValues = $dropNullValues;
    }

Usage Example

 public function init()
 {
     if ($this->getParam("condense")) {
         Object\ClassDefinition\Data::setDropNullValues(true);
         Webservice\Data\Object::setDropNullValues(true);
     }
     $profile = $this->getParam("profiling");
     if ($profile) {
         $startTs = microtime(true);
     }
     parent::init();
     $this->disableViewAutoRender();
     $this->service = new Webservice\Service();
     // initialize json encoder by default, maybe support xml in the near future
     $this->encoder = new Webservice\JsonEncoder();
     if ($profile) {
         $this->timeConsumedInit = round(microtime(true) - $startTs, 3) * 1000;
     }
 }