DbProjectItem::__construct ( id_or_array = NULL  ) 

create empty project-item or querry database

this->_type holds a string for the current type which is used for accessing db-tables and form-parameter-passing (therefore it has to be lowercase)

add default fields if not overwritten by derived class

if array is passed, create a new empty object with default-values

if int is passed, it's assumed to be ITEM-ID

  • query item-tables
  • query table with name of object-type

this might happen very often (like when searching for id)

@: one strip slashes should be sufficient... only tested with myslq5 / xampp

this error might occure frequently

Reimplemented from DbItem.

Reimplemented in Effort, Employment, File, Issue, Person, Project, ProjectPerson, Task, and TaskPerson.

Definition at line 746 of file db_item.inc.php.

References $dbh, and DbItem::$id.


Generated on Sun Mar 4 17:19:52 2007 for streber by  doxygen 1.5.1-p1