¡@

Home 

php Programming Glossary: ajax_type

Dependency Injection Pattern seems extreme in Control Class

http://stackoverflow.com/questions/10215010/dependency-injection-pattern-seems-extreme-in-control-class

Script or Action Mapping Actions _.Exception.Invalid ajax_type signin_control A.SignIn.invoke signup_control A.SignUp.invoke.. C.SignOut Implementation action map isset map ajax_type ajax_type ' ' Session start call_user_func_array 'call_user_func_array'.. C.SignOut Implementation action map isset map ajax_type ajax_type ' ' Session start call_user_func_array 'call_user_func_array'..

Code / Library Design - Dependency Injection vs. Making Maps - Is Dependency Injection w/ Factory Pattern O.K for All?

http://stackoverflow.com/questions/10237028/code-library-design-dependency-injection-vs-making-maps-is-dependency-inj

Snippet 3 Control Class class Control public function ajax ajax_type object_session new Session object_session start switch ajax_type.. object_session new Session object_session start switch ajax_type case 'signin_control' Object new ObjectMaker ObjectSignIn.. break default throw new Exception 'Invalid ajax_type' public function reload ControlReload reload php oop share..