Dublin football star Diarmuid Connolly has been ordered by a judge to spend 80 hours teaching Gaelic football to children following an unprovoked attack on a man in a pub.

Connolly, 26, had pleaded guilty to assault causing harm to Anthony Kelly at McGowan's pub in Phibsboro, Dublin, on 6 August 2012.

An unreserved apology, which was accepted by Mr Kelly - who suffered a fractured eye-socket in the assault - was issued by Connolly's lawyer during a hearing last year at Dublin District Court.

Mr Kelly had refused to accept compensation from him so the footballer gave €5,000 to Barnardos and the Rape Crisis Centre instead.

Connolly had also been ordered to complete an anger-management course and a probation report was sought by Judge Patrick Clyne who described the attack as unprovoked.

The judge has also pointed out that Connolly had donated to charities sums of money which were considerably greater than the maximum fine the district court could impose.

Today, Judge Clyne read the report as well as documentation in relation to the anger-management course.

Judge Clyne said he wanted Connolly to do "80 hours' voluntary service at GAA, dealing with children, over the summer months, teaching them, coaching them".

Defence solicitor Michael Hanahoe said his client was "happy to do it, proud to do it and willing to do it".

The case was adjourned until September but the judge, who said he wanted to "draw a line under it", added that the matter can be re-entered before then if the voluntary work is completed before the next court date.

Earlier, the All-Ireland winning forward's lawyer told the court that Connolly "apologises unreservedly to Mr Kelly".

Connolly had also shaken hands with the victim who had accepted his apology at an earlier stage in the case.

The attack happened less than two days after Dublin defeated Laois in a quarter-final of the 2012 All Ireland Senior Football Championship

Connolly, who also plays for St Vincent's, has no prior criminal convictions, and his offence carries a possible sentence of up to one year.

In an outline of the prosecution's evidence given earlier, the court had been told that the attack happened at 3.40am in McGowan's pub.

"It is alleged that the injured party was socialising with a friend, it would be alleged that the accused assaulted him in an unprovoked attack," Judge Clyne has heard.

Connolly, who has an address at Collins Park, Beaumont, north Dublin, "punched him in the face".

Mr Kelly, who is in his 30s, was knocked down and Connolly then "continued to punch him on the ground".

Mr Kelly suffered a fractured eye socket during the attack, but he has recovered, the district court has heard.