public function ajaxResponse(\AjaxResponseObject $ajaxResponseObject) { /* get the sample text for a block identified by $this->id */ $block = new \Worksheet\Block($this->id); $creationTime = $block->getCreationTime(); $value = time() - $creationTime; $rawHtml = new \Widgets\RawHtml(); $rawHtml->setHtml($value); $ajaxResponseObject->addWidget($rawHtml); $ajaxResponseObject->setStatus("ok"); return $ajaxResponseObject; }