Mime::TYPE_HTML, self::CTX_BUFFER => true, self::CTX_LAYOUT => true, self::CTX_FRAGMENT => false, self::CTX_CHKACCESS => NULL ]; } /** * Basic "create instance" hook. * * This hook has no effect until you add the iInstanceModule interface to a child class. By default, it does noting. * * @param int $siteId * @param string $instanceName * @param array $param */ public function createInstance($siteId, $instanceName, array $param = array()) { } /** * Basic "remove instance" hook. * * This hook has no effect until you add the iInstanceModule interface to a child class. * When activated, it removes all instance settings from the websitesettings table. * * @param int $siteId * @param string $instanceName * @param array $param */ public function removeInstance($siteId, $instanceName, array $param = array()) { $db = System::getInstance()->getDB(); $db->table('websitesettings')->delete([ 'site_id' => $siteId, 'instance' => $instanceName ]); System::getInstance()->getCache()->clear(); } }