Changeset 2746 for branches/release-41/lib/MT/TaskMgr.pm
- Timestamp:
- 07/10/08 01:56:21 (17 months ago)
- Files:
-
- 1 modified
-
branches/release-41/lib/MT/TaskMgr.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/lib/MT/TaskMgr.pm
r1912 r2746 200 200 =head1 SYNOPSIS 201 201 202 MT::TaskMgr->add_task($task);203 204 202 MT::TaskMgr->run_tasks; 205 203 … … 254 252 =head1 METHODS 255 253 256 =head2 MT::TaskMgr->add_task($task_obj) 257 258 =head2 MT::TaskMgr->add_task(\%task) 259 260 Registers a new I<MT::Task> object. If this method is called with a hashref, 261 a I<MT::Task> will be constructed using that data. 254 =head2 MT::TaskMgr->new 255 256 Constructs the MT::TaskMgr singleton instance. 257 258 =head2 MT::TaskMgr->init 259 260 Initializes the MT::TaskMgr instance, pulling tasks are defined in 261 the MT registry. It also runs a callback 'tasks' after gathering 262 this list. 262 263 263 264 =head2 MT::TaskMgr->run_tasks … … 281 282 instance using the I<instance> method. 282 283 284 =head2 tasks(\%tasks) 285 286 Upon initialization of the TaskMgr instance, the list of MT tasks are 287 gathered from the MT registry. This hashref of tasks is then passed to 288 the 'tasks' callback, giving plugins a chance to manipulate the task 289 metadata before being used. 290 283 291 =head1 AUTHOR & COPYRIGHTS 284 292
