Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #19320, comment 13


Ignore:
Timestamp:
11/23/2011 12:42:26 AM (13 years ago)
Author:
azaozz
Comment:

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.
     1Thought 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.
    22
    33Doesn't seem this works right: `private $this_tinymce = false;` and then from whitin a function `self::$this_tinymce = ...`