/** * Marks the message as transported * * @param \DMK\Mklog\Domain\Model\DevlogEntryModel $message * * @return void */ protected function markAsTransported(\DMK\Mklog\Domain\Model\DevlogEntryModel $message) { $repo = \DMK\Mklog\Factory::getDevlogEntryRepository(); $repo->persist($message->addTransportId($this->getTransportId())); }
/** * Renders the extra_data column. * * @param DevlogEntryModel $entry * * @return string */ protected function formatExtraDataColumn(DevlogEntryModel $entry) { $extraData = $entry->getExtraDataRaw(); if (empty($extraData)) { return ''; } return sprintf('<a id="log-togggle-%1$s-link" ' . 'href="#log-togggle-%1$s-data" ' . 'onclick="DMK.DevLog.toggleData(%1$s);"' . '>+ show data</a>' . '<pre id="log-togggle-%1$s-data" style="display:none;">%2$s</pre>', $entry->getProperty('uid'), $entry->getExtraData()); }