public function import(\SimpleXMLElement $sx) { if (isset($sx->pagetypes)) { foreach ($sx->pagetypes->pagetype as $p) { Type::importTargets($p); } } }