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;
}
}