function _allAssocs()
    {
        $all_associations = array();

        $association_filenames =
            Auth_OpenID_FileStore::_listdir($this->association_dir);

        foreach ($association_filenames as $association_filename) {
            $association_file = fopen($association_filename, 'rb');

            if ($association_file !== false) {
                $assoc_s = fread($association_file,
                                 filesize($association_filename));
                fclose($association_file);

                // Remove expired or corrupted associations
                $association =
                  Auth_OpenID_Association::deserialize(
                         'Auth_OpenID_Association', $assoc_s);

                if ($association === null) {
                    Auth_OpenID_FileStore::_removeIfPresent(
                                                 $association_filename);
                } else {
                    if ($association->getExpiresIn() == 0) {
                        $all_associations[] = array($association_filename,
                                                    $association);
                    }
                }
            }
        }

        return $all_associations;
    }
function _allAssocs()
    {
        $all_associations = array();

        $association_filenames =
            Auth_OpenID_FileStore::_listdir($this->association_dir);

        foreach ($association_filenames as $association_filename) {
            $association_file = fopen($association_filename, 'rb');

            if ($association_file !== false) {
                $assoc_s = fread($association_file,
                                 filesize($association_filename));
                fclose($association_file);

                // Remove expired or corrupted associations
                $association =
                  Auth_OpenID_Association::deserialize(
                         'Auth_OpenID_Association', $assoc_s);

                if ($association === null) {
                    Auth_OpenID_FileStore::_removeIfPresent(
                                                 $association_filename);
                } else {
                    if ($association->getExpiresIn() == 0) {
                        $all_associations[] = array($association_filename,
                                                    $association);
                    }
                }
            }
        }

        return $all_associations;
    }
function _allAssocs ( ) { $ all_associations = array ( ) ; $ association_filenames = Auth_OpenID_FileStore :: _listdir ( $ this -> association_dir ) ; foreach ( $ association_filenames as $ association_filename ) { $ association_file = fopen ( $ association_filename , 'rb' ) ; if ( $ association_file !== false ) { $ assoc_s = fread ( $ association_file , filesize ( $ association_filename ) ) ; fclose ( $ association_file ) ; // Remove expired or corrupted associations $ association = Auth_OpenID_Association :: deserialize ( 'Auth_OpenID_Association' , $ assoc_s ) ; if ( $ association === null ) { Auth_OpenID_FileStore :: _removeIfPresent ( $ association_filename ) ; } else { if ( $ association -> getExpiresIn ( ) == 0 ) { $ all_associations [ ] = array ( $ association_filename , $ association ) ; } } } } return $ all_associations ; }
Remove expired entries from the database. This is potentially
expensive, so only run when it is acceptable to take time.

@access private
Remove expired entries from the database . This is potentially expensive so only run when it is acceptable to take time .