Actually that reminds you can validate a URI. You make a static call to 
Zend_Uri::check($uri).

As for the protected constructor, I believe it's down to Zend_Uri being one of 
those static-heavy classes. I have at least one class covered in Zend_Uri:: 
calls and the coupling doesn't look very pretty.

Paddy
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


----- Original Message ----
From: Andries Seutens <[EMAIL PROTECTED]>
To: Pádraic Brady <[EMAIL PROTECTED]>
Cc: Ralf Eggert <[EMAIL PROTECTED]>; Zend Framework General 
<[email protected]>
Sent: Monday, June 18, 2007 3:02:44 PM
Subject: Re: [fw-general] Zend_Validate_Uri


Hi,

Speaking of Zend_Uri_*, can anyone explain me why they made the class 
constructor a protected method? It's only instantiazable through 
Zend_Uri, and this is a real pain when you want to extend one of those 
classes.

Take for instance Zend_TimeSync, where I have custom schemes like ntp:// 
and sntp://, I could not extend Zend_Uri_Http, because of the protected 
class constructor, while 95% of the code would be reusable...

Best,


Andriesss


Pádraic Brady schreef:
> Hi Ralf,
>
> Should be possible. I think there may have been a holdup since the 
> traditional URI is now supplemented by the IRI which is an 
> internationalised form which allow for a range of Unicode characters 
> (each national registry defines it's own valid character range).
>
> There is at least some (or all?) of this now supported I believe. It 
> probably just needs to be integrated into a Zend_Validate_Uri taking 
> from the existing Hostname/IP validators.
>
> Paddy
>  
> Pádraic Brady
> http://blog.astrumfutura.com
> http://www.patternsforphp.com
>
>
> ----- Original Message ----
> From: Ralf Eggert <[EMAIL PROTECTED]>
> To: Zend Framework General <[email protected]>
> Sent: Monday, June 18, 2007 11:21:01 AM
> Subject: [fw-general] Zend_Validate_Uri
>
> Hi,
>
> just a quick question, though I am not sure if this issue was not
> discussed already.
>
> We have the Zend_Uri component, but there is no Zend_Validate_Uri class
> yet. Are there any reasons not to implement a Zend_Validate_Uri
> validator class? Should not be such a big deal I think...
>
> Best Regards,
>
> Ralf
>
>
>
> ------------------------------------------------------------------------
> Shape Yahoo! in your own image. Join our Network Research Panel today! 
> <http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>
>  
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.472 / Virus Database: 269.9.0/852 - Release Date: 17/06/2007 8:23
>   


-- 
Andries Seutens
http://andries.systray.be


Gecontroleerd op virussen door de JOJO Secure Gateway.







 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Reply via email to