Alexander Nicolaysen Sørnes
4d65a32e17
Only show the 'add entry' link if the class has enabled it. The link is only useful for classes
...
that have no parent objects. The objectShowAddEntry() method is not required because it only
affects the user interface.
2007-09-08 22:42:34 +00:00
Chris Morgan
6119246b51
Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
...
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
Chris Morgan
bc49543356
vendor::delete() should always return a value, in this case if we fall through we've failed
2007-07-31 03:09:42 +00:00
Chris Morgan
0e3472e1bf
objectGetHeader() should return a TableRow instance as this is closer to what the information
...
represents and is a much more useful form.
2007-07-31 01:51:40 +00:00
Chris Morgan
2652e68d01
Programmatic table support. Enhances several tables with highlightable and clickable rows and
...
cleans up the existing table row highlight and click code.
2007-07-23 19:56:43 +00:00
Chris Morgan
62bfb16016
Make objectGetTableRow() return a TableRow class instance. Added accessors to set the
...
appropriate parameters in the TableRow class. Removed some unused parameters from the TableRow
class.
2007-07-02 00:35:17 +00:00
Alexander Nicolaysen Sørnes
cd198f44d7
Replace objectOutputTableRow() with objectGetTableRow(). Redesign the table output mechanism so
...
that we fetch a table row from a class instead of letting the class display it. Move adding of
edit/delete links from the classes to the objectManager. Fix a hole in the distribution class
where an uninitialized variable could have been used in the constructor.
2007-06-14 00:50:35 +00:00
Alexander Nicolaysen Sørnes
ffd812b8a6
Add multi-page control to list of un-queued testData
2007-06-12 00:02:41 +00:00
Alexander Nicolaysen Sørnes
f7b24fab9a
Object constructors shouldn't require an id if passed a $oRow object. Gets rid of
...
objectGetInstanceFromRow() since we can pass the row into the constructor instead.
2007-06-10 18:51:33 +00:00
Alexander Nicolaysen Sørnes
95fc2d366b
Add multi-page support to objectManager, use it for the vendor class
2007-06-09 17:07:02 +00:00
Alexander Nicolaysen Sørnes
b32249dec6
Don't create duplicate vendors. If there is a vendor with the same name as the one being
...
created retrieve the duplicate vendors information for the current object and return TRUE,
even though we didn't really create new vendor we can handle this error situation more
gracefully than returning false.
2007-05-12 16:54:58 +00:00
Alexander Nicolaysen Sørnes
f7ae814cbb
Implement vendor::objectMoveChildren()
2007-05-12 16:34:28 +00:00
Chris Morgan
25edd78c73
Layout improvements. Change default inner padding for html_frame_start() from 5 to 0, this
...
lets us eliminate the white spacing between frames and their contents. Add in a
div.default_container class that has a 5px padding to replace the now not present default
spacing.
2007-05-02 01:08:22 +00:00
Alexander Nicolaysen Sørnes
11ecfa230b
Add allowAnonymousSubmissions(). objectManager checks the return value of this new function and
...
exists with an error during certain actions if the user is not logged in and the function returns
false
2007-04-29 23:00:01 +00:00
Alexander Nicolaysen Sørnes
a5492e199a
Add vendor->sQueued class variable. Not currently used but adding it keeps the vendor class
...
consistent with other classes.
2007-04-23 23:32:30 +00:00
Alexander Nicolaysen Sørnes
2a7d8e8c3f
Support vendor queuing
2007-04-22 00:57:41 +00:00
Alexander Nicolaysen Sørnes
8cf53f1679
Use mustBeQueued() to determine unqueueing in objectManager
2007-04-22 00:39:53 +00:00
Alexander Nicolaysen Sørnes
cecc4bf6c0
Use objectMakeLink() in more places
2007-04-01 01:21:58 +00:00
Chris Morgan
558ff17e36
Refer to the Vendor version of objectGetEntriesCount() via Vendor::objectGetEntriesCount()
2007-03-25 04:21:34 +00:00
Alexander Nicolaysen Sørnes
2e6ddd24c9
Add and use vendor::objectGetEntriesCount()
2007-03-25 03:59:58 +00:00
Alexander Nicolaysen Sørnes
c545581571
objectManager, add rejection support. Add support in objectManager for handling rejected
...
data.
2007-03-24 18:30:16 +00:00
Alexander Nicolaysen Sørnes
ed7026be6e
Let objectManager output table headers. A class returns an array of header cells and then
...
the objectManager adds an edit column if appropriate.
2007-03-17 21:04:43 +00:00
Alexander Nicolaysen Sørnes
9ef6268fa6
Let objectManager label the edit link in objectOutputTableRow() because the edit link text
...
depends on the queue state
2007-03-13 21:08:39 +00:00
Alexander Nicolaysen Sørnes
df607a5832
Remove references to vendorview.php and remove now unused vendorview.php
2007-03-13 20:59:45 +00:00
Alexander Nicolaysen Sørnes
0ad148f69f
Add and use objectManager to display and edit vendors and distributions. Based on a patch by
...
Chris Morgan
2007-02-03 19:03:42 +00:00
Alexander Nicolaysen Sørnes
53d2e2f6df
Add and use vendor::objectGetInstanceFromRow() and vendor::objectOutputTableRow()
2007-02-01 02:07:24 +00:00
Alexander Nicolaysen Sørnes
fa111ec39d
Add and use vendor::objectOutputHeader() and vendor::objectGetEntries()
2007-01-31 02:24:54 +00:00
Alexander Nicolaysen Sørnes
446191f533
Add and use vendor::display()
2007-01-31 02:16:54 +00:00
Alexander Nicolaysen Sørnes
d8aa5380a2
Don't use arguments for vendor::create() and vendor::update()
2007-01-28 23:28:14 +00:00
Alexander Nicolaysen Sørnes
917851fceb
Fix naming of OutputEditor() to be outputEditor()
2007-01-17 03:18:49 +00:00
Chris Morgan
e3f9e5371a
Use query_parameters() in SQL select, update and delete statements to protect against
...
sql injection attacks
2006-06-27 19:16:27 +00:00
Chris Morgan
fb0f3b5dd3
Protect against sql injection attacks in sql INSERT statements
2006-06-24 04:20:32 +00:00
Chris Morgan
67550405c3
Make code more consistent by making it follow the appdb coding standards. Fix some spaces vs. tabs odd indenting.
2006-06-21 01:04:12 +00:00
Tony Lambregts
40138af1a8
Let users browse vendors and remove some duplicate code
2005-10-25 00:47:32 +00:00
Jonathan Ernst
06ea1b6d3d
Security fixes. Ensure that numeric values are actually numeric using is_numeric
...
so users can't login as admin by passing in non-numeric values.
2005-03-23 23:56:38 +00:00
Jonathan Ernst
3eb69ee3af
Remove an unneeded check in vendor class
2005-02-09 02:21:41 +00:00
Jonathan Ernst
5fc48e8106
- use vendor class in vendor admin
...
- improve existing vendor admin
- fix adding a vendor which was broken
- allow editing of a vendor
2005-02-07 23:54:29 +00:00
Jonathan Ernst
792151c574
- add version and vendor classes
...
- much improved application class (same model as the other new classes I made)
- modified category class
- modified some files to use the new classes and methods
- deletes linked elements on cascade
2005-02-06 17:49:48 +00:00