The attorney for this city, or his duly designated assistant, shall be the prosecuting officer of the court. He shall also prosecute all alleged violations of the ordinances of the city. He shall be authorized, in his discretion, to prosecute and resist appeal, proceedings in error and review from this court to any other court of the state, and to represent this city in all proceedings arising out of matters in this court. (Prior code § 12-15)