Re: ? Set::filter (Was Re: allowEmpty in validate)

2007-04-30 Thread R. Rajesh Jeba Anbiah

On Apr 30, 5:22 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 4/30/07, R.RajeshJebaAnbiah<[EMAIL PROTECTED]> wrote:
   
> > I don't find "Set::filter"  > query=Set::filter>. Do you know where to find? TIA
>
> Use the source
>
> https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/set.php...

   Oh, thanks. I think, it's been just committed 'coz I use the svn
version only.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ? Set::filter (Was Re: allowEmpty in validate)

2007-04-30 Thread Dr. Tarique Sani

On 4/30/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
> On Apr 19, 3:59 am, nate <[EMAIL PROTECTED]> wrote:
> > As of 1.2 current SVN:
> >
> > function beforeValidate() {
> >$this->data[$this->name] = Set::filter($this->data[$this->name],
> > true);
> >return true;
> >
> > }
> >
> > Works for me.
>
>
> I don't find "Set::filter"  query=Set::filter>. Do you know where to find? TIA

Use the source

https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/set.php#L112

T

-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: ? Set::filter (Was Re: allowEmpty in validate)

2007-04-30 Thread Mariano Iglesias

That's because the API docs haven't been updated yet since the Set::filter
function was added after last CakePHP 1.2 release. API docs get updated
after each release.

Look into cake/libs/set.php and search for function filter()

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de R. Rajesh Jeba Anbiah
Enviado el: Lunes, 30 de Abril de 2007 09:05 a.m.
Para: Cake PHP
Asunto: ? Set::filter (Was Re: allowEmpty in validate)

I don't find "Set::filter". Do you know where to find? TIA


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---