src/DB/StatementCollection.php
public function Limit( $data )
	{
		Deprecation::getInstance()->setExceptionVersion( '0.9' )
			->message(  'use setLimit and setOffset instead' );
		if( !is_array( $data ) )
			throw new InvalidArgumentException( 'Limit must be given as List of Offset and Row Limit.' );
		$offset	= 0;
		$rows	= 10;
		if( isset( $data[0] ) && (int) $data[0] && $data[0] == abs( $data[0] ) )
			$offset	= (int) $data[0];
		if( isset( $data[1] ) && (int) $data[1] && $data[1] == abs( $data[1] ) )
			$rows	= (int) $data[1];
		$this->builder->setLimit( $rows );
		$this->builder->setOffset( $offset );
		return array();
	}
public function Limit( $data )
	{
		Deprecation::getInstance()->setExceptionVersion( '0.9' )
			->message(  'use setLimit and setOffset instead' );
		if( !is_array( $data ) )
			throw new InvalidArgumentException( 'Limit must be given as List of Offset and Row Limit.' );
		$offset	= 0;
		$rows	= 10;
		if( isset( $data[0] ) && (int) $data[0] && $data[0] == abs( $data[0] ) )
			$offset	= (int) $data[0];
		if( isset( $data[1] ) && (int) $data[1] && $data[1] == abs( $data[1] ) )
			$rows	= (int) $data[1];
		$this->builder->setLimit( $rows );
		$this->builder->setOffset( $offset );
		return array();
	}
public function Limit ( $ data ) { Deprecation :: getInstance ( ) -> setExceptionVersion ( '0.9' ) -> message ( 'use setLimit and setOffset instead' ) ; if ( ! is_array ( $ data ) ) throw new InvalidArgumentException ( 'Limit must be given as List of Offset and Row Limit.' ) ; $ offset = 0 ; $ rows = 10 ; if ( isset ( $ data [ 0 ] ) && ( int ) $ data [ 0 ] && $ data [ 0 ] == abs ( $ data [ 0 ] ) ) $ offset = ( int ) $ data [ 0 ] ; if ( isset ( $ data [ 1 ] ) && ( int ) $ data [ 1 ] && $ data [ 1 ] == abs ( $ data [ 1 ] ) ) $ rows = ( int ) $ data [ 1 ] ; $ this -> builder -> setLimit ( $ rows ) ; $ this -> builder -> setOffset ( $ offset ) ; return array ( ) ; }
Base Statement Component for Offseting and Limiting.
@access		public
@param		array		$data		Pair of Offset and Limit
@return		array
@deprecated	use setLimit and setOffset instead
Base Statement Component for Offseting and Limiting .