From: <gem...@li...> - 2011-11-15 14:28:53
|
Revision: 220 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=220&view=rev Author: mennodekker Date: 2011-11-15 14:28:47 +0000 (Tue, 15 Nov 2011) Log Message: ----------- Regenerate sessionId on logout Changed organization object to allow ->org_id etc. for easy access to content docblock fix for result of user->authenticate Modified Paths: -------------- trunk/library/classes/Gems/Default/IndexAction.php trunk/library/classes/Gems/User/Organization.php trunk/library/classes/Gems/User/User.php Modified: trunk/library/classes/Gems/Default/IndexAction.php =================================================================== --- trunk/library/classes/Gems/Default/IndexAction.php 2011-11-15 12:38:23 UTC (rev 219) +++ trunk/library/classes/Gems/Default/IndexAction.php 2011-11-15 14:28:47 UTC (rev 220) @@ -336,6 +336,7 @@ $this->addMessage(sprintf($this->_('Good bye: %s.'), $user->getFullName())); $user->unsetAsCurrentUser(); + Zend_Session::regenerateId(); $this->_reroute(array('action' => 'index'), true); } Modified: trunk/library/classes/Gems/User/Organization.php =================================================================== --- trunk/library/classes/Gems/User/Organization.php 2011-11-15 12:38:23 UTC (rev 219) +++ trunk/library/classes/Gems/User/Organization.php 2011-11-15 14:28:47 UTC (rev 220) @@ -97,6 +97,25 @@ } /** + * Returns a callable if a method is called as a variable + * or the value from the organizationData if it exists + * + * @param string $name + * @return Callable + */ + public function __get($name) + { + if (method_exists($this, $name)) { + // Return a callable + return array($this, $name); + } elseif (isset($this->_organizationData[$name])) { + return $this->_organizationData[$name]; + } + + throw new Gems_Exception_Coding("Unknown method '$name' requested as callable."); + } + + /** * Should be called after answering the request to allow the Target * to check if all required registry values have been set correctly. * Modified: trunk/library/classes/Gems/User/User.php =================================================================== --- trunk/library/classes/Gems/User/User.php 2011-11-15 12:38:23 UTC (rev 219) +++ trunk/library/classes/Gems/User/User.php 2011-11-15 14:28:47 UTC (rev 220) @@ -193,7 +193,7 @@ * Authenticate a users credentials using the submitted form * * @param array $formValues the array containing all formvalues from the login form - * @return boolean + * @return Zend_Auth_Result */ public function authenticate($formValues) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |