function AdmCategory($id, $race, $cult = null, $civ = null)
 {
     parent::__construct($id, $race, $cult, $civ);
 }
Exemple #2
0
            while ($iter5->hasNext()) {
                $curr5 = $iter5->getNext();
                echo "<objective id='" . $curr5->getID() . "' type='" . $curr5->getDisplay() . "' value='" . $curr5->getValue() . "' meta='" . $_CONF['image_url'] . "pic/icon/" . $curr5->getMetaImage() . "'><name><![CDATA[" . $curr5->getDisplayName() . "]]></name></objective>";
            }
            echo "</task>";
        }
        echo "</achievement>";
    }
}
$menu = new AchMenu(0);
$menu->removeChild(0);
$iter = $menu->getIterator();
while ($iter->hasNext()) {
    $curr = $iter->getNext();
    echo "<category id='" . $curr->getID() . "' order='" . $curr->getOrder() . "' image='" . $_CONF['image_url'] . "pic/menu/" . $curr->getImage() . "'><name><![CDATA[" . $curr->getName() . "]]></name>";
    $iter2 = $curr->getIterator();
    while ($iter2->hasNext()) {
        $curr2 = $iter2->getNext();
        echo "<category id='" . $curr2->getID() . "' order='" . $curr2->getOrder() . "' image='" . $_CONF['image_url'] . "pic/menu/" . $curr2->getImage() . "'><name><![CDATA[" . $curr2->getName() . "]]></name>";
        $cat = new AchCategory($curr2->getID(), null, null);
        $iter3 = $cat->getIterator();
        print_cat($iter3);
        echo "</category>";
    }
    $cat = new AchCategory($curr->getID(), null, null);
    $iter3 = $cat->getIterator();
    print_cat($iter3);
    echo "</category>";
}
echo "</ryzom_achievements>";
die;