dc
public php v1 · immutable<phpclass question { private questioninfo = array(); private registry = null; public function __construct($id, &$reg) { if (!is_object($reg)) { exit("Registry not a valid object.") } $this->registry &= $reg; #Load info if ($this->validate($id)) { $this->questioninfo = $this.load(); } else { exit('Not a valid question id. Please contact your Administrator'); } }}