Minahito
minah****@users*****
2006年 1月 11日 (水) 20:55:23 JST
Index: xoops2jp/html/modules/base/kernel/object.php diff -u xoops2jp/html/modules/base/kernel/object.php:1.1.2.1 xoops2jp/html/modules/base/kernel/object.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/object.php:1.1.2.1 Wed Jan 11 19:21:39 2006 +++ xoops2jp/html/modules/base/kernel/object.php Wed Jan 11 20:55:23 2006 @@ -1,5 +1,5 @@ <?php -// $Id: object.php,v 1.1.2.1 2006/01/11 10:21:39 minahito Exp $ +// $Id: object.php,v 1.1.2.2 2006/01/11 11:55:23 minahito Exp $ /** * This class implements the interface of XoopsObjectInterface. It gives a developer @@ -104,6 +104,17 @@ return $this->mVars[$key]['value']; } + function gets() + { + $ret = array(); + + foreach ($this->mVars as $key => $value) { + $ret[$key] = $value['value']; + } + + return $ret; + } + function setVar($key, $value) { $this->assignVar($key, $value); @@ -130,13 +141,13 @@ break; case XOBJ_DTYPE_STRING: - $value = htmlspecialchars($value, ENT_QUOTES); + $value = htmlspecialchars($this->mVars[$key]['value'], ENT_QUOTES); break; case XOBJ_DTYPE_TEXT: // TODO $ts =& MyTextSanitizer::getInstance(); - $value = $ts->displayTarea($value, false, true, true, true, true); + $value = $ts->displayTarea($this->mVars[$key]['value'], false, true, true, true, true); break; }