}
// deleteOrg deletes data for the entire organization from database permanently.
- static function deleteOrg() {
- return false; // Work in progress, currently not implemented.
-
+ // Work in progress, currently not fully implemented.
+ static function deleteOrg($org_id) {
// We shall do it in a straightforward way by a delete operation from all tables by org_id.
// However, at this time not all tables have org_id.
// So, we need to add the field as we write code here.
+
+ // Delete monthly quotas.
+ $sql = "delete from tt_monthly_quotas where org_id = $org_id";
+ $affected = $mdb2->exec($sql);
+ if (is_a($affected, 'PEAR_Error')) return false;
+
+ return true; // Work in progress, currently not fully implemented.
}
}
$affected = $mdb2->exec($sql);
if (is_a($affected, 'PEAR_Error')) return false;
+ // Delete monthly quotas.
+ $sql = "delete from tt_monthly_quotas where group_id = $group_id";
+ $affected = $mdb2->exec($sql);
+ if (is_a($affected, 'PEAR_Error')) return false;
+
// Delete group.
$sql = "delete from tt_groups where id = $group_id";
$affected = $mdb2->exec($sql);
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.15.4436 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.15.4437 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>