library/Haste/Model/MemberModel.php
public static function findOrCreate($strEmail)
	{
		$objMember = static::findByEmail($strEmail);

		if ($objMember === null)
		{
			$objMember            = new \MemberModel();
			$objMember->dateAdded = time();
			$objMember->tstamp    = time();
			$objMember->email     = trim(strtolower($strEmail));
			$objMember->save();
		}

		return $objMember;
	}
public static function findOrCreate($strEmail)
	{
		$objMember = static::findByEmail($strEmail);

		if ($objMember === null)
		{
			$objMember            = new \MemberModel();
			$objMember->dateAdded = time();
			$objMember->tstamp    = time();
			$objMember->email     = trim(strtolower($strEmail));
			$objMember->save();
		}

		return $objMember;
	}
public static function findOrCreate ( $ strEmail ) { $ objMember = static :: findByEmail ( $ strEmail ) ; if ( $ objMember === null ) { $ objMember = new \ MemberModel ( ) ; $ objMember -> dateAdded = time ( ) ; $ objMember -> tstamp = time ( ) ; $ objMember -> email = trim ( strtolower ( $ strEmail ) ) ; $ objMember -> save ( ) ; } return $ objMember ; }
Tries to find a member with the given email address. If found, this member is returned, if not a new member with this email address is created.

@param $strEmail

@return \MemberModel
Tries to find a member with the given email address . If found this member is returned if not a new member with this email address is created .