| @@ 60-68 (lines=9) @@ | ||
| 57 | * @param string $format format to use for the output |
|
| 58 | * @return mixed formatted value of the variable |
|
| 59 | */ |
|
| 60 | public function getVar($key, $format = 's') |
|
| 61 | { |
|
| 62 | if ('s' === $format && in_array($key, ['description', 'image'])) { |
|
| 63 | // return call_user_func(array($this, $key)); |
|
| 64 | return $this->{$key}(); |
|
| 65 | } |
|
| 66 | ||
| 67 | return parent::getVar($key, $format); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * @return string |
|
| @@ 79-87 (lines=9) @@ | ||
| 76 | * @param string $format |
|
| 77 | * @return mixed |
|
| 78 | */ |
|
| 79 | public function getVar($key, $format = 's') |
|
| 80 | { |
|
| 81 | if ('s' === $format && in_array($key, ['rate', 'default_currency'])) { |
|
| 82 | // return call_user_func(array($this, $key)); |
|
| 83 | return $this->{$key}(); |
|
| 84 | } |
|
| 85 | ||
| 86 | return parent::getVar($key, $format); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @return mixed |
|
| @@ 60-68 (lines=9) @@ | ||
| 57 | * @param string $format format to use for the output |
|
| 58 | * @return mixed formatted value of the variable |
|
| 59 | */ |
|
| 60 | public function getVar($key, $format = 's') |
|
| 61 | { |
|
| 62 | if ('s' === $format && in_array($key, ['from_uid', 'to_uid', 'date', 'link'])) { |
|
| 63 | // return call_user_func(array($this, $key)); |
|
| 64 | return $this->{$key}(); |
|
| 65 | } |
|
| 66 | ||
| 67 | return parent::getVar($key, $format); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * @return string |
|
| @@ 74-82 (lines=9) @@ | ||
| 71 | * @param string $format |
|
| 72 | * @return mixed |
|
| 73 | */ |
|
| 74 | public function getVar($key, $format = 's') |
|
| 75 | { |
|
| 76 | if ('s' === $format && in_array($key, ['name', 'dirname'])) { |
|
| 77 | // return call_user_func(array($this, $key)); |
|
| 78 | return $this->{$key}(); |
|
| 79 | } |
|
| 80 | ||
| 81 | return parent::getVar($key, $format); |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @return string |
|