+ function checkDebug($req = false)
+ {
+ $req = $req === false ? $_REQUEST : $req;
+ if (isset($req['_debug'])
+ &&
+ $this->authUser
+ &&
+ (
+ (
+ method_exists($this->authUser,'canDebug')
+ &&
+ $this->authUser->canDebug()
+ )
+ ||
+ (
+
+ method_exists($this->authUser,'groups')
+ &&
+ is_a($this->authUser, 'Pman_Core_DataObjects_Person')
+ &&
+ in_array('Administrators', $this->authUser->groups('name'))
+ )
+ )
+
+ ){
+ DB_DAtaObject::debuglevel((int)$req['_debug']);
+ }
+
+ }
+