From 8e2bae6e8a9ccca804e7ec2c9be61abb167cd60c Mon Sep 17 00:00:00 2001 From: Mimu Date: Tue, 27 May 2014 10:40:50 +0200 Subject: [PATCH] 0.9 --- class/AASkillsCalculator.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/class/AASkillsCalculator.php b/class/AASkillsCalculator.php index 4b96422..891032c 100644 --- a/class/AASkillsCalculator.php +++ b/class/AASkillsCalculator.php @@ -7,7 +7,7 @@ class AASkillsCalculator { - var $_xml; // Contenu xml + private $_xml; // Contenu xml function AASkillsCalculator ($xml="xml/aa_skillsLists.xml") { // Chargement du XML @@ -18,7 +18,7 @@ class AASkillsCalculator { /* Return the calculator's HTML */ - function getTree() { + public function getTree() { // Affichage de la page $html = '
'; $html .= '

You can still use 23 points.

'; @@ -41,7 +41,7 @@ class AASkillsCalculator { /* Return one tree's HTML */ - function createTree() { + private function createTree() { $tree = $this->_xml->getElementsByTagName('ecole'); $html = $this->getSpec($tree); $html .= '
'; @@ -55,7 +55,7 @@ class AASkillsCalculator { Return the skills's HTML from one tree @tree : Tree's XML node (ecole) */ - function getSkills($node) { + private function getSkills($node) { $html =''; foreach ($node as $branch) { $html .= '
'; @@ -71,7 +71,7 @@ class AASkillsCalculator { Return the list of the skill trees @node : Tree's XML node (ecole) */ - function getSpec($node) { + private function getSpec($node) { $html = '
'; $html .= '