diff options
author | davehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-04-15 22:06:42 +0000 |
---|---|---|
committer | davehauenstein <davehauenstein@d4e419ec-0920-11de-bbfd-a7c1bc4c261e> | 2009-04-15 22:06:42 +0000 |
commit | c53d8d026021f97075fb2f4940ba22793c38fb6e (patch) | |
tree | c5d7865bc0fd226ecc7525d7de8a1d0b0c5c89fd /lib/Zend/Validate/Hostname | |
parent | a414fcee8e7dc733443c6a971162d0dd9d0e723f (diff) | |
download | readability-simple-c53d8d026021f97075fb2f4940ba22793c38fb6e.tar.bz2 readability-simple-c53d8d026021f97075fb2f4940ba22793c38fb6e.zip |
added toolbar; functionality includes refresh button to get back to original page, print article, email a link to the article with a personal note
git-svn-id: http://arc90labs-readability.googlecode.com/svn/trunk@31 d4e419ec-0920-11de-bbfd-a7c1bc4c261e
Diffstat (limited to 'lib/Zend/Validate/Hostname')
-rw-r--r-- | lib/Zend/Validate/Hostname/At.php | 50 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Ch.php | 50 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/De.php | 58 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Fi.php | 50 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Hu.php | 50 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Interface.php | 52 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Li.php | 50 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/No.php | 52 | ||||
-rw-r--r-- | lib/Zend/Validate/Hostname/Se.php | 50 |
9 files changed, 462 insertions, 0 deletions
diff --git a/lib/Zend/Validate/Hostname/At.php b/lib/Zend/Validate/Hostname/At.php new file mode 100644 index 0000000..fff6bf2 --- /dev/null +++ b/lib/Zend/Validate/Hostname/At.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: At.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_At implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.nic.at/en/service/technical_information/idn/charset_converter/ Austria (.AT) + * @return string + */ + static function getCharacters() + { + return '\x{00EO}-\x{00F6}\x{00F8}-\x{00FF}\x{0153}\x{0161}\x{017E}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/Ch.php b/lib/Zend/Validate/Hostname/Ch.php new file mode 100644 index 0000000..72fae7b --- /dev/null +++ b/lib/Zend/Validate/Hostname/Ch.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Ch.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_Ch implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see https://nic.switch.ch/reg/ocView.action?res=EF6GW2JBPVTG67DLNIQXU234MN6SC33JNQQGI7L6#anhang1 Switzerland (.CH) + * @return string + */ + static function getCharacters() + { + return '\x{00EO}-\x{00F6}\x{00F8}-\x{00FF}\x{0153}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/De.php b/lib/Zend/Validate/Hostname/De.php new file mode 100644 index 0000000..cfea068 --- /dev/null +++ b/lib/Zend/Validate/Hostname/De.php @@ -0,0 +1,58 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: De.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_De implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.denic.de/en/domains/idns/liste.html Germany (.DE) alllowed characters + * @return string + */ + static function getCharacters() + { + return '\x{00E1}\x{00E0}\x{0103}\x{00E2}\x{00E5}\x{00E4}\x{00E3}\x{0105}\x{0101}\x{00E6}\x{0107}' . + '\x{0109}\x{010D}\x{010B}\x{00E7}\x{010F}\x{0111}\x{00E9}\x{00E8}\x{0115}\x{00EA}\x{011B}' . + '\x{00EB}\x{0117}\x{0119}\x{0113}\x{011F}\x{011D}\x{0121}\x{0123}\x{0125}\x{0127}\x{00ED}' . + '\x{00EC}\x{012D}\x{00EE}\x{00EF}\x{0129}\x{012F}\x{012B}\x{0131}\x{0135}\x{0137}\x{013A}' . + '\x{013E}\x{013C}\x{0142}\x{0144}\x{0148}\x{00F1}\x{0146}\x{014B}\x{00F3}\x{00F2}\x{014F}' . + '\x{00F4}\x{00F6}\x{0151}\x{00F5}\x{00F8}\x{014D}\x{0153}\x{0138}\x{0155}\x{0159}\x{0157}' . + '\x{015B}\x{015D}\x{0161}\x{015F}\x{0165}\x{0163}\x{0167}\x{00FA}\x{00F9}\x{016D}\x{00FB}' . + '\x{016F}\x{00FC}\x{0171}\x{0169}\x{0173}\x{016B}\x{0175}\x{00FD}\x{0177}\x{00FF}\x{017A}' . + '\x{017E}\x{017C}\x{00F0}\x{00FE}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/Fi.php b/lib/Zend/Validate/Hostname/Fi.php new file mode 100644 index 0000000..a28ba56 --- /dev/null +++ b/lib/Zend/Validate/Hostname/Fi.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Fi.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_Fi implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.ficora.fi/en/index/palvelut/fiverkkotunnukset/aakkostenkaytto.html Finland (.FI) + * @return string + */ + static function getCharacters() + { + return '\x{00E5}\x{00E4}\x{00F6}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/Hu.php b/lib/Zend/Validate/Hostname/Hu.php new file mode 100644 index 0000000..e6f9795 --- /dev/null +++ b/lib/Zend/Validate/Hostname/Hu.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Hu.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_Hu implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.domain.hu/domain/English/szabalyzat.html Hungary (.HU) + * @return string + */ + static function getCharacters() + { + return '\x{00E1}\x{00E9}\x{00ED}\x{00F3}\x{00F6}\x{0151}\x{00FA}\x{00FC}\x{0171}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/Interface.php b/lib/Zend/Validate/Hostname/Interface.php new file mode 100644 index 0000000..4426d8b --- /dev/null +++ b/lib/Zend/Validate/Hostname/Interface.php @@ -0,0 +1,52 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Interface.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +interface Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * UTF-8 characters should be written as four character hex codes \x{XXXX} + * For example é (lowercase e with acute) is represented by the hex code \x{00E9} + * + * You only need to include lower-case equivalents of characters since the hostname + * check is case-insensitive + * + * Please document the supported TLDs in the documentation file at: + * manual/en/module_specs/Zend_Validate-Hostname.xml + * + * @see http://en.wikipedia.org/wiki/Internationalized_domain_name + * @see http://www.iana.org/cctld/ Country-Code Top-Level Domains (TLDs) + * @see http://www.columbia.edu/kermit/utf8-t1.html UTF-8 characters + * @return string + */ + static function getCharacters(); + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/Li.php b/lib/Zend/Validate/Hostname/Li.php new file mode 100644 index 0000000..0739c93 --- /dev/null +++ b/lib/Zend/Validate/Hostname/Li.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Li.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_Li implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see https://nic.switch.ch/reg/ocView.action?res=EF6GW2JBPVTG67DLNIQXU234MN6SC33JNQQGI7L6#anhang1 Liechtenstein (.LI) + * @return string + */ + static function getCharacters() + { + return '\x{00EO}-\x{00F6}\x{00F8}-\x{00FF}\x{0153}'; + } + +}
\ No newline at end of file diff --git a/lib/Zend/Validate/Hostname/No.php b/lib/Zend/Validate/Hostname/No.php new file mode 100644 index 0000000..d0d4c67 --- /dev/null +++ b/lib/Zend/Validate/Hostname/No.php @@ -0,0 +1,52 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: No.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_No implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.norid.no/domeneregistrering/idn/idn_nyetegn.en.html Norway (.NO) + * @return string + */ + static function getCharacters() + { + return '\x00E1\x00E0\x00E4\x010D\x00E7\x0111\x00E9\x00E8\x00EA\x\x014B' . + '\x0144\x00F1\x00F3\x00F2\x00F4\x00F6\x0161\x0167\x00FC\x017E\x00E6' . + '\x00F8\x00E5'; + } + +} diff --git a/lib/Zend/Validate/Hostname/Se.php b/lib/Zend/Validate/Hostname/Se.php new file mode 100644 index 0000000..6f181cb --- /dev/null +++ b/lib/Zend/Validate/Hostname/Se.php @@ -0,0 +1,50 @@ +<?php + +/** + * Zend Framework + * + * LICENSE + * + * This source file is subject to the new BSD license that is bundled + * with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://framework.zend.com/license/new-bsd + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@zend.com so we can send you a copy immediately. + * + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + * @version $Id: Se.php 8064 2008-02-16 10:58:39Z thomas $ + */ + + +/** + * @see Zend_Validate_Hostname_Interface + */ +require_once 'Zend/Validate/Hostname/Interface.php'; + + +/** + * @category Zend + * @package Zend_Validate + * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) + * @license http://framework.zend.com/license/new-bsd New BSD License + */ +class Zend_Validate_Hostname_Se implements Zend_Validate_Hostname_Interface +{ + + /** + * Returns UTF-8 characters allowed in DNS hostnames for the specified Top-Level-Domain + * + * @see http://www.iis.se/english/IDN_campaignsite.shtml?lang=en Sweden (.SE) + * @return string + */ + static function getCharacters() + { + return '\x{00E5}\x{00E4}\x{00F6}\x{00FC}\x{00E9}'; + } + +}
\ No newline at end of file |