public function toString() { $a = ""; foreach ($this->context_ids as $id) { $a .= " {$id}"; } return parent::toString() . " id(s):" . $a; }