X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RooTrait.php;h=9a929f1ec7a527cfc29d6683860cac046aa4266d;hp=69a8355fb3b3978ae662a19d686e6a44ecc7b0b5;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=4f1f00a7a30e4c42c21fab453dbfb593d367b24e diff --git a/RooTrait.php b/RooTrait.php index 69a8355f..9a929f1e 100644 --- a/RooTrait.php +++ b/RooTrait.php @@ -92,7 +92,7 @@ trait Pman_Core_RooTrait { if (!is_array($id) && empty($id)) { if (method_exists($x, 'toRooSingleArray')) { - $this->jok($x->toRooSingleArray($this->getAuthUser(), $req)); + $this->jok($x->toRooSingleArray($this->authUser, $req)); } if (method_exists($x, 'toRooArray')) { @@ -132,7 +132,7 @@ trait Pman_Core_RooTrait { } // different symantics on all these calls?? if (method_exists($x, 'toRooSingleArray')) { - $this->jok($x->toRooSingleArray($this->getAuthUser(), $req)); + $this->jok($x->toRooSingleArray($this->authUser, $req)); } if (method_exists($x, 'toRooArray')) { $this->jok($x->toRooArray($req)); @@ -159,8 +159,6 @@ trait Pman_Core_RooTrait { 'distinct' => $distinct )); - print_R($do);exit; - $this->countWhat = $ret['count']; $this->cols = $ret['cols']; $this->colsJname = $ret['join_names']; @@ -173,7 +171,7 @@ trait Pman_Core_RooTrait { { if (method_exists($x, 'applyFilters')) { // DB_DataObject::debugLevel(1); - if (false === $x->applyFilters($q, $this->getAuthUser(), $this)) { + if (false === $x->applyFilters($q, $this->authUser, $this)) { return; } } @@ -259,7 +257,7 @@ trait Pman_Core_RooTrait { $x->whereAdd("(on_id = $oid OR on_id IN ( SELECT distinct(id) FROM Documents WHERE original = $o ) )"); - continue; + continue 2; } $x->on_id = $val; @@ -283,7 +281,7 @@ trait Pman_Core_RooTrait { } - continue; + continue 2; } } if (!empty($q_filtered)) { @@ -312,7 +310,7 @@ trait Pman_Core_RooTrait { return; } - if (Pman::$permitError) { + if (self::$permitError) { return; @@ -370,7 +368,7 @@ trait Pman_Core_RooTrait { if (!method_exists($obj, 'checkPerm')) { return true; } - if ($obj->checkPerm($lvl, $this->getAuthUser(), $req)) { + if ($obj->checkPerm($lvl, $this->authUser, $req)) { return true; }