Changes between Version 2 and Version 3 of Ticket #19320, comment 13
- Timestamp:
- 11/23/2011 12:42:26 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19320, comment 13
v2 v3 1 Thought we were using a single internal instance of the class as described here: http://www.php.net/manual/en/language.oop5.patterns.php#example-202 together with declaring the class `static`. That would let us use `$this->whatever`. Main reason is that `self:: var` doesn't work right in strings, i.e. $js = "var something = '{self::var}foo';"; fails.1 Thought we were using a single internal instance of the class as described here: http://www.php.net/manual/en/language.oop5.patterns.php#example-202 together with declaring the class `static`. That would let us use `$this->whatever`. Main reason is that `self::$var` doesn't work right in strings, i.e. $js = "var something = '{self::$var}foo';"; fails. 2 2 3 3 Doesn't seem this works right: `private $this_tinymce = false;` and then from whitin a function `self::$this_tinymce = ...`