PHP Encapsulation Surprises

    Date: 09/16/05 (Java Web)    Keywords: php, java

    In PHP, unlike Java or C++, $this has to be explicitly used to refer to variables within a class. The value of $this is determined by the context in which it is called. In certain situations $this may actually refer to the invoking class rather then the current class. This breaks object encapsulation. $this pseudo-variable is [...]

    Source: http://blog.taragana.com/index.php/archive/php-encapsulation-surprises/

« Match Fixing Allegations... || Trigonometry through... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home