appdb/include bugs.php comment.php downloadurl ...
WineHQ
wineowner at wine.codeweavers.com
Sat Sep 8 17:29:18 CDT 2007
ChangeSet ID: 31361
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/09/08 17:29:18
Modified files:
include : bugs.php comment.php downloadurl.php
maintainer.php monitor.php note.php
screenshot.php testData.php url.php
Log message:
Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Add objectGetChildren() method to classes without child objects
Patch: http://cvs.winehq.org/patch.py?id=31361
Old revision New revision Changes Path
1.31 1.32 +5 -0 appdb/include/bugs.php
1.39 1.40 +5 -0 appdb/include/comment.php
1.24 1.25 +6 -0 appdb/include/downloadurl.php
1.56 1.57 +6 -0 appdb/include/maintainer.php
1.19 1.20 +6 -0 appdb/include/monitor.php
1.28 1.29 +5 -0 appdb/include/note.php
1.77 1.78 +6 -0 appdb/include/screenshot.php
1.78 1.79 +6 -0 appdb/include/testData.php
1.22 1.23 +5 -0 appdb/include/url.php
Index: appdb/include/bugs.php
diff -u -p appdb/include/bugs.php:1.31 appdb/include/bugs.php:1.32
--- appdb/include/bugs.php:1.31 8 Sep 2007 22:29:18 -0000
+++ appdb/include/bugs.php 8 Sep 2007 22:29:18 -0000
@@ -269,6 +269,11 @@ class Bug
}
}
+ function objectGetChildren()
+ {
+ return array();
+ }
+
/* Get a list of bugs submitted by a given user */
function listSubmittedBy($iUserId, $bQueued = true)
{
Index: appdb/include/comment.php
diff -u -p appdb/include/comment.php:1.39 appdb/include/comment.php:1.40
--- appdb/include/comment.php:1.39 8 Sep 2007 22:29:18 -0000
+++ appdb/include/comment.php 8 Sep 2007 22:29:18 -0000
@@ -379,6 +379,11 @@ class Comment {
echo "</ul>\n";
}
+ function objectGetChildren()
+ {
+ return array();
+ }
+
function display_comments_threaded($versionId, $threadId = 0)
{
$hResult = Comment::grab_comments($versionId, $threadId);
Index: appdb/include/downloadurl.php
diff -u -p appdb/include/downloadurl.php:1.24 appdb/include/downloadurl.php:1.25
--- appdb/include/downloadurl.php:1.24 8 Sep 2007 22:29:18 -0000
+++ appdb/include/downloadurl.php 8 Sep 2007 22:29:18 -0000
@@ -63,6 +63,12 @@ class downloadurl
return $sReturn;
}
+ function objectGetChildren()
+ {
+ /* We have none */
+ return array();
+ }
+
/* Output an editor for Download URL fields */
function outputEditor($oVersion = null, $sFormAction = null)
{
Index: appdb/include/maintainer.php
diff -u -p appdb/include/maintainer.php:1.56 appdb/include/maintainer.php:1.57
--- appdb/include/maintainer.php:1.56 8 Sep 2007 22:29:18 -0000
+++ appdb/include/maintainer.php 8 Sep 2007 22:29:18 -0000
@@ -819,6 +819,12 @@ class maintainer
return array($aItemsPerPage, $iDefaultPerPage);
}
+ function objectGetChildren()
+ {
+ /* We have none */
+ return array();
+ }
+
function update()
{
/* STUB: No updating possible at the moment */
Index: appdb/include/monitor.php
diff -u -p appdb/include/monitor.php:1.19 appdb/include/monitor.php:1.20
--- appdb/include/monitor.php:1.19 8 Sep 2007 22:29:18 -0000
+++ appdb/include/monitor.php 8 Sep 2007 22:29:18 -0000
@@ -61,6 +61,12 @@ class Monitor {
}
}
+ function objectGetChildren()
+ {
+ /* We have none */
+ return array();
+ }
+
/*
* Creates a new Monitor.
* Informs interested people about the creation.
Index: appdb/include/note.php
diff -u -p appdb/include/note.php:1.28 appdb/include/note.php:1.29
--- appdb/include/note.php:1.28 8 Sep 2007 22:29:18 -0000
+++ appdb/include/note.php 8 Sep 2007 22:29:18 -0000
@@ -311,6 +311,11 @@ class Note {
return $oManager->makeUrl("view", $this->objectGetId());
}
+ function objectGetChildren()
+ {
+ return array();
+ }
+
//TODO: not sure if we want to use sTitle here or what
function objectMakeLink()
{
Index: appdb/include/screenshot.php
diff -u -p appdb/include/screenshot.php:1.77 appdb/include/screenshot.php:1.78
--- appdb/include/screenshot.php:1.77 8 Sep 2007 22:29:18 -0000
+++ appdb/include/screenshot.php 8 Sep 2007 22:29:18 -0000
@@ -297,6 +297,12 @@ class screenshot
return $this->oScreenshotImage->get_width();
}
+ function objectGetChildren()
+ {
+ /* We have none */
+ return array();
+ }
+
function get_screenshot_height()
{
$this->load_image(false);
Index: appdb/include/testData.php
diff -u -p appdb/include/testData.php:1.78 appdb/include/testData.php:1.79
--- appdb/include/testData.php:1.78 8 Sep 2007 22:29:18 -0000
+++ appdb/include/testData.php 8 Sep 2007 22:29:18 -0000
@@ -1079,6 +1079,12 @@ class testData{
return TRUE;
}
+ function objectGetChildren()
+ {
+ /* We have none */
+ return array();
+ }
+
function objectDisplayAddItemHelp()
{
echo "<p>This is the screen for inputing test information so that others ";
Index: appdb/include/url.php
diff -u -p appdb/include/url.php:1.22 appdb/include/url.php:1.23
--- appdb/include/url.php:1.22 8 Sep 2007 22:29:18 -0000
+++ appdb/include/url.php 8 Sep 2007 22:29:18 -0000
@@ -499,6 +499,11 @@ class Url {
return $sReturn;
}
+ function objectGetChildren()
+ {
+ return array();
+ }
+
// if a url lacks "://" assume the url is an http one
// and prepend "http://"
function normalize($sTheUrl)
More information about the wine-cvs
mailing list