private function _checkRowIndependence(Kwf_Model_Row_Interface $row, $msgMethod) { if (!$row instanceof Kwc_Root_Category_GeneratorRow) { return; } $m = Kwf_Model_Abstract::getInstance('Kwc_Root_Category_GeneratorModel'); $pageRow = $m->getRow($row->getData()->row->id); $r = $pageRow; while ($r) { if (!$r->visible) { //wenn seite offline ist ignorieren // ist nicht natürlich nicht korrekt, wir *müssten* die überprüfung // nachholen, sobald die seite online gestellt wird return; } $r = $r->getParentNode(); } $components = $pageRow->getComponentsDependingOnRow(); if ($components) { $msg = trlKwf("You can not {0} this entry as it is used on the following pages:", $msgMethod); $msg .= Kwf_Util_Component::getHtmlLocations($components); throw new Kwf_ClientException($msg); } }