How to cite a web site - Chapter 11: Internet Resource Manager 387 . If

Chapter 11: Internet Resource Manager 387 . If the category list is not empty, then it sets the category ID and name for each category in the list; otherwise, it returns null. . If $blockName is set to jsblock, then it parses the jsCategoryBlock and sets the output into the $category variable. Otherwise, it parses the categoryBlock block if the category ID is not equal to the $selectValue and sets the output in the $category variable. . Finally, this method returns the value of $category variable. populateSubCategory() This method is used to populate the subcategory list for the given category. It works as follows: . This method is called with the template name ($template), category ID ($cat_id), and block name ($blockName), where the subcategory will be populated. . A new object of the Category class is created named $subcatagoryObj, and the getSubCategoryList() method is called from the class with the given category ID ($cat_id) as a parameter. The subcategory list is then stored in the array named $subcategoryList. . If the subcategory list is not there, then it checks the given block name. Then it sets the subcategory name and ID in respective variables in the given block and sets the output in the $subCategory variable parsing the block. . Finally, this method returns the subcategory list stored in the $subCategory. populateResource() This method is used to display resources to show the search result. It works as follows: . This method is called with a template name ($template), resource display starting point ($startingPoint), and block name ($blockName) where the resource information is displayed. . Next it sets the resource information in the template. . Then It sets the alternative different colors in rows to display, parses each row, and stores it in the $resource variable. . Finally, it returns the value of $resource. showMenu() This method is used to display the menu shown in the search index page. It works as follows:

Leave a Reply