';
}
return $html;
}
/*
Return the list of the skill trees
@node : Tree's XML node (ecole)
*/
function getSpec($node) {
$html = '
';
$html .= '';
$html .= '
';
return $html;
}
/*
Return the active skills from one tree
@node : Active's XML node (ecole > active)
*/
function getActive($node) {
$active = $node->getElementsByTagName('active');
foreach ($active as $a) {
$skill = $a->getElementsByTagName('skill');
$html = '
';
foreach ($skill as $s) {
$html .= '
';
$html .= '
'.$this->getSkillDetail($s).'
';
$html .= '
';
}
$html .= '
';
}
return $html;
}
/*
Return the active skills from one tree
@node : Passive's XML node (ecole > passive)
*/
function getPassive($node) {
$active = $node->getElementsByTagName('passive');
foreach ($active as $a) {
$skill = $a->getElementsByTagName('skill');
$html ='
';
foreach ($skill as $s) {
$html .= '
';
$html .= '
'.$this->getSkillDetail($s).'
';
$html .= '
';
}
$html .= '
';
}
return $html;
}
/*
Get the skill details (mana, cooldown, etc)
@node : Skill's XML node (ecole > passive/active > skill)
*/
function getSkillDetail($node) {
$html = '