__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Allows multiple validators to attempt to validate attribute.
*
* Composite is just what it sounds like: a composite of many validators.
* This means that multiple HTMLPurifier_AttrDef objects will have a whack
* at the string. If one of them passes, that's what is returned. This is
* especially useful for CSS values, which often are a choice between
* an enumerated set of predefined values or a flexible data type.
*/
class HTMLPurifier_AttrDef_CSS_Composite extends HTMLPurifier_AttrDef
{
/**
* List of objects that may process strings.
* @type HTMLPurifier_AttrDef[]
* @todo Make protected
*/
public $defs;
/**
* @param HTMLPurifier_AttrDef[] $defs List of HTMLPurifier_AttrDef objects
*/
public function __construct($defs)
{
$this->defs = $defs;
}
/**
* @param string $string
* @param HTMLPurifier_Config $config
* @param HTMLPurifier_Context $context
* @return bool|string
*/
public function validate($string, $config, $context)
{
foreach ($this->defs as $i => $def) {
$result = $this->defs[$i]->validate($string, $config, $context);
if ($result !== false) {
return $result;
}
}
return false;
}
}
// vim: et sw=4 sts=4
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AlphaValue.php | File | 793 B | 0777 |
|
| Background.php | File | 3.24 KB | 0777 |
|
| BackgroundPosition.php | File | 4.07 KB | 0777 |
|
| Border.php | File | 1.55 KB | 0777 |
|
| Color.php | File | 4.57 KB | 0777 |
|
| Composite.php | File | 1.3 KB | 0777 |
|
| DenyElementDecorator.php | File | 1.05 KB | 0777 |
|
| Filter.php | File | 2.27 KB | 0777 |
|
| Font.php | File | 6.45 KB | 0777 |
|
| FontFamily.php | File | 9.13 KB | 0777 |
|
| Ident.php | File | 724 B | 0777 |
|
| ImportantDecorator.php | File | 1.56 KB | 0777 |
|
| Length.php | File | 1.85 KB | 0777 |
|
| ListStyle.php | File | 2.84 KB | 0777 |
|
| Multiple.php | File | 2.04 KB | 0777 |
|
| Number.php | File | 2.23 KB | 0777 |
|
| Percentage.php | File | 1.25 KB | 0777 |
|
| TextDecoration.php | File | 1.13 KB | 0777 |
|
| URI.php | File | 2.51 KB | 0777 |
|