(a) The governing board of a school district that establishes a community day school shall adopt policies that provide procedures for the involuntary transfer of pupils to a community day school.
(b) A pupil may be assigned to a community day school only if he or she meets one or more of the following conditions:
(1) The pupil is expelled for any reason.
(2) The pupil is probation referred pursuant to Sections 300 and 602 of the Welfare and Institutions Code.
(3) The pupil is referred to a community day school by a school attendance review board or other district level referral process.
(4) First priority for assignment to a community day school shall be given to a pupil expelled pursuant to subdivision (d) of Section 48915, second priority shall be given to pupils expelled for any other reasons, and third priority shall be given for placement to all other pupils pursuant to this section, unless there is an agreement that the county superintendent of schools shall serve any of these pupils.