function __construct() { $this->db = KY::getDB(); }
function deleteAssociatedJob($id, $entityType) { $sql = "DELETE FROM ky_kybackup_job_configuration WHERE " . $entityType . "Id=" . $id; KY::getDB()->query($sql); }
<?php include 'config.php'; KY::init(); KY::getText()->setLanguage($language); KY::getDB()->connect($mysql_host, $mysql_user, $mysql_pass, $mysql_db); KY::getView()->setBasePath($viewPath); KY::getRoute()->setBaseUrl($baseurl); KY::getRoute()->setUrlVar($urlVarName); include 'routes.php'; KY::getView()->draw('header'); $currentRoute = KY::getRoute()->getCurrentRoute(); KY::getRoute()->loadRoute($currentRoute);