¡@

Home 

php Programming Glossary: responsibility

Error logging, in a smooth way

http://stackoverflow.com/questions/10331084/error-logging-in-a-smooth-way

to whatever the code is responsible for it also has responsibility for logging the error. This goes against the Single Responsibility.. the error logging process raising the error and save the responsibility of responding to the error for the error handler which will.. error handler. The custom error handler has a single responsibility to respond to the error including any logging that you want..

How can I use C++ code to interact with PHP?

http://stackoverflow.com/questions/1502244/how-can-i-use-c-code-to-interact-with-php

data mapper vs active record [closed]

http://stackoverflow.com/questions/2169832/data-mapper-vs-active-record

Active record advantages simplicity disadvantages responsibility of storage should be a seperate responsability static methods..

What is a class in PHP?

http://stackoverflow.com/questions/2206387/what-is-a-class-in-php

a Lock object to it. Since the Lock object handles all the responsibility of whether something is locked or unlocked the Door does not.. of sharing of objects instead of rebuilding state and responsibility all over the place. A real world example could be a database..

Understanding MVC: Whats the concept of “Fat” on models, “Skinny” on controllers?

http://stackoverflow.com/questions/3109715/understanding-mvc-whats-the-concept-of-fat-on-models-skinny-on-controllers

not adhering to the purpose of MVC. A controller's sole responsibility is handling and delegating UI requests to the Model. That's.. model that someone requested this change. Updating is the responsibility of the class managing the rows. Also the controller does not..

ACL implementation

http://stackoverflow.com/questions/3430181/acl-implementation

of the classes can be separated in two groups based on the responsibility Domain Business Logic read more here and here Instances from..

in MVC, where do you draw the line between a controller and model? [closed]

http://stackoverflow.com/questions/3499336/in-mvc-where-do-you-draw-the-line-between-a-controller-and-model

are part of the presentation layer. A controller's sole responsibility is to receive and handle user input directed towards your application..

Magento - Passing data between a controller and a block

http://stackoverflow.com/questions/4006183/magento-passing-data-between-a-controller-and-a-block

You don't. In Magento's MVC approach it's not the responsibility of the controller to set variables for the view in Magento's..

Php & Sql Injection - UTF8 POC

http://stackoverflow.com/questions/5139127/php-sql-injection-utf8-poc

all. Ultimately if you think this is a problem it's your responsibility to ensure that you accept input in only the expected character..

How should a model be structured in MVC?

http://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc

has few additional benefits it helps to enforce the single responsibility principle SRP provides additional 'wiggle room' in case the.. new books . Neither does the books themselves. This is the responsibility of the data access layer or in this case librarian . The librarian..

Multiple Inheritance in PHP

http://stackoverflow.com/questions/90982/multiple-inheritance-in-php

incorrect. In situation you outlined I see you have class responsibility simply too broad. If Message is part of application business.. take care about rendering output. Instead you could split responsibility and use MessageDispatcher that sends the Message passed using.. new Exception MIME type m type not supported To sum it up responsibility is split between two classes. Message configuration is done..

avoiding MySQL injections with the Zend_Db class

http://stackoverflow.com/questions/975009/avoiding-mysql-injections-with-the-zend-db-class

expression that needs to be quoted or delimited is your responsibility. E.g. if you interpolate any PHP variables into the expression.. any PHP variables into the expression safety is your responsibility. If you have column names that are SQL keywords you need to..