private function renderAntiSpam() {

		$secret	= md5(uniqid(null, true));
		$label	= md5($secret);
		
		Session::getSessionDataBag()->set('antiSpamTimer', [$secret => microtime(true)]);

		$e = new InputElement('verify', null);
		$e->setAttribute('type', 'hidden');

		$this->addElement($e);
		$e->setValue($secret);

		return sprintf("
			<div>%s
				<span style='display:none;'>
					<label for='confirm_entry_%s'>Leave this field empty!</label>
					<input id='confirm_entry_%s' name='confirm_entry_%s' value=''>
				</span>
			</div>", $e->render(), $label, $label, $label);

	}
private function renderAntiSpam() {

		$secret	= md5(uniqid(null, true));
		$label	= md5($secret);
		
		Session::getSessionDataBag()->set('antiSpamTimer', [$secret => microtime(true)]);

		$e = new InputElement('verify', null);
		$e->setAttribute('type', 'hidden');

		$this->addElement($e);
		$e->setValue($secret);

		return sprintf("
			<div>%s
				<span style='display:none;'>
					<label for='confirm_entry_%s'>Leave this field empty!</label>
					<input id='confirm_entry_%s' name='confirm_entry_%s' value=''>
				</span>
			</div>", $e->render(), $label, $label, $label);

	}
private function renderAntiSpam ( ) { $ secret = md5 ( uniqid ( null , true ) ) ; $ label = md5 ( $ secret ) ; Session :: getSessionDataBag ( ) -> set ( 'antiSpamTimer' , [ $ secret => microtime ( true ) ] ) ; $ e = new InputElement ( 'verify' , null ) ; $ e -> setAttribute ( 'type' , 'hidden' ) ; $ this -> addElement ( $ e ) ; $ e -> setValue ( $ secret ) ; return sprintf ( "
			<div>%s
				<span style='display:none;'>
					<label for='confirm_entry_%s'>Leave this field empty!</label>
					<input id='confirm_entry_%s' name='confirm_entry_%s' value=''>
				</span>
			</div>" , $ e -> render ( ) , $ label , $ label , $ label ) ; }
render spam countermeasures
@throws HtmlFormException
render spam countermeasures