public static function find_by_user_id($user_id = null)
	{
		if (empty($user_id))
		{
			return false;
		}

		$l = self::blank()->getTableName();
		$d = Domain::blank()->getTableName();

		$results = self::all()
			->select($l . '.*')
			->select($d . '.authenticator', 'auth_domain_name')
			->join($d, $d . '.id', $l . '.auth_domain_id', 'inner')
			->whereEquals($l . '.user_id', $user_id)
			->rows();

		if (empty($results))
		{
			return false;
		}

		return $results->toArray();
	}
public static function find_by_user_id($user_id = null)
	{
		if (empty($user_id))
		{
			return false;
		}

		$l = self::blank()->getTableName();
		$d = Domain::blank()->getTableName();

		$results = self::all()
			->select($l . '.*')
			->select($d . '.authenticator', 'auth_domain_name')
			->join($d, $d . '.id', $l . '.auth_domain_id', 'inner')
			->whereEquals($l . '.user_id', $user_id)
			->rows();

		if (empty($results))
		{
			return false;
		}

		return $results->toArray();
	}
public static function find_by_user_id ( $ user_id = null ) { if ( empty ( $ user_id ) ) { return false ; } $ l = self :: blank ( ) -> getTableName ( ) ; $ d = Domain :: blank ( ) -> getTableName ( ) ; $ results = self :: all ( ) -> select ( $ l . '.*' ) -> select ( $ d . '.authenticator' , 'auth_domain_name' ) -> join ( $ d , $ d . '.id' , $ l . '.auth_domain_id' , 'inner' ) -> whereEquals ( $ l . '.user_id' , $ user_id ) -> rows ( ) ; if ( empty ( $ results ) ) { return false ; } return $ results -> toArray ( ) ; }
Return array of linked accounts associated with a given user id
Also include auth domain name for easy display of domain name

@param   integer  $user_id  ID of user to return accounts for
@return  array    Array of auth link entries for the given user_id
Return array of linked accounts associated with a given user id Also include auth domain name for easy display of domain name