src/FS/File/Log/Reader.php
public static function load( $fileName, $offset = NULL, $limit = NULL )
	{
		$file	= new FS_File_Reader( $fileName );
		$lines	= $file->readArray();
		if( $offset !== NULL && $limit !== NULL && (int) $limit !==  0 )
			$lines	= array_slice( $lines, abs( (int) $offset ), (int) $limit );
		else if( $offset !== NULL && (int) $offset !== 0 )
			$lines	= array_slice( $lines, (int) $offset );
		return $lines;
	}
public static function load( $fileName, $offset = NULL, $limit = NULL )
	{
		$file	= new FS_File_Reader( $fileName );
		$lines	= $file->readArray();
		if( $offset !== NULL && $limit !== NULL && (int) $limit !==  0 )
			$lines	= array_slice( $lines, abs( (int) $offset ), (int) $limit );
		else if( $offset !== NULL && (int) $offset !== 0 )
			$lines	= array_slice( $lines, (int) $offset );
		return $lines;
	}
public static function load ( $ fileName , $ offset = NULL , $ limit = NULL ) { $ file = new FS_File_Reader ( $ fileName ) ; $ lines = $ file -> readArray ( ) ; if ( $ offset !== NULL && $ limit !== NULL && ( int ) $ limit !== 0 ) $ lines = array_slice ( $ lines , abs ( ( int ) $ offset ) , ( int ) $ limit ) ; else if ( $ offset !== NULL && ( int ) $ offset !== 0 ) $ lines = array_slice ( $ lines , ( int ) $ offset ) ; return $ lines ; }
Reads a Log File and returns Lines.
@access		public
@static
@param		string		$uri		URI of Log File
@param		int			$offset		Offset from Start or End
@param		int			$limit		Amount of Entries to return
@return		array
Reads a Log File and returns Lines .