From c8a7e242e94120beafb39a01907e6de8ae265c16 Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 11 May 2012 09:54:12 +0000 Subject: [PATCH] e107 meta proxy method --- e107_handlers/e107Url.php | 18 +++++++++++++++++- e107_handlers/e107_class.php | 9 +++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107Url.php b/e107_handlers/e107Url.php index 64f0d7554..bba0be698 100755 --- a/e107_handlers/e107Url.php +++ b/e107_handlers/e107Url.php @@ -2,7 +2,7 @@ /* * e107 website system * - * Copyright (C) 2008-2011 e107 Inc (e107.org) + * Copyright (C) 2008-2012 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * @@ -74,5 +74,21 @@ class eUrl { return $this->_front; } + + /** + * @return eResponse + */ + public function response() + { + return $this->_front->getResponse(); + } + + /** + * @return eRequest + */ + public function request() + { + return $this->_front->getRequest(); + } } diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index d000250fb..9aa571d36 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1361,6 +1361,15 @@ class e107 } return self::getObject('e_jshelper', null, true); } + + /** + * @see eResponse::addMeta() + * @return eResponse + */ + public static function meta($name = null, $content = null, $extended = array()) + { + return e107::getUrl()->response()->addMeta($name, $content, $extended); + } /** * Retrieve admin dispatcher instance.