topleft topright

Welcome, Guest. Please login or register.
May 25, 2013, 10:17:27 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.

Pages: [1]
Print
Author Topic: [ FIXED ] - Error in Controller  (Read 1885 times)
hasan
Moderator
Newbie
*****
Posts: 8



View Profile WWW
« on: February 02, 2009, 03:11:50 AM »

Fixed executeCommand() to now include a conditional clause that determines the existence of the INotification to Command mapping before attempting command execution...

if (isset($this->commandMap[ $note->getName() ]))
{
   $commandClassName = $this->commandMap[ $note->getName() ];
   $commandClassReflector = new ReflectionClass( $commandClassName );
   
   $commandClassRef = $commandClassReflector->newInstance();
   $commandClassRef->execute( $note );
}

Logged

P E A C E

Hasan
Pages: [1]
Print
Jump to:  



Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC
Copyright © 2006-2008 Futurescale, Inc.