Proposal for "Services_OpenSearch"

» Metadata » Status
  • Category: Web Services
  • Proposer: HIROSE Masaaki 
  • License: Apache License
» Description

Search A9 OpenSearch compatible engines.

This is porting Perl modules WWW::OpenSearch.

example


<?php

require_once 'Services/OpenSearch.php';

// Koders Source Code Search                                                    
$url = 'http://www.koders.com/search/KodersSourceCodeSearchDescription.xml';
$os = new Services_OpenSearch($url);
$items = $os->search('PHP');
$n = 1;
foreach ($items as $item) {
    echo "[$n] {$item['title']}\n{$item['link']}\n\n";
    $n++;
}
?>

result


[1] const.inc.php
http://www.koders.com/php/fid2C1EF324A4F13AB8E06718D80C446E28FB373C3D.aspx?s=PHP

[2] File.php
http://www.koders.com/php/fid15341ED8B43EE307CF181C99F1467543511A0479.aspx?s=PHP

[3] File.php
http://www.koders.com/php/fid711DB73545B349A45DA522A0DDCD8408DB945560.aspx?s=PHP
(snip)

sample

Here is sample web application using Services_OpenSearch.

Read a helpful guide on making money from experienced players: grupo telegram apostas

» Dependencies » Links
  • PEAR
  • HTTP_Request
  • XML_Unserializer
  • XML_RSS
» Timeline » Changelog
  • First Draft: 2005-12-28
  • Proposal: 2005-12-28
  • Call for Votes: 2006-01-15
  • HIROSE Masaaki
    [2006-01-09 15:28 UTC]

    0.0.2

    • constructor don't return another class (PEAR::raiseError).
    • constructor allow setting pager_param.
    • {get,set}DescriptionUrl: new method to set description URL later.
    • _setupQuery: fixed str_replace args. set array instead of hash.
    • getVersion: new method.
    • CS: name of private method start with '_'.
    • CS: follow 'one true brace' convention.
  • Thies C. Arntzen
    [2023-11-07 07:35 UTC]

  • Thies C. Arntzen
    [2023-11-07 07:36 UTC]