All pastes #206879 Raw Edit

dc

public php v1 · immutable
#206879 ·published 2006-10-17 17:05 UTC
rendered paste body
<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');       }   }}