http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82897

Revision: 82897
Author:   yaron
Date:     2011-02-27 16:32:31 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
Added in basic structure for Javascript handling, plus a small fix for 
'textarea with autocomplete'

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_FormInputs.php

Modified: trunk/extensions/SemanticForms/includes/SF_FormInputs.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormInputs.php   2011-02-27 
16:29:19 UTC (rev 82896)
+++ trunk/extensions/SemanticForms/includes/SF_FormInputs.php   2011-02-27 
16:32:31 UTC (rev 82897)
@@ -77,6 +77,26 @@
                $params[] = array( 'name' => 'property', 'type' => 'string', 
'description' => wfMsg( 'sf_forminputs_property' ) );
                return $params;
        }
+
+       /**
+        * Returns the name and parameters for the initialization Javascript
+        * function for this input type, if any.
+        *
+        * This function is not used yet.
+        */
+       public static function getInitJSFunction() {
+               return null;
+       }
+
+       /**
+        * Returns the name and parameters for the validation Javascript
+        * functions for this input type, if any.
+        *
+        * This function is not used yet.
+        */
+       public static function getValidationJSFunctions() {
+               return array();
+       }
 }
 
 /**
@@ -782,6 +802,10 @@
                return 'textarea with autocomplete';
        }
 
+       public static function getDefaultPropTypes() {
+               return array();
+       }
+
        public static function getOtherPropTypesHandled() {
                return array( '_wpg', '_str' );
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to