public static function reindex_states($class = null, $includeSubclasses = true)
    {
        $allstates = array();

        foreach (self::variants($class, $includeSubclasses) as $variant => $instance) {
            if ($states = $instance->reindexStates()) {
                $allstates[$variant] = $states;
            }
        }

        return $allstates ? new CombinationsArrayIterator($allstates) : array(array());
    }
public static function reindex_states($class = null, $includeSubclasses = true)
    {
        $allstates = array();

        foreach (self::variants($class, $includeSubclasses) as $variant => $instance) {
            if ($states = $instance->reindexStates()) {
                $allstates[$variant] = $states;
            }
        }

        return $allstates ? new CombinationsArrayIterator($allstates) : array(array());
    }
public static function reindex_states ( $ class = null , $ includeSubclasses = true ) { $ allstates = array ( ) ; foreach ( self :: variants ( $ class , $ includeSubclasses ) as $ variant => $ instance ) { if ( $ states = $ instance -> reindexStates ( ) ) { $ allstates [ $ variant ] = $ states ; } } return $ allstates ? new CombinationsArrayIterator ( $ allstates ) : array ( array ( ) ) ; }
Return an iterator that, when used in a for loop, activates one combination of reindex states per loop, and restores
back to the original state at the end
@static
@param string $class - The class name to get variants for
@param bool $includeSubclasses - True if variants should be included if they apply to at least one subclass of $class
@return SearchVariant_ReindexStateIteratorRet - The iterator to foreach loop over
Return an iterator that when used in a for loop activates one combination of reindex states per loop and restores back to the original state at the end