Esempio n. 1
0
 case 'descendants':
     $p = $grabber->grabSingle($url);
     $grabber->grabDescendants($p, $level = 14);
     break;
 case 'siblings':
     $p = $grabber->grabSingle($url);
     printf("siblings of : %s\n", utf8_decode($p->quickDisplay()));
     $list = $grabber->grabSiblings($p);
     foreach ($list as $p) {
         printf(" - %s\n", utf8_decode($p->quickDisplay()));
     }
     break;
 case 'half-siblings':
     $p = $grabber->grabSingle($url);
     printf("half-siblings of : %s\n", utf8_decode($p->quickDisplay()));
     $list = $grabber->grabHalfSiblings($p);
     foreach ($list as $p) {
         printf(" - %s\n", utf8_decode($p->quickDisplay()));
     }
     break;
 case 'unions':
     $p = $grabber->grabSingle($url);
     $unions = $grabber->grabUnionsAndChilds($p);
     printf("Unions with %s\n", utf8_decode($p->quickDisplay()));
     foreach ($unions as $u) {
         printf("- union : %s\n", utf8_decode($u['spouse']->quickDisplay()));
         foreach ($u['childs'] as $c) {
             printf("  - %s\n", utf8_decode($c->quickDisplay()));
         }
     }
     break;