Commit graph

17 commits

Author SHA1 Message Date
Tyler Anthony Romeo
4dcc7961df Fixed @param tags to conform with Doxygen format.
Doxygen expects parameter types to come before the
parameter name in @param tags. Used a quick regex
to switch everything around where possible. This
only fixes cases where a primitve variable (or a
primitive followed by other types) is the variable
type. Other cases will need to be fixed manually.

Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
2013-03-11 13:15:01 -04:00
Yuri Astrakhan
27d83878c0 Lots of spelling mistakes and phpdoc attributes
@throw->@throws
@returns->@return
@seealso->@see
@cover->@covers
etc

Change-Id: I9ae6bc3034e9790e2d66cd96473b923fe9ee7953
2013-03-10 23:16:28 -04:00
umherirrender
d63121016d fix some spacing
Added/removed spaces around logical/arithmetic operator
Reduced multiple empty lines to one empty line
Removed wrong tabs before comments at end of line
Removed too many spaces in assigments

Change-Id: I2bba4e72f9b5f88c53324d7b70e6042f1aad8f6b
2013-03-07 17:53:21 +01:00
daniel
4f15b61efe (minor) Make ORMTable handle failed queries nicely.
Database::select will return false if a query fails and the DB object
is set to "ignore errors" mode. ORMTable now detect this and throw
a DBQueryError, overriding the ignore errors mode.

This change also adds a dummy implementation for ORMTable to ORMTableTest,
so tests can be run on the base implementation.

Change-Id: I5d87295626c0800c38f807d19becb312ba7cc956
2013-01-07 14:14:56 +01:00
IAlex
517cc05f97 Merge "Remove static method from interface" 2012-12-09 09:39:12 +00:00
aude
50dfe471d0 add method to check if ORMTable exists
Change-Id: I7ef34545a9b4cfa6ed8bcdd302ad49faa7747974
2012-12-04 13:09:51 +00:00
jeroendedauw
3c958756e3 Remove static method from interface
Change-Id: I7ff44c228100a948189176d09a0a1bb1fe698458
2012-11-30 13:10:57 +01:00
Antoine Musso
9362bb6c56 miscellaneous doxygen warnings
* @licence -> @license
* Protects inline HTML by using double quotes, our inline comments uses
  elements such as <h1> or <firstnameLastname@gmail.com>
* Commands in lowercase (@TODO -> @todo, @NOTE -> @note)
* removes @abstract and @static since doxygen detects them from PHP
  code.
* various undocumented function parameters
* typos in parameters declarations

Change-Id: I62ad6fc124c355bf31acc780b9614a59cf79a421
2012-10-22 14:00:08 +02:00
daniel
000f5db360 Allow ORMTable to access a foreign wiki.
wfGetDB() allows us to connect to another wiki's database using
LoadBalancer's openForeignConnection method. This change adds an
option to ORMTable that allows it to use this facility, so it
can be used to access tables on other wikis.

Change-Id: I261a2a31e7188f6793b8a110ab764be5ecd09920
2012-10-11 17:51:15 +02:00
jeroendedauw
4130c7814d some doc for the ORM system
Change-Id: Icdfe6c754fdeddb42f0df04efcb1e06df8b73173
2012-07-26 10:31:38 +02:00
jeroendedauw
5dafc5f14f Improve names of factory methods in ORMTable. Now its clear that they create rows and not tables
Change-Id: Ia83c7c81f4ddd6d3304273094553c31c67fe85c8
2012-06-29 21:05:09 +02:00
Aaron Schulz
00ca49cda3 Merge "Added ORMIterator interface which can be used for type hinting (in particular when passing ORMResult objects)" 2012-06-15 19:09:51 +00:00
jeroendedauw
36a8c9b6ec Added ORMIterator interface which can be used for type hinting (in particular when passing ORMResult objects)
Change-Id: I0d14da35bf35be468a8e2c5530912992577e8dd8
2012-06-12 13:11:56 +02:00
jeroendedauw
7127713c78 Added some extra tests for ORMRow class
Change-Id: I672c88d42168a3daf405e6f0a4f204c15a4489ad
2012-06-07 13:18:49 +02:00
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
jeroendedauw
dc16ea18a7 Adding interfaces for ORM row and table classes so these can be used for type hinting in a way that does not prevent doing stuff such as the decorator pattern. Also made some minor fixes in the docs
Change-Id: I8ee1495a46d676062026d4d6b7acaae7bb227c42
2012-05-25 22:09:32 +02:00