Lines Matching refs:plan
38 * @var array the options for this move plan
50 protected $plan = array();
154 * be written to the option file once the plan gets committed
164 * Returns the progress of this plan in percent
196 * Check if this plan has been committed, yet
205 * Add a single page to be moved to the plan
215 * Add a single media file to be moved to the plan
225 * Add a page namespace to be moved to the plan
235 * Add a media namespace to be moved to the plan
254 if($this->options['committed']) throw new Exception('plan is committed already, can not be added to');
259 $this->plan[] = array(
268 * Abort any move or plan in progress and reset the helper
274 $this->plan = array();
280 * This locks up the plan and prepares execution
282 * the plan is reordered an the needed move operations are gathered and stored in the appropriate
285 * @throws Exception if you try to commit a plan twice
286 * @return bool true if the plan was committed
291 if($this->options['committed']) throw new Exception('plan is committed already, can not be committed again');
296 usort($this->plan, array($this, 'planSorter'));
299 foreach($this->plan as $move) {
363 if(!$this->options['committed']) throw new Exception('plan is not committed yet!');
874 * Callback for usort to sort the move plan