The provisions of Title 26 shall not apply to public school teachers in relation to corporal punishment of students when the punishment is consistent with established written policies of the employing board of education. Neither shall the provisions of Title 26 apply to public school teachers or other employees while maintaining order and discipline in the classroom and on public school property, including school buses, consistent with written policies of the employing board of education.