Changeset 160
- Timestamp:
- 11/18/11 14:02:38 (13 years ago)
- Location:
- Doc/Backend
- Files:
-
- 52 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Doc/Backend/DBInterface.tex
r147 r160 8 8 \usepackage{float} 9 9 \usepackage{multirow} 10 \usepackage[final]{pdfpages} 11 \usepackage{hyperref} 10 12 \begin{document} 11 13 … … 172 174 \multirow{6}{*}{Session} & uid & String & \\ 173 175 & title & String & \\ 176 & creator & String & UID of the User \\ 174 177 & datetime & String & Unix Timestamp. No way to search on intervals (yet). \\ 175 178 & applications & Array of Strings & UIDs of the Applications \\ … … 186 189 in the array. 187 190 188 189 190 191 192 191 \section{Specification}\label{spec} 193 //TODO: Generate HTML documentation 192 \subsection{Models} 193 The framework heavily relies on the Object Oriented Programming paradigm, and only allows you to create, edit 194 and store data through instances of precreated classes. All these classes inherit from a global 195 ResearchToolObject class. A UML class diagram of the model classes can be found in Appendix \ref{models}. 196 \subsection{Connectors} 197 Although the front end developer only uses one general DatabaseInterface, the different files for the different 198 datatypes are accessed by seperate connectors. A connector has to implement the IConnector interface, which 199 mainly enforces the get() and set() methods to ensure a connector can perform as expected. In every connector, 200 the get() and set() methods are different. A get() method builds the querystring based on the given arguments, 201 then retrieves the data and performs other necessary queries (like retrieving a different object from another 202 file) to ensure the PHP DataModel is comoplete. A set() method has to store the data accordingly. 203 \subsection{PHPDoc} 204 PHPDoc for the database classes can be found at 205 \href{http://svn.tbm.tudelft.nl/TBM-CPS/RESEARCHTOOL/Doc/Backend/PHPDoc}{SVN}. 206 207 194 208 195 209 \section{Future Work}\label{futurework} 196 210 //TODO 197 211 212 \appendix 213 \pagebreak 214 \section{Class diagram of the models}\label{models} 215 \begin{figure} 216 \includepdf[scale=1.22]{DBModels.pdf} 217 \end{figure} 198 218 199 219 \end{document}
Note: See TracChangeset
for help on using the changeset viewer.