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