Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
package_manager_search.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/package_manager.inc';
18 
32 {
33 
34 
40  {
41  $this->_full_path = SQ_PACKAGES_PATH.'/search';
42  $this->Package_Manager();
43 
44  }//end constructor
45 
46 
56  {
57  return Array('search_manager');
58 
59  }//end getSystemAssetTypes()
60 
61 
68  function &createSearchManager()
69  {
70  $system_management_folder = $GLOBALS['SQ_SYSTEM']->am->getSystemAsset('system_management_folder');
71 
72  $GLOBALS['SQ_SYSTEM']->am->includeAsset('search_manager');
73  $search_manager = new Search_Manager();
74  $search_manager_link = Array('asset' => &$system_management_folder, 'link_type' => SQ_LINK_TYPE_1, 'is_exclusive' => 1);
75  if (!$search_manager->create($search_manager_link)) {
76  trigger_localised_error('SCH0007', E_USER_ERROR);
77  }
78  pre_echo('Search Manager Asset Id : '.$search_manager->id);
79 
80  $GLOBALS['SQ_SYSTEM']->am->registerSystemAsset('search_manager', $search_manager->id);
81 
82  return $search_manager;
83 
84  }//end createSearchManager()
85 
86 
87 }//end class
88 
89 ?>