public function automaticAuthenticator($data)
	{
		$alias = $data['authenticator'];
		$alias = strip_tags($alias);
		$alias = trim($alias);
		if (strlen($alias) > 255)
		{
			$alias = substr($alias . ' ', 0, 255);
			$alias = substr($alias, 0, strrpos($alias, ' '));
		}

		return preg_replace("/[^a-zA-Z0-9]/", '', strtolower($alias));
	}
public function automaticAuthenticator($data)
	{
		$alias = $data['authenticator'];
		$alias = strip_tags($alias);
		$alias = trim($alias);
		if (strlen($alias) > 255)
		{
			$alias = substr($alias . ' ', 0, 255);
			$alias = substr($alias, 0, strrpos($alias, ' '));
		}

		return preg_replace("/[^a-zA-Z0-9]/", '', strtolower($alias));
	}
public function automaticAuthenticator ( $ data ) { $ alias = $ data [ 'authenticator' ] ; $ alias = strip_tags ( $ alias ) ; $ alias = trim ( $ alias ) ; if ( strlen ( $ alias ) > 255 ) { $ alias = substr ( $ alias . ' ' , 0 , 255 ) ; $ alias = substr ( $ alias , 0 , strrpos ( $ alias , ' ' ) ) ; } return preg_replace ( "/[^a-zA-Z0-9]/" , '' , strtolower ( $ alias ) ) ; }
Generates automatic authenticator field value

@param   array   $data  the data being saved
@return  string
Generates automatic authenticator field value