Web hosting compare - 270 Part II: Developing Intranet Solutions . addDriver():

270 Part II: Developing Intranet Solutions . addDriver(): This method controls how add operations are performed on documents and categories. It works as follows: If the obj=doc query parameter is passed to this method when called, it calls addDoc() to start the document creation process. If the obj=category query parameter is passed, it runs addCategory() to start the category creation process. . modifyDriver(): This method controls how modify operations are performed on documents and categories. It works as follows: If the obj=doc query parameter is passed to this method when called, it calls modifyDoc() to start the document modification process. If the obj=category query parameter is passed, it runs modifyCategory() to start the category modification process. . addDoc(): This method controls how a new document is added. It works as follows: If the step=NULL query parameter is passed, it calls the displayAddModDocMenu() method with add parameter to display the new document Web form. If the step=2 query parameter is passed, storeDoc() is called to store the new document. . modifyDoc(): This method controls how documents are modified. It works as follows: If the step=NULL and nid (document ID) query parameter is not empty, displayAddModDocMenu() is called with a Modify parameter, which loads the document referred by $nid and allows the user to modify it. If the method is called without an nid (document ID), an error alert is shown. If step=2 parameter is passed, the document is updated using updateDoc(). . addCategory(): This method controls how a new category is added. It works as follows: If step=NULL query parameter is passed, it calls the displayAddMod CategoryMenu() method with the add parameter to display the new category Web form. If step=2 query parameter is passed, storeCategory() is called to store the new category.

Leave a Reply