コード例 #1
0
ファイル: class.silk_form.php プロジェクト: JackSpratt/silk
 /**
  * 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;
 }
コード例 #2
0
ファイル: silk.api.php プロジェクト: JackSpratt/silk
/**
 * Returns the instance of the SilkForm object.
 *
 * @return SilkForm The SilkForm object
 * @author Ted Kulp
 **/
function forms()
{
    return SilkForm::get_instance();
}