public function getRefs() { $refs = []; foreach ($this->elements as $key => $val) { if (substr($key, 0, 5) == '#ref_') { $refs[substr($key, 5)] = $val; } } return $refs; }