projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debug
[Pman.Core]
/
RooPostTrait.php
diff --git
a/RooPostTrait.php
b/RooPostTrait.php
index
a2e1d27
..
3389036
100644
(file)
--- a/
RooPostTrait.php
+++ b/
RooPostTrait.php
@@
-2,6
+2,8
@@
trait Pman_Core_RooPostTrait {
trait Pman_Core_RooPostTrait {
+ var $old;
+
/**
* POST method Roo/TABLENAME
* -- creates, updates, or deletes data.
/**
* POST method Roo/TABLENAME
* -- creates, updates, or deletes data.
@@
-170,7
+172,8
@@
trait Pman_Core_RooPostTrait {
$affects = array();
$affects = array();
- $all_links = $GLOBALS['_DB_DATAOBJECT']['LINKS'][$x->_database];
+ $all_links = $x->databaseLinks();
+
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {
$to = explode(':', $totbl_col);
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {
$to = explode(':', $totbl_col);
@@
-186,8
+189,13
@@
trait Pman_Core_RooPostTrait {
// echo '<PRE>';print_r($affects);exit;
// DB_Dataobject::debugLevel(1);
// echo '<PRE>';print_r($affects);exit;
// DB_Dataobject::debugLevel(1);
-
- $clean = create_function('$v', 'return (int)$v;');
+ if (function_exists('create_function')) {
+ $clean = create_function('$v', 'return (int)$v;');
+ } else {
+ $clean = function($v) {
+ return (int)$v;
+ };
+ }
$bits = array_map($clean, explode(',', $req['_delete']));
$bits = array_map($clean, explode(',', $req['_delete']));