public function file($name = null, $multiple = false, array $accept = array()) 
	{
		Argument::i()
			->test(1, 'string', 'null')
			->test(2, 'bool');
			
		$field = File::i();
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if($multiple) {
			$field->setAttributes('multiple', 'multiple');
		}
		
		if(!empty($accept)) {
			$field->setAttributes('accept', implode(',', $accept));
		}
		
		return $field;
	}
public function file($name = null, $multiple = false, array $accept = array()) 
	{
		Argument::i()
			->test(1, 'string', 'null')
			->test(2, 'bool');
			
		$field = File::i();
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if($multiple) {
			$field->setAttributes('multiple', 'multiple');
		}
		
		if(!empty($accept)) {
			$field->setAttributes('accept', implode(',', $accept));
		}
		
		return $field;
	}
public function file ( $ name = null , $ multiple = false , array $ accept = array ( ) ) { Argument :: i ( ) -> test ( 1 , 'string' , 'null' ) -> test ( 2 , 'bool' ) ; $ field = File :: i ( ) ; if ( ! is_null ( $ name ) ) { $ field -> setName ( $ name ) ; } if ( $ multiple ) { $ field -> setAttributes ( 'multiple' , 'multiple' ) ; } if ( ! empty ( $ accept ) ) { $ field -> setAttributes ( 'accept' , implode ( ',' , $ accept ) ) ; } return $ field ; }
Returns a file field

@param string|null
@param bool
@param array
@return Eden\Block\Field\File
Returns a file field