library/Haste/Model/MemberModel.php
public static function findActiveById($intId, array $arrOptions = [])
	{
		$t    = static::$strTable;
		$time = \Date::floorToMinute();

		$arrColumns = ["$t.login='1' AND ($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ($time + 60) . "') AND $t.disable=''"];

		$arrColumns[] = "$t.id = ?";

		return static::findOneBy($arrColumns, $intId, $arrOptions);
	}
public static function findActiveById($intId, array $arrOptions = [])
	{
		$t    = static::$strTable;
		$time = \Date::floorToMinute();

		$arrColumns = ["$t.login='1' AND ($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ($time + 60) . "') AND $t.disable=''"];

		$arrColumns[] = "$t.id = ?";

		return static::findOneBy($arrColumns, $intId, $arrOptions);
	}
public static function findActiveById ( $ intId , array $ arrOptions = [ ] ) { $ t = static :: $ strTable ; $ time = \ Date :: floorToMinute ( ) ; $ arrColumns = [ "$t.login='1' AND ($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'" . ( $ time + 60 ) . "') AND $t.disable=''" ] ; $ arrColumns [ ] = "$t.id = ?" ; return static :: findOneBy ( $ arrColumns , $ intId , $ arrOptions ) ; }
Find active members by id

@param int   $intId
@param array $arrOptions

@return \MemberModel|\MemberModel[]|\Model\Collection|null
Find active members by id