| @@ 48-57 (lines=10) @@ | ||
| 45 | $this->__construct($config) ; |
|
| 46 | } |
|
| 47 | ||
| 48 | function &instance( $config ) |
|
| 49 | { |
|
| 50 | static $instance; |
|
| 51 | if (!isset($instance)) { |
|
| 52 | $instance = new TinyMCE($config); |
|
| 53 | } else { |
|
| 54 | $instance->setConfig($config); |
|
| 55 | } |
|
| 56 | return $instance; |
|
| 57 | } |
|
| 58 | ||
| 59 | function setConfig( $config ) |
|
| 60 | { |
|
| @@ 50-60 (lines=11) @@ | ||
| 47 | * |
|
| 48 | * @return TinyMCE $instance The instance of tinyMCE object |
|
| 49 | */ |
|
| 50 | public function &instance($config) |
|
| 51 | { |
|
| 52 | static $instance; |
|
| 53 | if (!isset($instance)) { |
|
| 54 | $instance = new TinyMCE($config); |
|
| 55 | } else { |
|
| 56 | $instance->setConfig($config); |
|
| 57 | } |
|
| 58 | ||
| 59 | return $instance; |
|
| 60 | } |
|
| 61 | ||
| 62 | public function setConfig($config) |
|
| 63 | { |
|