department or office thereof, involving both labor and materials, where the materials are furnished by the contractor and  not by the city, shall not be deemed to be within the provisions of this section, and such contracts shall be made in accordance with other sections of this chapter. In cases of emergency the Governor-General may authorize the city or any department or offic e thereof to make purchases directly and not through the Purchasing Agent. [1963-14.] SECTION  2540 . The City Attorney . — There shall be a city attorney who shall be the chief legal adviser of the city, and who shall have the following general powers and duties: Law ( a ) He shall represent the city in all civil cases wherein the city or any officer thereof, in his official capacity, is a party. ( b ) He shall, when required, draw ordinances, contracts, bonds, leases, and other instruments involving any interest of the city, and inspect and pass upon any such instruments already drawn. ( c ) He shall give his opinion in writing, when requested by the mayor or the council, upon any question relating to the city or the rights or duties of any city officer. ( d ) He shall, whenever it is brought to his knowledge that any city officer is guilty of neglect or misconduct in office, or that any person, firm, or corporation holding or exercising any franchise or public privilege from the city, has failed to comply w ith any condition, or to pay any consideration mentioned in the grant of such franchise or privilege, investigate or cause to be investigated the same and report to the mayor. ( e ) He shall have charge of the prosecution of all crimes and misdemeanors and violations of city ordinances in the justice of the peace court. The fiscal of the Mountain Province shall have charge of all prosecutions of crimes, misdemeanors, and violation s of city ordinances appealed to, or brought before, the Court of First Instance of the Mountain Province. (f) He shall investigate all charges of crimes, misdemeanors, and ARTICLE  VI Copyright 2012 CD Technologies Asia, Inc. and Accesslaw, Inc. Philippine Law Encyclopedia 2011 776