All courts and law enforcement agencies of the State of Illinois and its political subdivisions shall report to the principal of any public school in this State whenever a child enrolled therein is detained for proceedings under the Juvenile Court Act of 1987, as heretofore and hereafter amended, or for any criminal offense, including illegal gang activity, or any violation of a municipal or county ordinance. The report shall include the basis for detaining the child, circumstances surrounding the events which led to the child's detention, and status of proceedings. The report shall be updated as appropriate to notify the principal of developments and the disposition of the matter.
The information derived thereby shall be kept separate from and shall not become a part of the official school record of such child and shall not be a public record. Such information shall be used solely by the appropriate school official or officials whom the school has determined to have a legitimate educational or safety interest to aid in the proper rehabilitation of the child and to protect the safety of students and employees in the school.
105 ILCS 5/22-20