/** * lazy loads the person's go object */ public function _load_go() { require_once 'go.class.php'; $go = new go($this->person->wp_id); $this->person->go = $go; $this->person->go_states = $go->getStates(); }