Update:Archive/2.0/Developers/Common Code: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Update:Home_Page|Update: Home Page]] » [[Update:Development|Development]] » Common Code
{{AmoArchive}}
 
== OOP or not? ==
 
It has been discussed on the #umo channel that we may want to use OOP design to develop v2.0 of the UMO service.  The following documents discuss the use of OOP with PHP:
 
* [http://www.sitepoint.com/blog-post-view.php?id=223760 OOP and Performance]
* [http://www.webmasterstop.com/tutorials/efficiency-PHP-OOP.shtml Efficiency of PHP OOP -- rebuttal is above]


== Functions We Need ==
== Functions We Need ==
Line 11: Line 18:
* deleteRating($versionID)
* deleteRating($versionID)
* sendEmail($userID)
* sendEmail($userID)
* mainTypeToName($mainType) returns string such as "extensions", "themes", or "plugins"


== Global Variables We Need ==
== Global Variables We Need ==

Latest revision as of 00:51, 29 April 2007

« Back to Archive | Update: Main

Ambox outdated.png THIS PAGE MAY BE OUTDATED
This article is in parts, or in its entirety, outdated. Hence, the information presented on this page may be incorrect, and should be treated with due caution until this flag has been lifted. Help by editing the article, or discuss its contents on the talk page.

OOP or not?

It has been discussed on the #umo channel that we may want to use OOP design to develop v2.0 of the UMO service. The following documents discuss the use of OOP with PHP:

Functions We Need

  • isSpecialCategory($categoryName)
  • addMain() returns $mainID
  • deleteMain($mainID)
  • addVersion() returns $versionID
  • deleteVersion($versionID)
  • disableUser($userID)
  • addRating($versionID)
  • deleteRating($versionID)
  • sendEmail($userID)
  • mainTypeToName($mainType) returns string such as "extensions", "themes", or "plugins"

Global Variables We Need

  • CSS Path
  • Image Path
  • Mirror Path

Functions We Have

Global Variables We Have