X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fwidget.php;h=f9b71525598365a939933a57c3231228401a02dc;hb=5eba1030ae39038b7b6b0aad5de1043fae43e48d;hp=0258c8649e8c89e9776b6cf327829aa1025653a5;hpb=b3b3af9a2eff10c272bb213eccd3dd3060bc5830;p=quix0rs-gnu-social.git diff --git a/lib/widget.php b/lib/widget.php index 0258c8649e..f9b7152559 100644 --- a/lib/widget.php +++ b/lib/widget.php @@ -79,4 +79,17 @@ class Widget function show() { } + + /** + * Delegate output methods to the outputter attribute. + * + * @param string $name Name of the method + * @param array $arguments Arguments called + * + * @return mixed Return value of the method. + */ + function __call($name, $arguments) + { + return call_user_func_array(array($this->out, $name), $arguments); + } }