* @return array Map of filter URL param names to properties (msg/default)
*/
protected function getCustomFilters() {
- // @todo Fire a Special{$this->getName()}Filters hook here
- return array();
+ if ( $this->customFilters === null ) {
+ $this->customFilters = array();
+ wfRunHooks( 'ChangesListSpecialPageFilters', array( $this, &$this->customFilters ) );
+ }
+
+ return $this->customFilters;
}
/**
*
* Intended for subclassing, e.g. to add a backwards-compatibility layer.
*
- * @param FormOptions $parameters
+ * @param FormOptions $opts
* @return FormOptions
*/
protected function fetchOptionsFromRequest( $opts ) {
''
);
- // @todo Fire a Special{$this->getName()}Query hook here
- // @todo Uncomment and document
- // if ( !wfRunHooks( 'ChangesListSpecialPageQuery',
- // array( &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts ) )
- // ) {
- // return false;
- // }
+ if ( !wfRunHooks( 'ChangesListSpecialPageQuery',
+ array( $this->getName(), &$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts ) )
+ ) {
+ return false;
+ }
$dbr = $this->getDB();
* @todo This should not be static, then we can drop the parameter
* @todo Not called by anything, should be called by doHeader()
*
- * @param $context the object available as $this in non-static functions
+ * @param IContextSource $context The object available as $this in non-static functions
* @return string
*/
public static function makeLegend( IContextSource $context ) {