handler = $handler; } /** * Returns an array of available filters in this filters class. * Returns an array containing all filters available in this filters class: * * array( * '', * '', * ); * * @return array Available filters. */ public function getFilters() { if ( isset( $this->filterCache ) ) { return $this->filterCache; } $exclusions = array( '__construct' => true, 'getFilters' => true, ); $res = array(); foreach ( get_class_methods( $this ) as $method ) { // Skip special PHP methods if ( substr( $method, 0, 1 ) === '_' ) { continue; } if ( !isset( $exclusions[$method] ) ) { $res[] = $method; } } $this->filterCache = $res; return $res; } } ?>