Source of file PropertyListIterator.php
Size: 0,734 Bytes - Last Modified: 2021-12-23T10:07:55+00:00
/var/www/docs.ssmods.com/process/src/thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/PropertyListIterator.php
123456789101112131415161718192021222324252627282930313233 | <?php /** * Property list iterator. Do not instantiate this class directly. */ class HTMLPurifier_PropertyListIterator extends FilterIterator { protected $l; protected $filter; /** * @param $data Array of data to iterate over * @param $filter Optional prefix to only allow values of */ public function __construct(Iterator $iterator, $filter = null) { parent::__construct($iterator); $this->l = strlen($filter); $this->filter = $filter; } public function accept() { $key = $this->getInnerIterator()->key(); if( strncmp($key, $this->filter, $this->l) !== 0 ) { return false; } return true; } } // vim: et sw=4 sts=4 |