public static function get_search_area($areaid) {

        // We have them all here.
        if (!empty(static::$allsearchareas[$areaid])) {
            return static::$allsearchareas[$areaid];
        }

        $classname = static::get_area_classname($areaid);

        if (class_exists($classname) && static::is_search_area($classname)) {
            return new $classname();
        }

        return false;
    }
public static function get_search_area($areaid) {

        // We have them all here.
        if (!empty(static::$allsearchareas[$areaid])) {
            return static::$allsearchareas[$areaid];
        }

        $classname = static::get_area_classname($areaid);

        if (class_exists($classname) && static::is_search_area($classname)) {
            return new $classname();
        }

        return false;
    }
public static function get_search_area ( $ areaid ) { // We have them all here. if ( ! empty ( static :: $ allsearchareas [ $ areaid ] ) ) { return static :: $ allsearchareas [ $ areaid ] ; } $ classname = static :: get_area_classname ( $ areaid ) ; if ( class_exists ( $ classname ) && static :: is_search_area ( $ classname ) ) { return new $ classname ( ) ; } return false ; }
Returns a new area search indexer instance.

@param string $areaid
@return \core_search\base|bool False if the area is not available.
Returns a new area search indexer instance .