Services_Yadis
[ class tree: Services_Yadis ] [ index: Services_Yadis ] [ all elements ]

Source for file test.php

Documentation is available at test.php

  1. <?php
  2.  
  3. // Demonstrates Yadis discovery on both a URI and an XRI
  4.  
  5. set_include_path(dirname(__FILE__'/../' . PATH_SEPARATOR . get_include_path());
  6.  
  7. require_once 'Services/Yadis.php';
  8. foreach (array('http://www.yahoo.com''=self*shupp'as $id{
  9.     $yadis       = new Services_Yadis($id);
  10.     $serviceList $yadis->discover();
  11.     foreach ($serviceList as $service{
  12.         $types $service->getTypes();
  13.         echo $types[0]' at 'implode(', '$service->getUris())PHP_EOL;
  14.         echo 'Priority is '$service->getPriority()PHP_EOL;
  15.     }
  16. }
  17.  
  18. ?>

Documentation generated on Mon, 11 Mar 2019 15:57:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.