note 95356 added to language.oop5.magic

From: Date: Tue, 29 Dec 2009 00:34:20 +0000
Subject: note 95356 added to language.oop5.magic
Groups: php.notes 
Request: Send a blank email to php-notes+get-164408@lists.php.net to get a copy of this message
I realize a number of people probably don't see any utility at all in this, but if there is any interest from the community, I would be happy to implement another magic method __gettype(). I'm using objects with magic methods to model self-correcting and validating data. But, I want it to be as transparent to PHP as possible. As such, I'd like gettype($myObject) to return according to a __gettype() magic method rather than give back: "object." Would this solution benefit anyone else? ---- Server IP: 69.147.83.197 Probable Submitter: 216.21.215.250 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.magic.php Edit -- https://master.php.net/note/edit/95356 Del: integrated -- https://master.php.net/note/delete/95356/integrated Del: useless -- https://master.php.net/note/delete/95356/useless Del: bad code -- https://master.php.net/note/delete/95356/bad+code Del: spam -- https://master.php.net/note/delete/95356/spam Del: non-english -- https://master.php.net/note/delete/95356/non-english Del: in docs -- https://master.php.net/note/delete/95356/in+docs Del: other reasons-- https://master.php.net/note/delete/95356 Reject -- https://master.php.net/note/reject/95356 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164408) next »