protected function chkKidMapTrue($nID)
    {
        $found = false;
        if (sizeof($this->kidMaps) > 0) {
            foreach ($this->kidMaps as $parent => $kids) {
                if (sizeof($kids) > 0) {
                    foreach ($kids as $nKid => $ress) {
                        if ($nID == $nKid && sizeof($ress) > 0) {
                            $found = true;
                            foreach ($ress as $cnt => $res) {
                                if (isset($res[2]) && $res[2]) {
                                    return 1;
                                }
                            }
                        }
                    }
                }
            }
        }
        return (($found) ? -1 : 0);
    }
protected function chkKidMapTrue($nID)
    {
        $found = false;
        if (sizeof($this->kidMaps) > 0) {
            foreach ($this->kidMaps as $parent => $kids) {
                if (sizeof($kids) > 0) {
                    foreach ($kids as $nKid => $ress) {
                        if ($nID == $nKid && sizeof($ress) > 0) {
                            $found = true;
                            foreach ($ress as $cnt => $res) {
                                if (isset($res[2]) && $res[2]) {
                                    return 1;
                                }
                            }
                        }
                    }
                }
            }
        }
        return (($found) ? -1 : 0);
    }
protected function chkKidMapTrue ( $ nID ) { $ found = false ; if ( sizeof ( $ this -> kidMaps ) > 0 ) { foreach ( $ this -> kidMaps as $ parent => $ kids ) { if ( sizeof ( $ kids ) > 0 ) { foreach ( $ kids as $ nKid => $ ress ) { if ( $ nID == $ nKid && sizeof ( $ ress ) > 0 ) { $ found = true ; foreach ( $ ress as $ cnt => $ res ) { if ( isset ( $ res [ 2 ] ) && $ res [ 2 ] ) { return 1 ; } } } } } } } return ( ( $ found ) ? - 1 : 0 ) ; }
returns -1 if nID is a conditional kid, and is false
returns - 1 if nID is a conditional kid and is false