note 83502 added to language.oop5.late-static-bindings

From: Date: Wed, 28 May 2008 20:22:38 +0000
Subject: note 83502 added to language.oop5.late-static-bindings
Groups: php.notes 
Request: Send a blank email to php-notes+get-139957@lists.php.net to get a copy of this message
Finally we can implement some ActiveRecord methods: class Model { public static function find() { echo static::$name; } } class Product extends Model { protected static $name = 'Product'; } Product::find(); Output: 'Product' ---- Server IP: 64.71.164.2 Probable Submitter: 151.201.24.17 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.late-static-bindings.php Edit -- https://master.php.net/note/edit/83502 Del: integrated -- https://master.php.net/note/delete/83502/integrated Del: useless -- https://master.php.net/note/delete/83502/useless Del: bad code -- https://master.php.net/note/delete/83502/bad+code Del: spam -- https://master.php.net/note/delete/83502/spam Del: non-english -- https://master.php.net/note/delete/83502/non-english Del: in docs -- https://master.php.net/note/delete/83502/in+docs Del: other reasons-- https://master.php.net/note/delete/83502 Reject -- https://master.php.net/note/reject/83502 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139957) next »