-
WIBUHAX0R1337
-
/
home
/
cideo
/
library
/
Zend
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
Acl
--
NONE
Amf
--
NONE
Auth
--
NONE
Cache
--
NONE
Captcha
--
NONE
Config
--
NONE
Console
--
NONE
Controller
--
NONE
Currency
--
NONE
Date
--
NONE
Db
--
NONE
Dojo
--
NONE
Dom
--
NONE
Feed
--
NONE
File
--
NONE
Filter
--
NONE
Form
--
NONE
Gdata
--
NONE
Http
--
NONE
InfoCard
--
NONE
Json
--
NONE
Layout
--
NONE
Ldap
--
NONE
Loader
--
NONE
Locale
--
NONE
Log
--
NONE
Mail
--
NONE
Measure
--
NONE
Memory
--
NONE
Mime
--
NONE
OpenId
--
NONE
Paginator
--
NONE
Pdf
--
NONE
ProgressBar
--
NONE
Request
--
NONE
Rest
--
NONE
Search
--
NONE
Server
--
NONE
Service
--
NONE
Session
--
NONE
Soap
--
NONE
Test
--
NONE
Text
--
NONE
TimeSync
--
NONE
Translate
--
NONE
Uri
--
NONE
Validate
--
NONE
View
--
NONE
Wildfire
--
NONE
XmlRpc
--
NONE
Acl.php
39.029KB
Edit File
Delete File
Rename
Auth.php
3.921KB
Edit File
Delete File
Rename
Cache.php
9.416KB
Edit File
Delete File
Rename
Config.php
11.354KB
Edit File
Delete File
Rename
Currency.php
19.899KB
Edit File
Delete File
Rename
Date.php
190.498KB
Edit File
Delete File
Rename
Dojo.php
2.782KB
Edit File
Delete File
Rename
Feed.php
13.235KB
Edit File
Delete File
Rename
Filter.php
3.902KB
Edit File
Delete File
Rename
Form.php
84.447KB
Edit File
Delete File
Rename
InfoCard.php
17.044KB
Edit File
Delete File
Rename
Json.php
10.579KB
Edit File
Delete File
Rename
Layout.php
19.085KB
Edit File
Delete File
Rename
Ldap.php
26.124KB
Edit File
Delete File
Rename
Locale.php
34.308KB
Edit File
Delete File
Rename
Log.php
7.058KB
Edit File
Delete File
Rename
Mail.php
26.684KB
Edit File
Delete File
Rename
Mime.php
13.019KB
Edit File
Delete File
Rename
OpenId.php
26.522KB
Edit File
Delete File
Rename
Paginator.php
24.892KB
Edit File
Delete File
Rename
ProgressBar.php
5.958KB
Edit File
Delete File
Rename
Registry.php
6.101KB
Edit File
Delete File
Rename
Session.php
26.264KB
Edit File
Delete File
Rename
Translate.php
4.985KB
Edit File
Delete File
Rename
Uri.php
5.466KB
Edit File
Delete File
Rename
Validate.php
5.31KB
Edit File
Delete File
Rename
<?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: Validate.php 8729 2008-03-10 11:44:10Z thomas $ */ /** * @see Zend_Validate_Interface */ require_once 'Zend/Validate/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 implements Zend_Validate_Interface { /** * Validator chain * * @var array */ protected $_validators = array(); /** * Array of validation failure messages * * @var array */ protected $_messages = array(); /** * Array of validation failure message codes * * @var array * @deprecated Since 1.5.0 */ protected $_errors = array(); /** * Adds a validator to the end of the chain * * If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, * if one exists, will not be executed. * * @param Zend_Validate_Interface $validator * @param boolean $breakChainOnFailure * @return Zend_Validate Provides a fluent interface */ public function addValidator(Zend_Validate_Interface $validator, $breakChainOnFailure = false) { $this->_validators[] = array( 'instance' => $validator, 'breakChainOnFailure' => (boolean) $breakChainOnFailure ); return $this; } /** * Returns true if and only if $value passes all validations in the chain * * Validators are run in the order in which they were added to the chain (FIFO). * * @param mixed $value * @return boolean */ public function isValid($value) { $this->_messages = array(); $this->_errors = array(); $result = true; foreach ($this->_validators as $element) { $validator = $element['instance']; if ($validator->isValid($value)) { continue; } $result = false; $messages = $validator->getMessages(); $this->_messages = array_merge($this->_messages, $messages); $this->_errors = array_merge($this->_errors, array_keys($messages)); if ($element['breakChainOnFailure']) { break; } } return $result; } /** * Defined by Zend_Validate_Interface * * Returns array of validation failure messages * * @return array */ public function getMessages() { return $this->_messages; } /** * Defined by Zend_Validate_Interface * * Returns array of validation failure message codes * * @return array * @deprecated Since 1.5.0 */ public function getErrors() { return $this->_errors; } /** * @param mixed $value * @param string $classBaseName * @param array $args OPTIONAL * @param mixed $namespaces OPTIONAL * @return boolean * @throws Zend_Validate_Exception */ public static function is($value, $classBaseName, array $args = array(), $namespaces = array()) { $namespaces = array_merge(array('Zend_Validate'), (array) $namespaces); foreach ($namespaces as $namespace) { $className = $namespace . '_' . ucfirst($classBaseName); try { require_once 'Zend/Loader.php'; @Zend_Loader::loadClass($className); if (class_exists($className, false)) { $class = new ReflectionClass($className); if ($class->implementsInterface('Zend_Validate_Interface')) { if ($class->hasMethod('__construct')) { $object = $class->newInstanceArgs($args); } else { $object = $class->newInstance(); } return $object->isValid($value); } } } catch (Zend_Validate_Exception $ze) { // if there is an exception while validating throw it throw $ze; } catch (Zend_Exception $ze) { // fallthrough and continue for missing validation classes } } require_once 'Zend/Validate/Exception.php'; throw new Zend_Validate_Exception("Validate class not found from basename '$classBaseName'"); } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat