/** * Logs a message to the History tab of the Cblock * * @param string $message Message */ public function log($message) { if ($this->history) { $extensionManager = new ExtensionMgr(); $extensionInfo = $this->getInfo(); $this->history->add(HISTORYTYPE_CO, $extensionManager->getIdByCode($extensionInfo['CODE']), $message, 'TXT_EXTENSION_H_LOGENTRY'); } }