thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/HTMLModuleManager.php
public function getElements() {

        $elements = array();
        foreach ($this->modules as $module) {
            if (!$this->trusted && !$module->safe) continue;
            foreach ($module->info as $name => $v) {
                if (isset($elements[$name])) continue;
                $elements[$name] = $this->getElement($name);
            }
        }

        // remove dud elements, this happens when an element that
        // appeared to be safe actually wasn't
        foreach ($elements as $n => $v) {
            if ($v === false) unset($elements[$n]);
        }

        return $elements;

    }
public function getElements() {

        $elements = array();
        foreach ($this->modules as $module) {
            if (!$this->trusted && !$module->safe) continue;
            foreach ($module->info as $name => $v) {
                if (isset($elements[$name])) continue;
                $elements[$name] = $this->getElement($name);
            }
        }

        // remove dud elements, this happens when an element that
        // appeared to be safe actually wasn't
        foreach ($elements as $n => $v) {
            if ($v === false) unset($elements[$n]);
        }

        return $elements;

    }
public function getElements ( ) { $ elements = array ( ) ; foreach ( $ this -> modules as $ module ) { if ( ! $ this -> trusted && ! $ module -> safe ) continue ; foreach ( $ module -> info as $ name => $ v ) { if ( isset ( $ elements [ $ name ] ) ) continue ; $ elements [ $ name ] = $ this -> getElement ( $ name ) ; } } // remove dud elements, this happens when an element that // appeared to be safe actually wasn't foreach ( $ elements as $ n => $ v ) { if ( $ v === false ) unset ( $ elements [ $ n ] ) ; } return $ elements ; }
Retrieves merged element definitions.
@return Array of HTMLPurifier_ElementDef
Retrieves merged element definitions .