From c6c5f95d1e374fd5162129c7605af0f501fe1910 Mon Sep 17 00:00:00 2001 From: xudianyang Date: Fri, 5 Sep 2014 16:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=87=A0=E4=B8=AA=E5=B0=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yaf.namespace.php | 8 ++++---- Yaf.underline.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Yaf.namespace.php b/Yaf.namespace.php index 83fac8a..bee8977 100644 --- a/Yaf.namespace.php +++ b/Yaf.namespace.php @@ -1045,12 +1045,12 @@ interface View_Interface * * 当只有一个参数时,参数必须是Array类型,可以展开多个模板变量 * - * @param string $name 变量名 + * @param string | array $name 变量 * @param string $value 变量值 * * @return Boolean */ - public function assign($name, $value); + public function assign($name, $value = null); /** * (Yaf >= 2.2.9) @@ -2434,7 +2434,7 @@ final class Ini extends Config_Abstract * @param string $filename ini文件全路径 * @param string $section 初始化时的配置节点名称 */ - public function __construct($filename, $section){} + public function __construct($filename, $section = null){} /** * (Yaf >= 2.2.9) @@ -3107,7 +3107,7 @@ public function clear($name){} * * @return Boolean */ - public function assign($name, $value){} + public function assign($name, $value = null){} /** * (Yaf >= 2.2.9) diff --git a/Yaf.underline.php b/Yaf.underline.php index 14aae3b..6840aec 100644 --- a/Yaf.underline.php +++ b/Yaf.underline.php @@ -1044,7 +1044,7 @@ interface Yaf_View_Interface * * @return Boolean */ - public function assign($name, $value); + public function assign($name, $value = null); /** * (Yaf >= 2.2.9) @@ -2424,7 +2424,7 @@ final class Yaf_Config_Ini extends Yaf_Config_Abstract * @param string $filename ini文件全路径 * @param string $section 初始化时的配置节点名称 */ - public function __construct($filename, $section){} + public function __construct($filename, $section = null){} /** * (Yaf >= 2.2.9) @@ -3087,7 +3087,7 @@ public function clear($name){} * * @return Boolean */ - public function assign($name, $value){} + public function assign($name, $value = null){} /** * (Yaf >= 2.2.9)