to act as; to serve as; when
courtyard, front yard
More common words that include characters from 当庭.