hashimoto
hashi****@yahoo*****
2007年 2月 20日 (火) 22:02:29 JST
お世話になります。橋本です。 Filter_InjectRequest, Filter_InjectSessionについての質問なんですが、 以下のように、setAttributes()の第3引数がtrueになっています。 foreach ($this->getAttributes() as $key => $value) { $component =& $container->getComponent($key); if (is_object($component)) { BeanUtils::setAttributes($component, $params, true); } else { $log->error("不正なコンポーネント.....($key)", "Filter_..."); } } この場合、InjectSessionのあと、InjectRequestをして上書きしたい場合、 setterがあれば、無事に上書きされるのですが、setAttributes()の第3引数が falseになっているのは、何故なんでしょうか? 素人的には、どうせsetterで同じことを書くなら、setAttributes()の第3引数を falseにしてしまえば楽?と考えているのですが、危険なんでしょうか? -------------------------------------- Start Yahoo! Auction now! Check out the cool campaign http://pr.mail.yahoo.co.jp/auction/