[Maple-user: 116] Re: [personal] Re: Validate結果による動きの指定

Back to archive index

hashimoto hashi****@yahoo*****
2005年 10月 20日 (木) 20:54:12 JST


橋本と申します。
この話題、非常に興味深く読ませていただきました。
さて、
>$errorListOfActionB =& $this->actionChain->getErrorListByName("ActionB");

で取得できるのですが、メソッドとして
getMessages()
だと、やはりActionCのエラーしか取得できないようなので (間違ってます?)
別のメソッドがあると嬉しいなぁと思いました。


> ちなみにContainerを取得しなくても以下のようにすればちょっとだけ
> 楽できますよ。(ま、DIContainerFactoryをいちいち使わないで済む
> というだけで、行数はふえますが・・・)
> 
> --- Class C ---
> 
> class C {
>     var $actionChain;
> 
>     function execute()
>     {
>         $errorListOfActionB =& $this->actionChain->getErrorListByName("ActionB");
>     }
> 
>     function setActionChain(&$actionChain)
>     {
>         $this->actionChain =& $actionChain;
>     }
> }
> 
> --- maple.ini ---
> [Action]
> 
> actionChain = ref: ActionChain
> 


--------------------------------------
Know more about Breast Cancer
http://pr.mail.yahoo.co.jp/pinkribbon/




Maple-user メーリングリストの案内
Back to archive index