The compensation and the time to be devoted to the performance of the duties of the mayor and elected officials of all cities of the first class shall be as fixed by ordinance of said city irrespective of any city charter provisions.