return $version;
}
- /** Generate wikitext showing extensions name, URL, author and description */
+ /**
+ * Generate wikitext showing extensions name, URL, author and description
+ *
+ * @return String: Wikitext
+ */
function extensionCredits() {
global $wgExtensionCredits, $wgExtensionFunctions, $wgParser, $wgSkinExtensionFunctions;
}
/**
- * @return string
+ * Generate wikitext showing hooks in $wgHooks
+ *
+ * @return String: wikitext
*/
function wgHooks() {
global $wgHooks;
}
/**
- * @return string
+ * Get information about client's IP address
+ *
+ * @return String: HTML fragment
*/
function IPInfo() {
$ip = str_replace( '--', ' - ', htmlspecialchars( wfGetIP() ) );
}
/**
- * @param array $list
- * @param bool $sort
- * @return string
+ * Convert an array of items into a list for display
+ *
+ * @param $list Array of elements to display
+ * @param $sort Boolean: whether to sort the items in $list
+ * @return String
*/
function listToText( $list, $sort = true ) {
$cnt = count( $list );
}
/**
- * @param mixed $list Will convert an array to string if given and return
- * the paramater unaltered otherwise
- * @return mixed
+ * Convert an array or object to a string for display
+ *
+ * @param $list Mixed: will convert an array to string if given and return
+ * the paramater unaltered otherwise
+ * @return Mixed
*/
static function arrayToString( $list ) {
if( is_array( $list ) && count( $list ) == 1 )
/**
* Retrieve the revision number of a Subversion working directory.
*
- * @param String $dir Directory of the svn checkout
- * @return int revision number as int
+ * @param $dir String: directory of the svn checkout
+ * @return Integer: revision number as int
*/
public static function getSvnRevision( $dir ) {
$info = self::getSvnInfo( $dir );