]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/widget.php
Type testing instead of just empty() in OStatusPlugin
[quix0rs-gnu-social.git] / lib / widget.php
index 0258c8649e8c89e9776b6cf327829aa1025653a5..d068dea0f031b295a85fa73232c223abd437fb4e 100644 (file)
@@ -79,4 +79,30 @@ class Widget
     function show()
     {
     }
+
+    /**
+     * Get HTMLOutputter
+     *
+     * Return the HTMLOutputter for the widget.
+     *
+     * @return HTMLOutputter the output helper
+     */
+
+    function getOut()
+    {
+        return $this->out;
+    }
+
+    /**
+     * 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);
+    }
 }