Free web hosting services - 316 Part II: Developing Intranet Solutions It

316 Part II: Developing Intranet Solutions It prepares an associative array with the necessary attribute name and the values to update the category table. The array is passed into the modifyCategory() method of the Category class. The status (success/failure) of the modify operation is shown to the user at the end. . showContents(): This method displays the given contents according to the theme preferences of the user. This is how it works: The user s preferred theme template is loaded in a template object called $themeTemplate. The template contains a contentBlock that is to be filled by the parameter to this method. After the passed content is set into the contentBlock, it is rendered to the user. The following are the other methods used by this application: Method Description authorize() Authorizes access to this application. It calls setUserType() to set the member variable isAdmin and returns the value of isAdmin. This means that only users only with administrative authority can access this application. deleteDriver() Controls how delete operations are performed on categories. If step is set to 1 or is not set, it calls displayDeleteOptions() to display delete options. If step is set to 2, it runs deleteCategory() to do the category-deletion process. modifyDriver() Controls how modify operations are performed on documents and categories. If step is set to 1 or is unset, it calls displayAddModifyMenu() with a modify parameter to display the modify category Web form. If step is set to 2, it runs modifyCategory() to start the category modification process.

Leave a Reply