Add php files
This commit is contained in:
13
modules/EcmTransactions/LogicHook.php
Executable file
13
modules/EcmTransactions/LogicHook.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<?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("");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user