Changeset 990
- Timestamp:
- 12/28/06 03:53:37 (2 years ago)
- Files:
-
- branches/wheeljack/lib/MT/BackupRestore.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/lib/MT/BackupRestore.pm
r987 r990 1104 1104 be an empty array if a user chose Everything. 1105 1105 1106 If a plugin has an MT::Object derived type, the plugin will register 1107 a callback to Backup callback, and Backup process will call the callbacks 1108 to give plugins a chance to add their own data to the backup file. 1109 1106 1110 =item Restore 1107 1111 1108 1112 Restore callbacks are called in convention like below: 1109 1113 1110 MT->run_callbacks("Restore.<xml_namespace>", 1111 $data, $objects, $deferred, $callback); 1114 callback($cb, $data, $objects, $deferred, $callback); 1112 1115 1113 1116 Where $data is a parameter which was passed to XML::SAX::Base's … … 1131 1134 1132 1135 If a plugin has an MT::Object derived type, the plugin will register 1133 a callback to Restore.< xmlnamespace> callback, so later the restore1134 operation will call the callback function with parameters described above. 1135 XML Namespace is required to be registered, so an xml node can be resolved1136 into what plugins to be called back, and can be distinguished the same1137 element name with each other.1136 a callback to Restore.<element_name>:<xmlnamespace> callback, 1137 so later the restore operation will call the callback function with 1138 parameters described above. XML Namespace is required to be registered, 1139 so an xml node can be resolved into what plugins to be called back, 1140 and can be distinguished the same element name with each other. 1138 1141 1139 1142 =head1 AUTHOR & COPYRIGHT
