protected function addDefaultParameters(&$request)
	{
		$defaultParameters = array(
			'all'=>1,
			'dir'=>'ASC',
			'start'=>0,
			'limit'=>999999999);

		foreach ($defaultParameters as $name=> $value)
			$request->getPost()->set($name, $value);
	}
protected function addDefaultParameters(&$request)
	{
		$defaultParameters = array(
			'all'=>1,
			'dir'=>'ASC',
			'start'=>0,
			'limit'=>999999999);

		foreach ($defaultParameters as $name=> $value)
			$request->getPost()->set($name, $value);
	}
protected function addDefaultParameters ( & $ request ) { $ defaultParameters = array ( 'all' => 1 , 'dir' => 'ASC' , 'start' => 0 , 'limit' => 999999999 ) ; foreach ( $ defaultParameters as $ name => $ value ) $ request -> getPost ( ) -> set ( $ name , $ value ) ; }
Adds default parameters to the request, such as sorting
@param \Zend\Http\Request $request the request
Adds default parameters to the request such as sorting