Method writing quesion

From: Date: Fri, 08 Feb 2002 19:20:04 +0000
Subject: Method writing quesion
Groups: php.general 
Request: Send a blank email to php-general+get-84029@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, quick Q on writing Methods on PHP: If a methods purpose is to take 3 values and do stuff with those values, should the error checking (eg. that the values dont='') be done /inside/ the Method or by the script that calls it? It makes more sense to me to have all the error checking and validation done /before/ passing it to the method as one of the concepts of classes is that their methods are very simple and specific. However, I wondered what you all thought on this? - -- Nick Wilson Tel: +45 3325 0688 Fax: +45 3325 0677 Web: www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ZCTkHpvrrTa6L5oRAlNWAKCYFZPv5OCsfO5cNS0myXJpjeI+TwCgoOof k1a/n+zDDmQG4Tj3qyLolwI= =8x5W -----END PGP SIGNATURE-----

« previous php.general (#84029) next »