library/Haste/Model/MemberModel.php
public static function findByEmail($strEmail, array $arrOptions = [])
	{
		$time = time();
		$t    = static::$strTable;

		$arrColumns = ["LOWER($t.email)=? AND ($t.start='' OR $t.start<$time) AND ($t.stop='' OR $t.stop>$time)"];

		return static::findOneBy($arrColumns, [$strEmail], $arrOptions);
	}
public static function findByEmail($strEmail, array $arrOptions = [])
	{
		$time = time();
		$t    = static::$strTable;

		$arrColumns = ["LOWER($t.email)=? AND ($t.start='' OR $t.start<$time) AND ($t.stop='' OR $t.stop>$time)"];

		return static::findOneBy($arrColumns, [$strEmail], $arrOptions);
	}
public static function findByEmail ( $ strEmail , array $ arrOptions = [ ] ) { $ time = time ( ) ; $ t = static :: $ strTable ; $ arrColumns = [ "LOWER($t.email)=? AND ($t.start='' OR $t.start<$time) AND ($t.stop='' OR $t.stop>$time)" ] ; return static :: findOneBy ( $ arrColumns , [ $ strEmail ] , $ arrOptions ) ; }
Find a member by e-mail-address

@param string $strEmail   The e-mail address
@param array  $arrOptions An optional options array

@return \Model|null The model or null if there is no member
Find a member by e - mail - address