The following markers were found:
  • todo  29

common.php2

Type Line Description
todo 64 create Config class, replacing this function
todo 93 turn database class into a singleton, replacing this function

form_elements.class.php17

Type Line Description
todo 206 low : this method will be replaced by a DbValues composite class generating the same list
todo 233 low : this method will be replaced by a DbValues composite class generating the same list
todo 259 low : this method will be replaced by a DbValues composite class generating the same list
todo 455 create array for html properties, to which the child classes can add properties. All html properties are to be add at once using a foreach loop
todo 1048 set private, provide setter setSize($cols, $rows)
todo 1057 set private, provide setter setSize($cols, $rows)
todo 1167 allow to have custom values for true/false (f.e. 1/0, Y/N)
todo 1248 move this to a value conversion/formatting method
todo 1335 create seperate class for data collection and move methods there
todo 1361 turn into private access
todo 1462 return true if value was found and use this in the calling methods
todo 1577 put the subfields in a collection class
todo 1577 create common class for FieldDate/Time/DateTime, mainly for _formatString, {s|g}etTimestamp()
todo 1690 Init after allow_empty, year_range (or change value?)
todo 1690 refactor, using clear (to be implemented) and addItem()
todo 1973 put the subfields in a collection class
todo 2288 put the subfields in a collection class

base.class.php1

Type Line Description
todo 42 collections don't have a name, so when they are added as an object to another collection, they don't have an index by name in the array, which makes it impossible to use the index to track an object. Solution : don't depend on index (key), refactor all code to remove this, remove all functions that use the index by name, OR, give collections a name (implementing a ObjectInterface with getName() and setName() public methods)

form.class.php2

Type Line Description
todo 866 low : validate values
todo 880 move generating of buttons to a seperate method, so that the parent function can be used, limiting the amount of duplicate code.

db/DbColumn.class.php4

Type Line Description
todo 128 implement displayPrefix and displaySuffix in Logic mode
todo 288 make withValue and discardEmptyValue properties of the class
todo 288 implement setDisplaymode on collection level
todo 288 inherit from Collection::getDisplayString (relies on two other todo's)

db/DbValue.class.php2

Type Line Description
todo 83 create GeneralDbValue class that can get/store multiple values from the same record, or use multiple statements in the where clause
todo 83 create class that handles data in a record with an ID (relational Db)

table.class.php1

Type Line Description
todo 465 inherit from Formaid_RecordForm, but check TableHeader before doing so