lib/bagit_fetch.php
public function read()
    {
        $lines = readLines($this->fileName, $this->fileEncoding);
        $fetch = array();

        foreach ($lines as $line) {
            $fields = preg_split('/\s+/', $line);
            if (count($fields) == 3) {
                array_push(
                    $fetch,
                    array('url' => $fields[0],
                          'length' => $fields[1],
                          'filename' => $fields[2])
                );
            }
        }
        $this->data = $fetch;
    }
public function read()
    {
        $lines = readLines($this->fileName, $this->fileEncoding);
        $fetch = array();

        foreach ($lines as $line) {
            $fields = preg_split('/\s+/', $line);
            if (count($fields) == 3) {
                array_push(
                    $fetch,
                    array('url' => $fields[0],
                          'length' => $fields[1],
                          'filename' => $fields[2])
                );
            }
        }
        $this->data = $fetch;
    }
public function read ( ) { $ lines = readLines ( $ this -> fileName , $ this -> fileEncoding ) ; $ fetch = array ( ) ; foreach ( $ lines as $ line ) { $ fields = preg_split ( '/\s+/' , $ line ) ; if ( count ( $ fields ) == 3 ) { array_push ( $ fetch , array ( 'url' => $ fields [ 0 ] , 'length' => $ fields [ 1 ] , 'filename' => $ fields [ 2 ] ) ) ; } } $ this -> data = $ fetch ; }
This reads the data from the fetch file and populates the data array.

@return array The data from the file.
This reads the data from the fetch file and populates the data array .