13 lines
356 B
PHP
Executable File
13 lines
356 B
PHP
Executable File
<?php
|
|
|
|
class LogicHook {
|
|
//Test Logic Function
|
|
function before_delete_method(&$focus, $event, $arguments) {
|
|
$db = $GLOBALS['db'];
|
|
$zap = $db->query("select * from ecmtransactions_rel where (ecmtransaction_a_id='" . $focus->id . "' OR ecmtransaction_b_id='" . $focus->id . "')");
|
|
while ($res = $db->fetchByAssoc($zap)) {
|
|
$db->query("");
|
|
}
|
|
}
|
|
|
|
} |