Lines Matching refs:plan
5 require_once(__DIR__ . '/../helper/plan.php');
41 * Check that the plan is sorted into the right order
44 $plan = new test_helper_plugin_move_plan();
46 $plan->addPageNamespaceMove('animals:mammals:bear', 'animals:mammals:cute:bear');
47 $plan->addPageNamespaceMove('humans:programmers', 'animals:mammals:cute:programmers');
48 $plan->addPageMove('humans:programmers:andi', 'animals:insects:butterfly:andi');
49 $plan->addPageMove('yeti', 'humans:yeti');
50 $plan->addPageMove('animals:monkey', 'monkey');
52 $sorted = $plan->sortedPlan();
54 // the plan is sorted FORWARD (first things first)
67 $plan = new test_helper_plugin_move_plan();
69 $plan->addPageNamespaceMove('animals:mammals:cute', 'animals:mammals:funny');
70 $plan->addPageMove('animals:mammals:cute:otter', 'animals:mammals:otter');
72 $plan->commit();
73 $list = $plan->getList('pagelist');
92 * Access the sorted plan
97 usort($this->plan, array($this, 'planSorter'));
98 return $this->plan;