public static function allForRecipient($scope, $scope_id = 0)
	{
		if (!is_array($scope))
		{
			$scope = array($scope);
		}

		$logs = self::all();

		$r = Recipient::blank()->getTableName();
		$l = $logs->getTableName();

		$logs
			->select($l . '.*')
			->join($r, $l . '.id', $r . '.log_id')
			->whereIn($r . '.scope', $scope)
			->whereEquals($r . '.scope_id', $scope_id);

		return $logs;
	}
public static function allForRecipient($scope, $scope_id = 0)
	{
		if (!is_array($scope))
		{
			$scope = array($scope);
		}

		$logs = self::all();

		$r = Recipient::blank()->getTableName();
		$l = $logs->getTableName();

		$logs
			->select($l . '.*')
			->join($r, $l . '.id', $r . '.log_id')
			->whereIn($r . '.scope', $scope)
			->whereEquals($r . '.scope_id', $scope_id);

		return $logs;
	}
public static function allForRecipient ( $ scope , $ scope_id = 0 ) { if ( ! is_array ( $ scope ) ) { $ scope = array ( $ scope ) ; } $ logs = self :: all ( ) ; $ r = Recipient :: blank ( ) -> getTableName ( ) ; $ l = $ logs -> getTableName ( ) ; $ logs -> select ( $ l . '.*' ) -> join ( $ r , $ l . '.id' , $ r . '.log_id' ) -> whereIn ( $ r . '.scope' , $ scope ) -> whereEquals ( $ r . '.scope_id' , $ scope_id ) ; return $ logs ; }
Get all logs for a recipient

@param   string   $scope
@param   integer  $scope_id
@return  boolean
Get all logs for a recipient