google-code-export / zfdebug

Automatically exported from code.google.com/p/zfdebug
Other
1 stars 1 forks source link

Auth_plugin #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Maybe you should extend the getTab methodto to offer array injection?!

something like...:

if (is_object($identity)) { 
            $username = $this->_auth->getIdentity()->{$this->_user};
            $role = $this->_auth->getIdentity()->{$this->_role};
        } 
 else if (is_array($identity)) {
            $username = $identity[$this->_user];
            $role = $identity[$this->_role];
        }

Original issue reported on code.google.com by ketch...@googlemail.com on 16 Aug 2010 at 5:55