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

		$recipient = self::all();

		$r = $recipient->getTableName();
		$l = \Hubzero\Activity\Log::blank()->getTableName();

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

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

		$recipient = self::all();

		$r = $recipient->getTableName();
		$l = \Hubzero\Activity\Log::blank()->getTableName();

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

		return $recipient;
	}
public static function allForScope ( $ scope , $ scope_id = 0 ) { if ( ! is_array ( $ scope ) ) { $ scope = array ( $ scope ) ; } $ recipient = self :: all ( ) ; $ r = $ recipient -> getTableName ( ) ; $ l = \ Hubzero \ Activity \ Log :: blank ( ) -> getTableName ( ) ; $ recipient -> select ( $ r . '.*' ) -> including ( 'log' ) -> join ( $ l , $ l . '.id' , $ r . '.log_id' ) -> whereIn ( $ r . '.scope' , $ scope ) -> whereEquals ( $ r . '.scope_id' , $ scope_id ) ; return $ recipient ; }
Get all entries for a scope

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