public function set_campus($campus) {
        $campus = !is_array($campus) ? array($campus) : $campus;

        $this->_campus = array();
        foreach ($campus as $c) {
            $c = strtolower($c);
            if (!in_array($c, array('canterbury', 'medway'))) {
                throw new \Exception("Invalid campus: '{$campus}'.");
            }

            $this->_campus[] = $c;
        }
    }
public function set_campus($campus) {
        $campus = !is_array($campus) ? array($campus) : $campus;

        $this->_campus = array();
        foreach ($campus as $c) {
            $c = strtolower($c);
            if (!in_array($c, array('canterbury', 'medway'))) {
                throw new \Exception("Invalid campus: '{$campus}'.");
            }

            $this->_campus[] = $c;
        }
    }
public function set_campus ( $ campus ) { $ campus = ! is_array ( $ campus ) ? array ( $ campus ) : $ campus ; $ this -> _campus = array ( ) ; foreach ( $ campus as $ c ) { $ c = strtolower ( $ c ) ; if ( ! in_array ( $ c , array ( 'canterbury' , 'medway' ) ) ) { throw new \ Exception ( "Invalid campus: '{$campus}'." ) ; } $ this -> _campus [ ] = $ c ; } }
Set the campus we want lists from.
Defaults to all lists.

@param string $campus Canterbury or Medway, or an array of both.
Set the campus we want lists from . Defaults to all lists .