@@ 64-73 (lines=10) @@ | ||
61 | ||
62 | return; |
|
63 | } |
|
64 | if (array_key_exists($p, $this->compat['properties']) !== false) { |
|
65 | if ($this->show_compat_errors) { |
|
66 | $this->triggerError('Property ' . $p . ' is not available in the Dwoo\Smarty\Adapter, however it might be implemented in the future, check out http://wiki.dwoo.org/index.php/SmartySupport for more details.', E_USER_NOTICE); |
|
67 | } |
|
68 | $this->compat['properties'][$p] = $v; |
|
69 | } else { |
|
70 | if ($this->show_compat_errors) { |
|
71 | $this->triggerError('Property ' . $p . ' is not available in the Dwoo\Smarty\Adapter, but it is not listed as such, so you might want to tell me about it at [email protected]', E_USER_NOTICE); |
|
72 | } |
|
73 | } |
|
74 | } |
|
75 | ||
76 | /** |
|
@@ 83-92 (lines=10) @@ | ||
80 | */ |
|
81 | public function __get($p) |
|
82 | { |
|
83 | if (array_key_exists($p, $this->compat['properties']) !== false) { |
|
84 | if ($this->show_compat_errors) { |
|
85 | $this->triggerError('Property ' . $p . ' is not available in the Dwoo\Smarty\Adapter, however it might be implemented in the future, check out http://wiki.dwoo.org/index.php/SmartySupport for more details.', E_USER_NOTICE); |
|
86 | } |
|
87 | ||
88 | return $this->compat['properties'][$p]; |
|
89 | } else { |
|
90 | if ($this->show_compat_errors) { |
|
91 | $this->triggerError('Property ' . $p . ' is not available in the Dwoo\Smarty\Adapter, but it is not listed as such, so you might want to tell me about it at [email protected]', E_USER_NOTICE); |
|
92 | } |
|
93 | } |
|
94 | } |
|
95 |