Notwithstanding any law to the contrary, any secondary school student who has completed all required courses or standards may, with the approval of the student, the student’s parent or guardian, and local school officials, graduate before the completion of the school year.