Module: appdb
Branch: master
Commit: 71ac4f0c838324748f17d8e2a526153318c9a849
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=71ac4f0c838324748f17d8e2…
Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com>
Date: Sun Jan 12 15:34:44 2014 +0100
distribution: Mark some functions as static
---
include/distribution.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/distribution.php b/include/distribution.php
index 354e585..3031d6d 100644
--- a/include/distribution.php
+++ b/include/distribution.php
@@ -504,7 +504,7 @@ class distribution {
}
/* Get the total number of Distributions in the database */
- function objectGetEntriesCount($sState, $oFilter = null)
+ public static function objectGetEntriesCount($sState, $oFilter = null)
{
/* Not implemented */
if($sState == 'rejected')
@@ -528,7 +528,7 @@ class distribution {
}
/* Make a dropdown list of distributions */
- function make_distribution_list($varname, $cvalue)
+ public static function make_distribution_list($varname, $cvalue)
{
$sQuery = "SELECT name, distributionId FROM distributions
WHERE state = 'accepted'
@@ -572,7 +572,7 @@ class distribution {
return 'name';
}
- function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = "name", $bAscending = TRUE, $oFilter = null)
+ public static function objectGetEntries($sState, $iRows = 0, $iStart = 0, $sOrderBy = "name", $bAscending = TRUE, $oFilter = null)
{
/* Not implemented */
if($sState == 'rejected')
Module: appdb
Branch: master
Commit: 16b8b1ef8024a76cabb69e64ffe70ee189f6262e
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=16b8b1ef8024a76cabb69e64…
Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com>
Date: Sun Jan 12 15:33:27 2014 +0100
downloadurl: Mark a function as static
---
include/downloadurl.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/downloadurl.php b/include/downloadurl.php
index d4d4b03..312c542 100644
--- a/include/downloadurl.php
+++ b/include/downloadurl.php
@@ -45,7 +45,7 @@ class downloadurl
}
/* Display download links for a given version */
- function display($iVersionId)
+ public static function display($iVersionId)
{
if(!($hResult = appData::getData($iVersionId, "downloadurl")))
return FALSE;
Module: appdb
Branch: master
Commit: f4f040118d3314822f3552023b66e3b717e36805
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=f4f040118d3314822f355202…
Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com>
Date: Sun Jan 12 15:32:05 2014 +0100
version: Mark some functions as static
---
include/version.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/version.php b/include/version.php
index b042939..7f5d7db 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1196,7 +1196,7 @@ class version {
return $ob->versionName;
}
- function fullName($iVersionId)
+ public static function fullName($iVersionId)
{
if(!$iVersionId)
return FALSE;
@@ -1401,14 +1401,14 @@ class version {
}
/* Returns an array containg the different software licences */
- public function getLicenses()
+ public static function getLicenses()
{
return array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREETOUSE,
LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE);
}
// returns a string containing the html for a selection list
- public function makeLicenseList($sLicense = NULL)
+ public static function makeLicenseList($sLicense = NULL)
{
if(!$sLicense)
$sLicense = $this->sLicense;
Module: appdb
Branch: master
Commit: 059ddaa60ec92a59e25625bf952a8e658cd69ed3
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=059ddaa60ec92a59e25625bf…
Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com>
Date: Sun Jan 12 15:30:54 2014 +0100
user: Mark some functions as static
---
include/user.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/user.php b/include/user.php
index 4ebd925..1ec149d 100644
--- a/include/user.php
+++ b/include/user.php
@@ -449,7 +449,7 @@ class User {
/**
* Creates a new random password.
*/
- function generate_passwd($pass_len = 10)
+ public static function generate_passwd($pass_len = 10)
{
$nps = "";
mt_srand ((double) microtime() * 1000000);
@@ -465,7 +465,7 @@ class User {
* Check if a user exists.
* returns the userid if the user exists
*/
- function exists($sEmail)
+ public static function exists($sEmail)
{
$hResult = query_parameters("SELECT userid FROM user_list WHERE email = '?'",
$sEmail);
@@ -483,7 +483,7 @@ class User {
* Get the number of users in the database
* The parameters are only included for compatibility; we don't queue users
*/
- function objectGetEntriesCount($bQueued = null, $bRejected = null)
+ public static function objectGetEntriesCount($bQueued = null, $bRejected = null)
{
$hResult = query_parameters("SELECT count(*) as num_users FROM user_list;");
$oRow = query_fetch_object($hResult);
@@ -493,7 +493,7 @@ class User {
/**
* Get the number of active users within $days of the current day
*/
- function active_users_within_days($days)
+ public static function active_users_within_days($days)
{
$hResult = query_parameters("SELECT count(*) as num_users FROM user_list WHERE stamp >= DATE_SUB(CURDATE(), interval '?' day);",
$days);
@@ -505,7 +505,7 @@ class User {
* Get the count of users who have been warned for inactivity and are
* pending deletion after the X month grace period
*/
- function get_inactive_users_pending_deletion()
+ public static function get_inactive_users_pending_deletion()
{
/* retrieve the number of users that have been warned and are pending deletion */
$hResult = query_parameters("select count(*) as count from user_list where inactivity_warned = 'true'");
@@ -516,7 +516,7 @@ class User {
/**
* Get the email address of people to notify for this appId and versionId.
*/
- function get_notify_email_address_list($iAppId = null, $iVersionId = null)
+ public static function get_notify_email_address_list($iAppId = null, $iVersionId = null)
{
$aUserId = array();
$sRetval = "";
Module: appdb
Branch: master
Commit: 6d54925913dca1dc3c7840cf04030c6316b19233
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=6d54925913dca1dc3c7840cf…
Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com>
Date: Sun Jan 12 15:30:10 2014 +0100
url: Mark some functions as static
---
include/url.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/url.php b/include/url.php
index 15d33ef..9f0e3fc 100644
--- a/include/url.php
+++ b/include/url.php
@@ -474,7 +474,7 @@ class Url {
}
/* Display links for a given version/application */
- function display($iVersionId, $iAppId = NULL)
+ public static function display($iVersionId, $iAppId = NULL)
{
if($iVersionId)
{
@@ -543,7 +543,7 @@ class Url {
// if a url lacks "://" assume the url is an http one
// and prepend "http://"
- function normalize($sTheUrl)
+ public static function normalize($sTheUrl)
{
// return if we have an empty string
if($sTheUrl == "")