Exemplo n.º 1
0
 /**
  * Returns an instnace of the SilkForm singleton.  Most
  * people can generally use forms() instead of this, but they
  * both do the same thing.
  *
  * @return SilkForm The singleton SilkForm instance
  * @author Ted Kulp
  **/
 public static function get_instance()
 {
     if (self::$instance == NULL) {
         self::$instance = new SilkForm();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
/**
 * Returns the instance of the SilkForm object.
 *
 * @return SilkForm The SilkForm object
 * @author Ted Kulp
 **/
function forms()
{
    return SilkForm::get_instance();
}