diff --git a/documentation/manual/de/module_specs/Zend_Service.xml b/documentation/manual/de/module_specs/Zend_Service.xml index 6a933ce8d7..46271d6d9a 100644 --- a/documentation/manual/de/module_specs/Zend_Service.xml +++ b/documentation/manual/de/module_specs/Zend_Service.xml @@ -35,7 +35,6 @@ ReCaptcha SlideShare StrikeIron - Technorati Twitter diff --git a/documentation/manual/de/module_specs/Zend_Service_Technorati.xml b/documentation/manual/de/module_specs/Zend_Service_Technorati.xml deleted file mode 100644 index 5a70caf53f..0000000000 --- a/documentation/manual/de/module_specs/Zend_Service_Technorati.xml +++ /dev/null @@ -1,1045 +0,0 @@ - - - - - Zend_Service_Technorati - - - Einführung - - - Zend_Service_Technorati bietet ein einfaches, intuitives und - objekt-orientiertes Interface für die Verwendung der Technorati API. - Es bietet Zugriff zu allen vorhandenen Technorati API - Abfragen und gibt die originalen XML Antworten als - freundliches PHP Objekt zurück. - - - - Technorati ist eine der populärsten Blog - Suchmaschinen. Das API Interface ermöglicht es Entwicklern - Informationen über einen spezifischen Blog zu erhalten, Blogs zu suchen die einem - einzelnen Tag oder einer Phrase entsprechen und Informationen über einen spezifischen - Author (Blogger) erhalten. Für eine komplette Liste von vorhandenen Abfragen kann in die - Technorati API - Dokumentation oder die vorhandenen Technorati Abfragen - Sektion dieses Dokuments gesehen werden. - - - - - Anfangen - - - Technorati benötigt einen gültigen API Schlüssel zur Verwendung. Um - einen eigenen API Schlüssel zu erhalten muss ein neuer Technorati Account erstellt - werden, und anschließend die API Schlüssel Sektion - besucht werden. - - - - API Schlüssel Beschränkungen - - - Es können bis zu 500 Technirati API Aufrufe pro Tag durchgeführt - werden ohne das Kosten anfallen. Andere Limitationen der Verwendung können vorhanden - sein, abhängig von der aktuellen Technorati API Lizenz. - - - - - Sobald man einen gültigen API Schlüssel hat, kann man beginnen - Zend_Service_Technorati zu verwenden. - - - - - Die erste Abfrage durchführen - - - Um eine Abfrage durchzuführen, benötigt man zuerst eine - Zend_Service_Technorati Instanz mit einem gültigen - API Schlüssel. Dann kann eine der vorhandenen Abfragemethoden - ausgewählt werden, und durch Angabe der benötigen Argumente aufgerufen werden. - - - - Die erste Abfragen senden - - search('PHP'); -]]> - - - - Jede Abfragemethode akzeptiert ein Array von optionalen Parametern die verwendet werden - kann um die Abfrage zu verfeinern. - - - - Verfeinern der Abfrage - - 'a4'); - -// Technorati nach dem Schlüsselwort PHP durchsuchen -$resultSet = $technorati->search('PHP', $options); -]]> - - - - Eine Zend_Service_Technorati Instanz ist kein einmal zu - verwendendes Objekt. Deswegen muß keine neue Instanz für jede Abfrage erstellt werden; - es kann einfach das aktuelle Zend_Service_Technorati Objekt - solange verwendet werden wie es benötigt wird. - - - - - Mehrfache Abfragen mit der gleichen Zend_Service_Technorati Instanz senden - - - search('PHP'); - -// Top Tags die von Technorati indiziert wurden erhalten -$topTags = $technorati->topTags(); -]]> - - - - - Ergebnisse verarbeiten - - - Es kann einer von zwei Typen von Ergebnisobjekten als Antwort auf eine Abfrage empfangen - werden. - - - - Die erste Gruppe wird durch Zend_Service_Technorati_*ResultSet - Objekte repräsentiert. Ein Ergebnisset Objekt ist grundsätzlich eine Kollektion von - Ergebnisobjekten. Es erweitert die grundsätzliche - Zend_Service_Technorati_ResultSet Klasse und implementiert das - PHP Interface SeekableIterator. Der beste Weg - um ein Ergebnisset Objekt zu verarbeiten ist dieses mit einem PHP - foreach() Statement zu durchlaufen. - - - - Ein Ergebnisset Objekt verarbeiten - - search('PHP'); - -// Alle Ergebnisobjekte durchlaufen -foreach ($resultSet as $result) { - // $result ist eine Instanz von Zend_Service_Technorati_SearchResult -} -]]> - - - - Weil Zend_Service_Technorati_ResultSet das - SeekableIterator Interface implementiert, kann ein spezifisches - Ergebnisobjekt gesucht werden indem dessen Position in der Ergebnissammlung verwendet - wird. - - - - Ein spezifisches Ergebnisset Objekt suchen - - search('PHP'); - -// $result ist eine Instanz von Zend_Service_Technorati_SearchResult -$resultSet->seek(1); -$result = $resultSet->current(); -]]> - - - - - SeekableIterator arbeitet als Array und zählt Positionen - beginnend vom Index 0. Das Holen der Position 1 bedeutet das man das zweite Ergebnis - der Kollektion erhält. - - - - - Die zweite Gruppe wird durch spezielle alleinstehende Ergebnisobjekte repräsentiert. - Zend_Service_Technorati_GetInfoResult, - Zend_Service_Technorati_BlogInfoResult und - Zend_Service_Technorati_KeyInfoResult funktionieren als Wrapper - für zusätzliche Objekte, wie Zend_Service_Technorati_Author und - Zend_Service_Technorati_Weblog. - - - - Ein alleinstehendes Ergebnisobjekt verarbeiten - - getInfo('weppos'); - -$author = $result->getAuthor(); -echo '

Blogs authorisiert von ' . $author->getFirstName() . " " . - $author->getLastName() . '

'; -echo '
    '; -foreach ($result->getWeblogs() as $weblog) { - echo '
  1. ' . $weblog->getName() . '
  2. '; -} -echo "
"; -]]>
-
- - - Bitte lesen Sie das - Zend_Service_Technorati Klassen - Kapitel für weitere Details über Antwortklassen. - -
- - - Fehler behandeln - - - Jede Zend_Service_Technorati Abfragemethode wirft bei einem - Fehler eine Zend_Service_Technorati_Exception Ausnahme mit einer - bedeutungsvollen Fehlermeldung. - - - - Es gibt verschiedene Gründe die Verursachen können das eine - Zend_Service_Technorati Abfrage fehlschlägt. - Zend_Service_Technorati prüft alle Parameter für jegliche - Abfrageanfragen. Wenn ein Parameter ungültig ist oder er einen ungültigen Wert enthält, - wird eine neue Zend_Service_Technorati_Exception Ausnahme - geworfen. Zusätzlich kann das Technorati API Interface temporär - unerreichbar sein, oder es kann eine Antwort zurückgeben die nicht gültig ist. - - - - Eine Technorati Abfrage sollte immer mit einem try ... catch - Block umhüllt werden. - - - - Eine Abfrageausnahme behandeln - - search('PHP'); -} catch(Zend_Service_Technorati_Exception $e) { - echo "Ein Fehler ist aufgetreten: " $e->getMessage(); -} -]]> - - - - - Prüfen der täglichen Verwendung des eigenen API Schlüssels - - - Von Zeit zu Zeit wird man die tägliche Verwendung des API Schlüssels - prüfen wollen. Standardmäßig limitiert Technorati die API Verwendung - auf 500 Aufrufe pro Tag, und eine Ausnahme wird durch - Zend_Service_Technorati zurückgegeben wenn versucht wird dieses - Limit zu überschreiten. Man kann diese Information über die Verwendung des eigenen - API Schlüssels erhalten indem die - Zend_Service_Technorati::keyInfo() Methode verwendet wird. - - - - Zend_Service_Technorati::keyInfo() gibt ein - Zend_Service_Technorati_KeyInfoResult Object zurück. Für - vollständige Details kann im API - Referenz Guide nachgesehen werden. - - - - Die Information über die tägliche Verwendung des API Schlüssels erhalten - - keyInfo(); - -echo "API Schlüssel: " . $key->getApiKey() . "
"; -echo "Tägliche Verwendung: " . $key->getApiQueries() . "/" . - $key->getMaxQueries() . "
"; -]]>
-
-
- - - Vorhandene Technorati Abfragen - - - Zend_Service_Technorati bietet Unterstützung für die folgenden - Abfragen: - - - - - Cosmos - - - - - - Search - - - - - - Tag - - - - - - DailyCounts - - - - - - TopTags - - - - - - BlogInfo - - - - - - BlogPostTags - - - - - - GetInfo - - - - - - - Technorati Cosmos - - - Eine Cosmos - Abfrage lässt einen Sehen welche Blog zu einer gegebenen URL - verknüpft sind. Sie gibt ein Zend_Service_Technorati_CosmosResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::cosmos() im API Referenz Guide - nachgesehen werden. - - - - Cosmos Abfrage - - cosmos('http://devzone.zend.com/'); - -echo "

Liest " . $resultSet->totalResults() . - " von " . $resultSet->totalResultsAvailable() . - " vorhandenen Ergebnissen

"; -echo "
    "; -foreach ($resultSet as $result) { - echo "
  1. " . $result->getWeblog()->getName() . "
  2. "; -} -echo "
"; -]]>
-
-
- - - Technorati Search - - - Die Search - Abfrage lässt einen Sehen welche Blogs einen gegebenen Suchstring enthalten. Sie - gibt ein Zend_Service_Technorati_SearchResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::search() im API Referenz Guide - nachgesehen werden. - - - - Suchabfrage - - search('zend framework'); - -echo "

Liest " . $resultSet->totalResults() . - " von " . $resultSet->totalResultsAvailable() . - " vorhandenen Ergebnissen

"; -echo "
    "; -foreach ($resultSet as $result) { - echo "
  1. " . $result->getWeblog()->getName() . "
  2. "; -} -echo "
"; -]]>
-
-
- - - Technorati Tag - - - Die Tag Abfrage - lässt einen Sehen welche Antworten mit einem gegebenen Tag assoziiert sind. Sie gibt - ein Zend_Service_Technorati_TagResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::tag() im API Referenz Guide - nachgesehen werden. - - - - Tag Abfrage - - tag('php'); - -echo "

Liest " . $resultSet->totalResults() . - " von " . $resultSet->totalResultsAvailable() . - " vorhandenen Ergebnissen

"; -echo "
    "; -foreach ($resultSet as $result) { - echo "
  1. " . $result->getWeblog()->getName() . "
  2. "; -} -echo "
"; -]]>
-
-
- - - Technorati DailyCounts - - - Die DailyCounts - Abfrage bietet tägliche Anzahlen von Antworten die ein abgefragtes Schlüsselwort - enthalten. Sie gibt ein Zend_Service_Technorati_DailyCountsResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::dailyCounts() im - API Referenz Guide - nachgesehen werden. - - - - DailyCounts Abfrage - - dailyCounts('php'); - -foreach ($resultSet as $result) { - echo "
  • " . $result->getDate() . - "(" . $result->getCount() . ")
  • "; -} -echo ""; -]]>
    -
    -
    - - - Technorati TopTags - - - Die TopTags - Abfrage bietet Informationen über Top Tags die durch Technorati indiziert sind. Sie - gibt ein Zend_Service_Technorati_TagsResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::topTags() im - API Referenz Guide - nachgesehen werden. - - - - TopTags Abfrage - - topTags(); - -echo "

    Liest " . $resultSet->totalResults() . - " von " . $resultSet->totalResultsAvailable() . - " vorhandenen Ergebnissen

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati BlogInfo - - - Eine BlogInfo - Abfrage bietet Informationen darüber welcher Blog, wenn überhaupt, mit einer - gegebenen URL assoziiert ist. Sie gibt ein Zend_Service_Technorati_BlogInfoResult - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::blogInfo() im - API Referenz Guide - nachgesehen werden. - - - - BlogInfo Abfrage - - blogInfo('http://devzone.zend.com/'); - -echo '

    ' . - $result->getWeblog()->getName() . '

    '; -]]>
    -
    -
    - - - Technorati BlogPostTags - - - Eine BlogPostTags - Abfrage bietet Informationen über Top Tags die von einem spezifischen Blog verwendet - werden. Sie gibt ein Zend_Service_Technorati_TagsResultSet - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::blogPostTags() im - API Referenz Guide - nachgesehen werden. - - - - BlogPostTags Abfrage - - blogPostTags('http://devzone.zend.com/'); - -echo "

    Liest " . $resultSet->totalResults() . - " von " . $resultSet->totalResultsAvailable() . - " vorhandenen Ergebnissen

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati GetInfo - - - Eine GetInfo - Abfrage teilt mit was Technorati über ein Mitglied weiß. Sie gibt ein Zend_Service_Technorati_GetInfoResult - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::getInfo() im - API Referenz Guide - nachgesehen werden. - - - - GetInfo Abfrage - - getInfo('weppos'); - -$author = $result->getAuthor(); -echo "

    Blogs authorisiert von " . $author->getFirstName() . " " . - $author->getLastName() . "

    "; -echo "
      "; -foreach ($result->getWeblogs() as $weblog) { - echo "
    1. " . $weblog->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati KeyInfo - - - Die KeyInfo Abfrage bietet Informationen über die tägliche Verwendung eines - API Schlüssels. Sie gibt ein Zend_Service_Technorati_KeyInfoResult - Objekt zurück. Für vollständige Details kann nach - Zend_Service_Technorati::keyInfo() im - API Referenz Guide - nachgesehen werden. - - -
    - - - Zend_Service_Technorati Klassen - - - Die folgenden Klassen werden von den verschiedenen Technorati Anfragen zurückgegeben. - Jede Zend_Service_Technorati_*ResultSet Klasse enthält ein - typ-spezifisches Ergebnisset welches einfach, mit jedem Ergebnis das in einem Typ - Ergebnisobjekt enthalten ist, iteriert werden kann. Alle Ergebnisset Klassen erweitern - die Zend_Service_Technorati_ResultSet Klasse und implementieren - das SeekableIterator Interface, welches eine einfache Iteration - und Suche nach einem spezifischen Ergebnis erlaubt. - - - - - Zend_Service_Technorati_ResultSet - - - - - - Zend_Service_Technorati_CosmosResultSet - - - - - - Zend_Service_Technorati_SearchResultSet - - - - - - Zend_Service_Technorati_TagResultSet - - - - - - Zend_Service_Technorati_DailyCountsResultSet - - - - - - Zend_Service_Technorati_TagsResultSet - - - - - - Zend_Service_Technorati_Result - - - - - - Zend_Service_Technorati_CosmosResult - - - - - - Zend_Service_Technorati_SearchResult - - - - - - Zend_Service_Technorati_TagResult - - - - - - Zend_Service_Technorati_DailyCountsResult - - - - - - Zend_Service_Technorati_TagsResult - - - - - - Zend_Service_Technorati_GetInfoResult - - - - - - Zend_Service_Technorati_BlogInfoResult - - - - - - Zend_Service_Technorati_KeyInfoResult - - - - - - - - Zend_Service_Technorati_GetInfoResult, - Zend_Service_Technorati_BlogInfoResult und - Zend_Service_Technorati_KeyInfoResult repräsentieren - Ausnahmen zu den obigen weil Sie nicht zu einem ergebnisset gehören und sie kein - Interface implementieren. Sie repräsentieren ein einzelnes Antwortobjekt und sie - funktionieren als Wrapper für zusätzliche - Zend_Service_Technorati Objekte, wie - Zend_Service_Technorati_Author und - Zend_Service_Technorati_Weblog. - - - - - Die Zend_Service_Technorati Bibliothek beinhaltet zusätzliche - bequeme Klassen die spezifische Antwortobjekte repräsentieren. - Zend_Service_Technorati_Author repräsentiert einen einzelnen - Technorati Account, welcher auch als Blog Author oder Blogger bekannt ist. - Zend_Service_Technorati_Weblog repräsentiert ein einzelnes Weblog - Objekt, zusätzlich mit allen spezifischen Weblog Eigenschaften die Feed - URLs oder Blog Namen. Für komplette Details kann nach - Zend_Service_Technorati im API Referenz Guide nachgesehen - werden. - - - - Zend_Service_Technorati_ResultSet - - - Zend_Service_Technorati_ResultSet ist das am meisten - essentielle Ergebnisset. Der Zweck dieser Klasse ist es von einer - abfrage-spezifischen Kind-Ergebnisset-Klasse erweitert zu werden, und sie sollte - niemals verwendet werden um ein alleinstehendes Objekt zu initialisieren. Jedes der - spezifischen Ergebnissets repräsentiert eine Kollektion von abfrage-spezifischen - Zend_Service_Technorati_Result - Objekte. - - - - Zend_Service_Technorati_ResultSet Implementiert das - PHP SeekableIterator Interface, und man - kann durch alle Ergebnisobjekte mit dem PHP Statement - foreach() iterieren. - - - - Über Ergebnisobjekte von einer Ergebnisset Kollektion iterieren - - search('php'); - -// $resultSet ist jetzt eine Instanz von -// Zend_Service_Technorati_SearchResultSet -// sie erweitert Zend_Service_Technorati_ResultSet -foreach ($resultSet as $result) { - // irgendwas mit dem Zend_Service_Technorati_SearchResult Objekt anfangen -} -]]> - - - - - Zend_Service_Technorati_CosmosResultSet - - - Zend_Service_Technorati_CosmosResultSet repräsentiert ein - Technorati Cosmos Abfrage Ergebnisset. - - - - - Zend_Service_Technorati_CosmosResultSet erweitert Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_SearchResultSet - - - Zend_Service_Technorati_SearchResultSet repräsentiert ein - Technorati Search Abfrage Ergebnisset. - - - - - Zend_Service_Technorati_SearchResultSet erweitert Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_TagResultSet - - - Zend_Service_Technorati_TagResultSet repräsentiert ein - Technorati Tag Abfrage Ergebnisset. - - - - - Zend_Service_Technorati_TagResultSet erweitert Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_DailyCountsResultSet - - - Zend_Service_Technorati_DailyCountsResultSet repräsentiert - ein Technorati DailyCounts Abfrage Ergebnisset. - - - - - Zend_Service_Technorati_DailyCountsResultSet erweitert - Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_TagsResultSet - - - Zend_Service_Technorati_TagsResultSet repräsentiert ein - Technorati TopTags oder BlogPostTags Abfrage Ergebnisset. - - - - - Zend_Service_Technorati_TagsResultSet erweitert Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_Result - - - Zend_Service_Technorati_Result ist das wichtigste - Ergebnisobjekt. Der Zweck dieser Klasse ist es, durch eine abfrage-spezifische - Kind-Ergebnisklasse erweitert zu werden, und Sie sollte nie verwendet werden um ein - alleinstehendes Objekt zu initiieren. - - - - - Zend_Service_Technorati_CosmosResult - - - Zend_Service_Technorati_CosmosResult repräsentiert ein - einzelnes Technorati Cosmos Abfrageobjekt. Es wird nie als alleinstehendes Objekt - zurückgegeben, aber es gehört immer einem gültigen Zend_Service_Technorati_CosmosResultSet - Objekt an. - - - - - Zend_Service_Technorati_CosmosResult erweitert Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_SearchResult - - - Zend_Service_Technorati_SearchResult repräsentiert ein - einzelnes Technorati Search Abfrage Ergebnisobjekt. Es wird nie als alleinstehendes - Objekt zurückgegeben, aber es gehört immer einem gültigen Zend_Service_Technorati_SearchResultSet - Objekt an. - - - - - Zend_Service_Technorati_SearchResult erweitert Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_TagResult - - - Zend_Service_Technorati_TagResult repräsentiert ein einzelnes - Technorati Tag Abfrage Ergebnisobjekt. Es wird nie als alleinstehendes Objekt - zurückgegeben, aber es gehört immer einem gültigen Zend_Service_Technorati_TagResultSet - Objekt an. - - - - - Zend_Service_Technorati_TagResult erweitert Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_DailyCountsResult - - - Zend_Service_Technorati_DailyCountsResult repräsentiert ein - einzelnes Technorati DailyCounts Abfrage Ergebnisobjekt. Es wird nie als - alleinstehendes Objekt zurückgegeben, aber es gehört immer einem gültigen Zend_Service_Technorati_DailyCountsResultSet - Objekt an. - - - - - Zend_Service_Technorati_DailyCountsResult erweitert Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_TagsResult - - - Zend_Service_Technorati_TagsResult repräsentiert ein - einzelnes Technorati TopTags oder BlogPostTags Abfrage Ergebnisobjekt. Es wird nie - als alleinstehendes Objekt zurückgegeben, aber es gehört immer einem gültigen Zend_Service_Technorati_TagsResultSet - Objekt an. - - - - - Zend_Service_Technorati_TagsResult erweitert Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_GetInfoResult - - - Zend_Service_Technorati_GetInfoResult repräsentiert ein - einzelnes Technorati GetInfo Abfrage Ergebnisobjekt. - - - - - Zend_Service_Technorati_BlogInfoResult - - - Zend_Service_Technorati_BlogInfoResult repräsentiert ein - einzelnes Technorati BlogInfo Abfrage Ergebnisobjekt. - - - - - Zend_Service_Technorati_KeyInfoResult - - - Zend_Service_Technorati_KeyInfoResult repräsentiert ein - einzelnes Technorati KeyInfo Abfrage Ergebnisobjekt. Es bietet Informationen über - die eigene tägliche - Verwendung des Technorati API Schlüssels. - - - -
    diff --git a/documentation/manual/en/manual-print2.xml.in b/documentation/manual/en/manual-print2.xml.in index b7c3540387..fc19543482 100644 --- a/documentation/manual/en/manual-print2.xml.in +++ b/documentation/manual/en/manual-print2.xml.in @@ -200,7 +200,6 @@ - diff --git a/documentation/manual/en/manual.xml.in b/documentation/manual/en/manual.xml.in index 183cf717da..966933014c 100644 --- a/documentation/manual/en/manual.xml.in +++ b/documentation/manual/en/manual.xml.in @@ -2012,11 +2012,6 @@ - - - - - diff --git a/documentation/manual/en/module_specs/Zend_Service.xml b/documentation/manual/en/module_specs/Zend_Service.xml index d3feb46f79..079ac8decc 100644 --- a/documentation/manual/en/module_specs/Zend_Service.xml +++ b/documentation/manual/en/module_specs/Zend_Service.xml @@ -87,12 +87,6 @@
    - - - Technorati - - - Twitter diff --git a/documentation/manual/en/module_specs/Zend_Service_Technorati.xml b/documentation/manual/en/module_specs/Zend_Service_Technorati.xml deleted file mode 100644 index 6bb9a1a7de..0000000000 --- a/documentation/manual/en/module_specs/Zend_Service_Technorati.xml +++ /dev/null @@ -1,1021 +0,0 @@ - - - - Zend_Service_Technorati - - - Introduction - - - Zend_Service_Technorati provides an easy, intuitive and - object-oriented interface for using the Technorati API. It provides - access to all available Technorati - API queries and returns the original XML - response as a friendly PHP object. - - - - Technorati is one of the most popular blog - search engines. The API interface enables developers to retrieve - information about a specific blog, search blogs matching a single tag or phrase and get - information about a specific author (blogger). For a full list of available queries - please see the Technorati - API documentation or the Available Technorati queries - section of this document. - - - - - Getting Started - - - Technorati requires a valid API key for usage. To get your own - API Key you first need to create a new Technorati account, then - visit the API Key - section. - - - - API Key limits - - - You can make up to 500 Technorati API calls per day, at no - charge. Other usage limitations may apply, depending on the current Technorati - API license. - - - - - Once you have a valid API key, you're ready to start using - Zend_Service_Technorati. - - - - - Making Your First Query - - - In order to run a query, first you need a Zend_Service_Technorati - instance with a valid API key. Then choose one of the available query - methods, and call it providing required arguments. - - - - Sending your first query - - search('PHP'); -]]> - - - - Each query method accepts an array of optional parameters that can be used to refine - your query. - - - - Refining your query - - 'a4'); - -// search Technorati for PHP keyword -$resultSet = $technorati->search('PHP', $options); -]]> - - - - A Zend_Service_Technorati instance is not a single-use object. - That is, you don't need to create a new instance for each query call; simply use your - current Zend_Service_Technorati object as long as you need it. - - - - Sending multiple queries with the same Zend_Service_Technorati instance - - search('PHP'); - -// get top tags indexed by Technorati -$topTags = $technorati->topTags(); -]]> - - - - - Consuming Results - - - You can get one of two types of result object in response to a query. - - - - The first group is represented by - Zend_Service_Technorati_*ResultSet objects. A result set object - is basically a collection of result objects. It extends the basic - Zend_Service_Technorati_ResultSet class and implements the - SeekableIterator PHP interface. The best way - to consume a result set object is to loop over it with the PHP - foreach() statement. - - - - Consuming a result set object - - search('PHP'); - -// loop over all result objects -foreach ($resultSet as $result) { - // $result is an instance of Zend_Service_Technorati_SearchResult -} -]]> - - - - Because Zend_Service_Technorati_ResultSet implements the - SeekableIterator interface, you can seek a specific result - object using its position in the result collection. - - - - Seeking a specific result set object - - search('PHP'); - -// $result is an instance of Zend_Service_Technorati_SearchResult -$resultSet->seek(1); -$result = $resultSet->current(); -]]> - - - - - SeekableIterator works as an array and counts positions - starting from index 0. Fetching position number 1 means getting the second result - in the collection. - - - - - The second group is represented by special standalone result objects. - Zend_Service_Technorati_GetInfoResult, - Zend_Service_Technorati_BlogInfoResult and - Zend_Service_Technorati_KeyInfoResult act as wrappers for - additional objects, such as Zend_Service_Technorati_Author and - Zend_Service_Technorati_Weblog. - - - - Consuming a standalone result object - - getInfo('weppos'); - -$author = $result->getAuthor(); -echo '

    Blogs authored by ' . $author->getFirstName() . " " . - $author->getLastName() . '

    '; -echo '
      '; -foreach ($result->getWeblogs() as $weblog) { - echo '
    1. ' . $weblog->getName() . '
    2. '; -} -echo "
    "; -]]>
    -
    - - - Please read the Zend_Service_Technorati - Classes section for further details about response classes. - -
    - - - Handling Errors - - - Each Zend_Service_Technorati query method throws a - Zend_Service_Technorati_Exception exception on failure with a - meaningful error message. - - - - There are several reasons that may cause a - Zend_Service_Technorati query to fail. - Zend_Service_Technorati validates all parameters for any query - request. If a parameter is invalid or it contains an invalid value, a new - Zend_Service_Technorati_Exception exception is thrown. - Additionally, the Technorati API interface could be temporally - unavailable, or it could return a response that is not well formed. - - - - You should always wrap a Technorati query with a try ... catch - block. - - - - Handling a Query Exception - - search('PHP'); -} catch(Zend_Service_Technorati_Exception $e) { - echo "An error occurred: " $e->getMessage(); -} -]]> - - - - - Checking Your API Key Daily Usage - - - From time to time you probably will want to check your API key daily - usage. By default Technorati limits your API usage to 500 calls per - day, and an exception is returned by Zend_Service_Technorati if - you try to use it beyond this limit. You can get information about your - API key usage using the - Zend_Service_Technorati::keyInfo() method. - - - - Zend_Service_Technorati::keyInfo() returns a - Zend_Service_Technorati_KeyInfoResult object. For full details - please see the API reference - guide. - - - - Getting API key daily usage information - - keyInfo(); - -echo "API Key: " . $key->getApiKey() . "
    "; -echo "Daily Usage: " . $key->getApiQueries() . "/" . - $key->getMaxQueries() . "
    "; -]]>
    -
    -
    - - - Available Technorati Queries - - - Zend_Service_Technorati provides support for the following - queries: - - - - - Cosmos - - - - - - Search - - - - - - Tag - - - - - - DailyCounts - - - - - - TopTags - - - - - - BlogInfo - - - - - - BlogPostTags - - - - - - GetInfo - - - - - - - Technorati Cosmos - - - Cosmos query - lets you see what blogs are linking to a given URL. It returns a - Zend_Service_Technorati_CosmosResultSet - object. For full details please see - Zend_Service_Technorati::cosmos() in the - API reference guide. - - - - Cosmos Query - - cosmos('http://devzone.zend.com/'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati Search - - - The Search - query lets you see what blogs contain a given search string. It returns a Zend_Service_Technorati_SearchResultSet - object. For full details please see - Zend_Service_Technorati::search() in the - API reference guide. - - - - Search Query - - search('zend framework'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati Tag - - - The Tag query - lets you see what posts are associated with a given tag. It returns a Zend_Service_Technorati_TagResultSet - object. For full details please see - Zend_Service_Technorati::tag() in the - API reference guide. - - - - Tag Query - - tag('php'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati DailyCounts - - - The DailyCounts - query provides daily counts of posts containing the queried keyword. It returns a - Zend_Service_Technorati_DailyCountsResultSet - object. For full details please see - Zend_Service_Technorati::dailyCounts() in the - API reference guide. - - - - DailyCounts Query - - dailyCounts('php'); - -foreach ($resultSet as $result) { - echo "
  • " . $result->getDate() . - "(" . $result->getCount() . ")
  • "; -} -echo ""; -]]>
    -
    -
    - - - Technorati TopTags - - - The TopTags - query provides information on top tags indexed by Technorati. It returns a Zend_Service_Technorati_TagsResultSet - object. For full details please see - Zend_Service_Technorati::topTags() in the - API reference guide. - - - - TopTags Query - - topTags(); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati BlogInfo - - - The BlogInfo - query provides information on what blog, if any, is associated with a given - URL. It returns a Zend_Service_Technorati_BlogInfoResult - object. For full details please see - Zend_Service_Technorati::blogInfo() in the - API reference guide. - - - - BlogInfo Query - - blogInfo('http://devzone.zend.com/'); - -echo '

    ' . - $result->getWeblog()->getName() . '

    '; -]]>
    -
    -
    - - - Technorati BlogPostTags - - - The BlogPostTags - query provides information on the top tags used by a specific blog. It returns a - Zend_Service_Technorati_TagsResultSet - object. For full details please see - Zend_Service_Technorati::blogPostTags() in the - API reference guide. - - - - BlogPostTags Query - - blogPostTags('http://devzone.zend.com/'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati GetInfo - - - The GetInfo - query tells you things that Technorati knows about a member. It returns a Zend_Service_Technorati_GetInfoResult - object. For full details please see - Zend_Service_Technorati::getInfo() in the - API reference guide. - - - - GetInfo Query - - getInfo('weppos'); - -$author = $result->getAuthor(); -echo "

    Blogs authored by " . $author->getFirstName() . " " . - $author->getLastName() . "

    "; -echo "
      "; -foreach ($result->getWeblogs() as $weblog) { - echo "
    1. " . $weblog->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati KeyInfo - - - The KeyInfo query provides information on daily usage of an API - key. It returns a Zend_Service_Technorati_KeyInfoResult - object. For full details please see - Zend_Service_Technorati::keyInfo() in the - API reference guide. - - -
    - - - Zend_Service_Technorati Classes - - - The following classes are returned by the various Technorati queries. Each - Zend_Service_Technorati_*ResultSet class holds a type-specific - result set which can be easily iterated, with each result being contained in a type - result object. All result set classes extend - Zend_Service_Technorati_ResultSet class and implement the - SeekableIterator interface, allowing for easy iteration and - seeking to a specific result. - - - - - Zend_Service_Technorati_ResultSet - - - - - - Zend_Service_Technorati_CosmosResultSet - - - - - - Zend_Service_Technorati_SearchResultSet - - - - - - Zend_Service_Technorati_TagResultSet - - - - - - Zend_Service_Technorati_DailyCountsResultSet - - - - - - Zend_Service_Technorati_TagsResultSet - - - - - - Zend_Service_Technorati_Result - - - - - - Zend_Service_Technorati_CosmosResult - - - - - - Zend_Service_Technorati_SearchResult - - - - - - Zend_Service_Technorati_TagResult - - - - - - Zend_Service_Technorati_DailyCountsResult - - - - - - Zend_Service_Technorati_TagsResult - - - - - - Zend_Service_Technorati_GetInfoResult - - - - - - Zend_Service_Technorati_BlogInfoResult - - - - - - Zend_Service_Technorati_KeyInfoResult - - - - - - - - Zend_Service_Technorati_GetInfoResult, - Zend_Service_Technorati_BlogInfoResult and - Zend_Service_Technorati_KeyInfoResult represent exceptions to - the above because they don't belong to a result set and they don't implement any - interface. They represent a single response object and they act as a wrapper for - additional Zend_Service_Technorati objects, such as - Zend_Service_Technorati_Author and - Zend_Service_Technorati_Weblog. - - - - - The Zend_Service_Technorati library includes additional - convenient classes representing specific response objects. - Zend_Service_Technorati_Author represents a single Technorati - account, also known as a blog author or blogger. - Zend_Service_Technorati_Weblog represents a single weblog object, - along with all specific weblog properties such as feed URLs or blog - name. For full details please see Zend_Service_Technorati in the - API reference guide. - - - - Zend_Service_Technorati_ResultSet - - - Zend_Service_Technorati_ResultSet is the most essential - result set. The scope of this class is to be extended by a query-specific child - result set class, and it should never be used to initialize a standalone object. - Each of the specific result sets represents a collection of query-specific Zend_Service_Technorati_Result - objects. - - - - Zend_Service_Technorati_ResultSet implements the - PHP SeekableIterator interface, and you - can iterate all result objects via the PHP - foreach() statement. - - - - Iterating result objects from a resultset collection - - search('php'); - -// $resultSet is now an instance of -// Zend_Service_Technorati_SearchResultSet -// it extends Zend_Service_Technorati_ResultSet -foreach ($resultSet as $result) { - // do something with your - // Zend_Service_Technorati_SearchResult object -} -]]> - - - - - Zend_Service_Technorati_CosmosResultSet - - - Zend_Service_Technorati_CosmosResultSet represents a - Technorati Cosmos query result set. - - - - - Zend_Service_Technorati_CosmosResultSet extends Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_SearchResultSet - - - Zend_Service_Technorati_SearchResultSet represents a - Technorati Search query result set. - - - - - Zend_Service_Technorati_SearchResultSet extends Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_TagResultSet - - - Zend_Service_Technorati_TagResultSet represents a Technorati - Tag query result set. - - - - - Zend_Service_Technorati_TagResultSet extends Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_DailyCountsResultSet - - - Zend_Service_Technorati_DailyCountsResultSet represents a - Technorati DailyCounts query result set. - - - - - Zend_Service_Technorati_DailyCountsResultSet extends - Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_TagsResultSet - - - Zend_Service_Technorati_TagsResultSet represents a Technorati - TopTags or BlogPostTags queries result set. - - - - - Zend_Service_Technorati_TagsResultSet extends - Zend_Service_Technorati_ResultSet. - - - - - - Zend_Service_Technorati_Result - - - Zend_Service_Technorati_Result is the most essential result - object. The scope of this class is to be extended by a query specific child result - class, and it should never be used to initialize a standalone object. - - - - - Zend_Service_Technorati_CosmosResult - - - Zend_Service_Technorati_CosmosResult represents a single - Technorati Cosmos query result object. It is never returned as a standalone object, - but it always belongs to a valid Zend_Service_Technorati_CosmosResultSet - object. - - - - - Zend_Service_Technorati_CosmosResult extends Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_SearchResult - - - Zend_Service_Technorati_SearchResult represents a single - Technorati Search query result object. It is never returned as a standalone object, - but it always belongs to a valid Zend_Service_Technorati_SearchResultSet - object. - - - - - Zend_Service_Technorati_SearchResult extends Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_TagResult - - - Zend_Service_Technorati_TagResult represents a single - Technorati Tag query result object. It is never returned as a standalone object, but - it always belongs to a valid Zend_Service_Technorati_TagResultSet - object. - - - - - Zend_Service_Technorati_TagResult extends Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_DailyCountsResult - - - Zend_Service_Technorati_DailyCountsResult represents a single - Technorati DailyCounts query result object. It is never returned as a standalone - object, but it always belongs to a valid Zend_Service_Technorati_DailyCountsResultSet - object. - - - - - Zend_Service_Technorati_DailyCountsResult extends Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_TagsResult - - - Zend_Service_Technorati_TagsResult represents a single - Technorati TopTags or BlogPostTags query result object. It is never returned as a - standalone object, but it always belongs to a valid Zend_Service_Technorati_TagsResultSet - object. - - - - - Zend_Service_Technorati_TagsResult extends Zend_Service_Technorati_Result. - - - - - - Zend_Service_Technorati_GetInfoResult - - - Zend_Service_Technorati_GetInfoResult represents a single - Technorati GetInfo query result object. - - - - - Zend_Service_Technorati_BlogInfoResult - - - Zend_Service_Technorati_BlogInfoResult represents a single - Technorati BlogInfo query result object. - - - - - Zend_Service_Technorati_KeyInfoResult - - - Zend_Service_Technorati_KeyInfoResult represents a single - Technorati KeyInfo query result object. It provides information about your - Technorati - API Key daily usage. - - - -
    diff --git a/documentation/manual/en/ref/requirements-dependencies-table.xml b/documentation/manual/en/ref/requirements-dependencies-table.xml index fc13ff0e77..f680aacd5a 100644 --- a/documentation/manual/en/ref/requirements-dependencies-table.xml +++ b/documentation/manual/en/ref/requirements-dependencies-table.xml @@ -4657,114 +4657,6 @@ - - - - - Zend_Service_Technorati - - - - &requirements.hard; - - - Zend_Date - - - - - - - Zend_Exception - - - - - - - Zend_Http - - - - - - - Zend_Uri - - - - - - - Zend_Locale - - - - - &requirements.soft; - - - Zend_Rest - - - - - &requirements.fix; - - - Zend_Loader - - - - - - - Zend_Server - - - - - - - Zend_Service - - - - - - - Zend_Validate - - - - - &requirements.sub; - - - Zend_Filter - - - - - - - Zend_Registry - - - diff --git a/documentation/manual/en/ref/requirements-zendcomponents-table.xml b/documentation/manual/en/ref/requirements-zendcomponents-table.xml index 5ad8ea25d0..692d198037 100644 --- a/documentation/manual/en/ref/requirements-zendcomponents-table.xml +++ b/documentation/manual/en/ref/requirements-zendcomponents-table.xml @@ -1010,18 +1010,6 @@ url="&php.manual.link;/ref.soap.php">soap - - - - - Zend_Service_Technorati - - - - --- - --- - diff --git a/documentation/manual/es/ref/requirements-dependencies-table.xml b/documentation/manual/es/ref/requirements-dependencies-table.xml index 0545bd1819..e6efa9b2fa 100644 --- a/documentation/manual/es/ref/requirements-dependencies-table.xml +++ b/documentation/manual/es/ref/requirements-dependencies-table.xml @@ -4057,101 +4057,6 @@ - - - - - Zend_Service_Technorati - - - - Hard - - - Zend_Date - - - - - - - Zend_Exception - - - - - - - Zend_Http - - - - - - - Zend_Uri - - - - - - - Zend_Locale - - - - - Soft - - - Zend_Rest - - - - - Fix - - - Zend_Loader - - - - - - - Zend_Server - - - - - - - Zend_Service - - - - - - - Zend_Validate - - - - - Sub - - - Zend_Filter - - - - - - - Zend_Registry - - - diff --git a/documentation/manual/es/ref/requirements-zendcomponents-table.xml b/documentation/manual/es/ref/requirements-zendcomponents-table.xml index 48e5e57bd9..f205425ca1 100644 --- a/documentation/manual/es/ref/requirements-zendcomponents-table.xml +++ b/documentation/manual/es/ref/requirements-zendcomponents-table.xml @@ -855,17 +855,6 @@ soap - - - - - Zend_Service_Technorati - - - - --- - --- - diff --git a/documentation/manual/fr/module_specs/Zend_Service.xml b/documentation/manual/fr/module_specs/Zend_Service.xml index 1c8035644d..56baf7be94 100644 --- a/documentation/manual/fr/module_specs/Zend_Service.xml +++ b/documentation/manual/fr/module_specs/Zend_Service.xml @@ -89,12 +89,6 @@
    - - - Technorati - - - Twitter diff --git a/documentation/manual/he/ref/requirements.xml b/documentation/manual/he/ref/requirements.xml index 90c8acb2c0..af57951534 100644 --- a/documentation/manual/he/ref/requirements.xml +++ b/documentation/manual/he/ref/requirements.xml @@ -1038,11 +1038,6 @@ תלוי מאוד soap - - Zend_Service_Technorati - --- - --- - Zend_Service_Twitter --- @@ -2888,47 +2883,6 @@ Zend_Registry - - Zend_Service_Technorati - תלוי מאוד - Zend_Date - - - Zend_Exception - - - Zend_Http - - - Zend_Uri - - - Zend_Locale - - - לא תלוי - Zend_Rest - - - תיקון - Zend_Loader - - - Zend_Server - - - Zend_Service - - - Zend_Validate - - - תת - Zend_Filter - - - Zend_Registry - Zend_Service_Twitter תלוי מאוד diff --git a/documentation/manual/hu/ref/requirements-dependencies-table.xml b/documentation/manual/hu/ref/requirements-dependencies-table.xml index ef70902dcc..06e99a89d9 100644 --- a/documentation/manual/hu/ref/requirements-dependencies-table.xml +++ b/documentation/manual/hu/ref/requirements-dependencies-table.xml @@ -4607,114 +4607,6 @@ - - - - - Zend_Service_Technorati - - - - Erős - - - Zend_Date - - - - - - - Zend_Exception - - - - - - - Zend_Http - - - - - - - Zend_Uri - - - - - - - Zend_Locale - - - - - Gyenge - - - Zend_Rest - - - - - Állandó - - - Zend_Loader - - - - - - - Zend_Server - - - - - - - Zend_Service - - - - - - - Zend_Validate - - - - - Al- - - - Zend_Filter - - - - - - - Zend_Registry - - - diff --git a/documentation/manual/hu/ref/requirements-zendcomponents-table.xml b/documentation/manual/hu/ref/requirements-zendcomponents-table.xml index aa65cc5856..371785f3dd 100644 --- a/documentation/manual/hu/ref/requirements-zendcomponents-table.xml +++ b/documentation/manual/hu/ref/requirements-zendcomponents-table.xml @@ -962,18 +962,6 @@ url="http://www.php.net/manual/en/ref.soap.php">soap - - - - - Zend_Service_Technorati - - - - - - diff --git a/documentation/manual/id/ref/requirements.xml b/documentation/manual/id/ref/requirements.xml index d1d511c611..787acbf47e 100644 --- a/documentation/manual/id/ref/requirements.xml +++ b/documentation/manual/id/ref/requirements.xml @@ -1049,12 +1049,6 @@ --- soap - - Zend_Service_Technorati - --- - --- - --- - Zend_Service_Yahoo Hard @@ -1607,26 +1601,6 @@ Zend_Loader - - Zend_Service_Technorati - Hard - Zend_Date - - - Zend_Exception - - - Zend_Http - - - Zend_Locale - - - Zend_Rest - - - Zend_Uri - Zend_Service_Yahoo Hard @@ -1795,7 +1769,6 @@ Service_Delicious Service_Flickr Service_SlideShare Service_StrikeIron -Service_Technorati Service_Yahoo Session TimeSync diff --git a/documentation/manual/ja/module_specs/Zend_Service.xml b/documentation/manual/ja/module_specs/Zend_Service.xml index 0a2ef39ee7..691d3a3074 100644 --- a/documentation/manual/ja/module_specs/Zend_Service.xml +++ b/documentation/manual/ja/module_specs/Zend_Service.xml @@ -82,12 +82,6 @@ - - - Technorati - - - Twitter diff --git a/documentation/manual/ja/module_specs/Zend_Service_Technorati.xml b/documentation/manual/ja/module_specs/Zend_Service_Technorati.xml deleted file mode 100644 index 2a71e1ea9d..0000000000 --- a/documentation/manual/ja/module_specs/Zend_Service_Technorati.xml +++ /dev/null @@ -1,799 +0,0 @@ - - - - - Zend_Service_Technorati(日本語) - - 注意:このドキュメントでは、英語版のリビジョン 22768 の更新内容をスキップしています。 - - 導入 - - Zend_Service_Technorati は、Technorati API - を使うための簡単で直感的なオブジェクト指向インターフェイスを提供します。 - 利用可能なすべての - Technorati API クエリ - にアクセスすることができ、API が返す XML - 形式のレスポンスを PHP で扱いやすいオブジェクトで返します。 - - - Technorati - は、人気のあるブログ検索エンジンのひとつです。その API を使用すると、 - 特定のブログについての情報を取得したり、 - 指定したタグやフレーズにマッチするブログの著者の情報を取得したりできます。 - 使用できるクエリの一覧は、 - Technorati API ドキュメント - あるいはこのドキュメントの - 使用できる Technorati クエリ - を参照ください。 - - - - - さあ始めましょう - - Technorati API を使用するには、キーが必要です。 - API キーを取得するには、まず最初に - Technorati アカウントを作成 - し、それから - API キーのセクション - に行ってください。 - - - API キーの制限 - - 一日あたり最大 500 までの Technorati API コールを無料で行うことができます。 - 現在の Technorati API のライセンスによってはその他の使用制限が適用されるかもしれません。 - - - - API キーを取得したら、いよいよ Zend_Service_Technorati - を使うことができます。 - - - - - はじめてのクエリ - - クエリを実行するにはまず最初に API キーを使用して - Zend_Service_Technorati のインスタンスを作成します。 - そしてクエリの形式を選択し、引数を指定したうえでそれをコールします。 - - - はじめてのクエリの実行 - search('PHP'); -]]> - - - 検索用のメソッドにはオプションパラメータの配列を渡すことができます。 - これを使用すると、クエリをさらに絞り込むことができます。 - - - クエリの精度の向上 - 'a4'); - -// Technorati で PHP というキーワードを検索します -$resultSet = $technorati->search('PHP', $options); -]]> - - - Zend_Service_Technorati のインスタンスは使い捨てのオブジェクトではありません。 - したがって、クエリをコールするたびに毎回新たなインスタンスを作成するなどということは不要です。 - 一度作成した Zend_Service_Technorati - オブジェクトを、気の済むまで使い回せばいいのです。 - - - ひとつの Zend_Service_Technorati インスタンスでの複数のクエリの送信 - search('PHP'); - -// Technorati で一番よく登録されているタブを取得します -$topTags = $technorati->topTags(); -]]> - - - - - 結果の取得 - - クエリの結果は、二種類の結果オブジェクトのうちのいずれかの形式で取得できます。 - - - まず最初の形式は Zend_Service_Technorati_*ResultSet - オブジェクトで表されるものです。結果セットオブジェクトは、 - 基本的には結果オブジェクトのコレクションとなります。これは基底クラス - Zend_Service_Technorati_ResultSet を継承したもので、 - PHPSeekableIterator インターフェイスを実装しています。 - この結果セットを使用するいちばんよい方法は、PHPforeach - 文を用いてループ処理することです。 - - - 結果セットオブジェクトの取得 - search('PHP'); - -// 結果オブジェクトをループします -foreach ($resultSet as $result) { - // $result は Zend_Service_Technorati_SearchResult のインスタンスです -} -]]> - - - Zend_Service_Technorati_ResultSetSeekableIterator - インターフェイスを実装しているので、結果コレクション内での位置を指定して - 特定の結果オブジェクトを取得することもできます。 - - - 特定の結果セットオブジェクトの取得 - search('PHP'); - -// $result は Zend_Service_Technorati_SearchResult のインスタンスです -$resultSet->seek(1); -$result = $resultSet->current(); -]]> - - - - SeekableIterator は配列として動作し、 - そのインデックスは 0 から始まります。インデックス 1 - を指定すると、コレクション内の 2 番目の結果を取得することになります。 - - - - 2 番目の形式は、単体の特別な結果オブジェクトで表されるものです。 - Zend_Service_Technorati_GetInfoResultZend_Service_Technorati_BlogInfoResult - および Zend_Service_Technorati_KeyInfoResult は、 - Zend_Service_Technorati_AuthorZend_Service_Technorati_Weblog - といったオブジェクトのラッパーとして働きます。 - - - 単体の結果オブジェクトの取得 - getInfo('weppos'); - -$author = $result->getAuthor(); -echo '

    ' . $author->getFirstName() . ' ' . $author->getLastName() . - ' のブログ

    '; -echo '
      '; -foreach ($result->getWeblogs() as $weblog) { - echo '
    1. ' . $weblog->getName() . '
    2. '; -} -echo "
    "; -]]>
    -
    - - レスポンスクラスの詳細については - Zend_Service_Technorati クラス - のセクションを参照ください。 - - -
    - - - エラー処理 - - Zend_Service_Technorati のクエリメソッドは、失敗したときには - Zend_Service_Technorati_Exception をスローします。 - またその際にはわかりやすいエラーメッセージを提供します。 - - - Zend_Service_Technorati のクエリが失敗する原因は、いくつか考えられます。 - Zend_Service_Technorati は、クエリを送信する際にすべてのパラメータを検証します。 - もし無効なパラメータや無効な値を指定していた場合は - Zend_Service_Technorati_Exception をスローします。 - さらに、Technorati API が一時的に使用できなくなっていたり、 - そのレスポンスが整形式でない場合もあり得るでしょう。 - - - Technorati のクエリは、常に try...catch - ブロック内に記述するようにしましょう。 - - - クエリの例外処理 - search('PHP'); -} catch(Zend_Service_Technorati_Exception $e) { - echo "エラーが発生しました: " $e->getMessage(); -} -]]> - - - - - API キーの使用限度の確認 - - 今日は後何回 API キーが使えるのかを調べたいことも多々あるでしょう。 - デフォルトでは、Technorati の API は 1 日あたり 500 回までしか使用することができません。 - それを超えて使用しようとすると、Zend_Service_Technorati - は例外を返します。自分の API キーの使用状況を取得するには - Zend_Service_Technorati::keyInfo() メソッドを使用します。 - - - Zend_Service_Technorati::keyInfo() は - Zend_Service_Technorati_KeyInfoResult オブジェクトを返します。 - 詳細は - API リファレンスガイド - を参照ください。 - - - API キーの使用状況の取得 - keyInfo(); - -echo "API Key: " . $key->getApiKey() . "
    "; -echo "Daily Usage: " . $key->getApiQueries() . "/" . - $key->getMaxQueries() . "
    "; -]]>
    -
    -
    - - - 使用できる Technorati クエリ - - Zend_Service_Technorati は以下のクエリをサポートしています。 - - Cosmos - Search - Tag - DailyCounts - TopTags - BlogInfo - BlogPostTags - GetInfo - - - - - Technorati Cosmos - - Cosmos - クエリは、指定した URL にリンクしているブログを探します。このクエリは - Zend_Service_Technorati_CosmosResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::cosmos() を参照ください。 - - - Cosmos クエリ - cosmos('http://devzone.zend.com/'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati Search - - Search - クエリは、指定した検索文字列を含むブログを探します。このクエリは - Zend_Service_Technorati_SearchResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::search() を参照ください。 - - - Search クエリ - search('zend framework'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati Tag - - Tag - クエリは、指定したタグがつけられている投稿を探します。このクエリは - Zend_Service_Technorati_TagResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::tag() を参照ください。 - - - Tag クエリ - tag('php'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getWeblog()->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati DailyCounts - - DailyCounts - クエリは、指定したキーワードを含む投稿の 1 日あたりの数を返します。このクエリは - Zend_Service_Technorati_DailyCountsResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::dailyCounts() を参照ください。 - - - DailyCounts クエリ - dailyCounts('php'); - -foreach ($resultSet as $result) { - echo "
  • " . $result->getDate() . - "(" . $result->getCount() . ")
  • "; -} -echo ""; -]]>
    -
    -
    - - - Technorati TopTags - - TopTags - クエリは、Technorati にもっとも多く登録されているタグの情報を返します。このクエリは - Zend_Service_Technorati_TagsResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::topTags() を参照ください。 - - - TopTags タグ - topTags(); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati BlogInfo - - BlogInfo - は、指定した URL に関連するブログの情報を返します。このクエリは - Zend_Service_Technorati_BlogInfoResult - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::blogInfo() を参照ください。 - - - BlogInfo クエリ - blogInfo('http://devzone.zend.com/'); - -echo '

    ' . - $result->getWeblog()->getName() . '

    '; -]]>
    -
    -
    - - - Technorati BlogPostTags - - BlogPostTags - クエリは、そのブログでよく使われているタグの情報を返します。このクエリは - Zend_Service_Technorati_TagsResultSet - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::blogPostTags() を参照ください。 - - - BlogPostTags クエリ - blogPostTags('http://devzone.zend.com/'); - -echo "

    Reading " . $resultSet->totalResults() . - " of " . $resultSet->totalResultsAvailable() . - " available results

    "; -echo "
      "; -foreach ($resultSet as $result) { - echo "
    1. " . $result->getTag() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati GetInfo - - GetInfo - クエリは、あるメンバーについて Technorati が把握している情報を返します。このクエリは - Zend_Service_Technorati_GetInfoResult - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::getInfo() を参照ください。 - - - GetInfo クエリ - getInfo('weppos'); - -$author = $result->getAuthor(); -echo "

    Blogs authored by " . $author->getFirstName() . " " . - $author->getLastName() . "

    "; -echo "
      "; -foreach ($result->getWeblogs() as $weblog) { - echo "
    1. " . $weblog->getName() . "
    2. "; -} -echo "
    "; -]]>
    -
    -
    - - - Technorati KeyInfo - - KeyInfo クエリは、API キーの使用状況についての情報を返します。このクエリは - Zend_Service_Technorati_KeyInfoResult - オブジェクトを返します。詳細は - API リファレンスガイド - の Zend_Service_Technorati::keyInfo() を参照ください。 - - - -
    - - - Zend_Service_Technorati クラス - - 以下のクラスは、Technorati の各種クエリから返されるものです。 - Zend_Service_Technorati_*ResultSet 系のクラスは、 - それぞれの形式にあわせた結果セットを保持します。 - その中身は形式にあわせた結果オブジェクトであり、容易に処理できます。 - これらの結果セットクラスはすべて - Zend_Service_Technorati_ResultSet クラスを継承しており、かつ - SeekableIterator インターフェイスを実装しています。 - これによって、結果のループ処理や特定の結果の取り出しが簡単にできるようになります。 - - Zend_Service_Technorati_ResultSet - Zend_Service_Technorati_CosmosResultSet - Zend_Service_Technorati_SearchResultSet - Zend_Service_Technorati_TagResultSet - Zend_Service_Technorati_DailyCountsResultSet - Zend_Service_Technorati_TagsResultSet - Zend_Service_Technorati_Result - Zend_Service_Technorati_CosmosResult - Zend_Service_Technorati_SearchResult - Zend_Service_Technorati_TagResult - Zend_Service_Technorati_DailyCountsResult - Zend_Service_Technorati_TagsResult - Zend_Service_Technorati_GetInfoResult - Zend_Service_Technorati_BlogInfoResult - Zend_Service_Technorati_KeyInfoResult - - - - - Zend_Service_Technorati_GetInfoResult、 - Zend_Service_Technorati_BlogInfoResult - そして Zend_Service_Technorati_KeyInfoResult - には上にあげたクラスと異なる点があります。これらは結果セットに属しておらず、 - インターフェイスを実装していません。これらは単一のレスポンスオブジェクトを表し、 - Zend_Service_Technorati_AuthorZend_Service_Technorati_Weblog - といった Zend_Service_Technorati のオブジェクトのラッパーとして働きます。 - - - - Zend_Service_Technorati には、これ以外にも - 特定のレスポンスオブジェクトを表す便利なクラスが含まれています。 - Zend_Service_Technorati_Author は、Technorati のアカウント - (ブログの著者、いわゆるブロガー) を表します。 - Zend_Service_Technorati_Weblog は単一のウェブログオブジェクトを表します。 - ここには、フィードの URL やブログ名などの情報が含まれます。詳細は - API リファレンスガイド - の Zend_Service_Technorati を参照ください。 - - - - Zend_Service_Technorati_ResultSet - - Zend_Service_Technorati_ResultSet は最も重要な結果セットです。 - クエリ固有の結果セットクラス群はこのクラスを継承して作成しています。 - このクラス自体のインスタンスを直接作成してはいけません。 - 各子クラスは、クエリの種類に応じた - Zend_Service_Technorati_Result - オブジェクトのコレクションを表します。 - - - Zend_Service_Technorati_ResultSetPHPSeekableIterator - インターフェイスを実装しており、foreach - 文で結果を処理できます。 - - - 結果セットコレクション内の結果オブジェクトの反復処理 - search('php'); - -// $resultSet は Zend_Service_Technorati_SearchResultSet -// のインスタンスです -// これは Zend_Service_Technorati_ResultSet を継承しています -foreach ($resultSet as $result) { - // Zend_Service_Technorati_SearchResult オブジェクトに対して - // 何らかの操作をします -} -]]> - - - - - Zend_Service_Technorati_CosmosResultSet - - Zend_Service_Technorati_CosmosResultSet は - Technorati Cosmos クエリの結果セットを表します。 - - - - Zend_Service_Technorati_CosmosResultSet は - Zend_Service_Technorati_ResultSet - を継承しています。 - - - - - - Zend_Service_Technorati_SearchResultSet - - Zend_Service_Technorati_SearchResultSet は - Technorati Search クエリの結果セットを表します。 - - - - Zend_Service_Technorati_SearchResultSet は - Zend_Service_Technorati_ResultSet - を継承しています。 - - - - - - Zend_Service_Technorati_TagResultSet - - Zend_Service_Technorati_TagResultSet は - Technorati Tag クエリの結果セットを表します。 - - - - Zend_Service_Technorati_TagResultSet は - Zend_Service_Technorati_ResultSet - を継承しています。 - - - - - - Zend_Service_Technorati_DailyCountsResultSet - - Zend_Service_Technorati_DailyCountsResultSet は - Technorati DailyCounts クエリの結果セットを表します。 - - - - Zend_Service_Technorati_DailyCountsResultSet は - Zend_Service_Technorati_ResultSet - を継承しています。 - - - - - - Zend_Service_Technorati_TagsResultSet - - Zend_Service_Technorati_TagsResultSet は - Technorati TopTags あるいは BlogPostTags クエリの結果セットを表します。 - - - - Zend_Service_Technorati_TagsResultSet は - Zend_Service_Technorati_ResultSet - を継承しています。 - - - - - - Zend_Service_Technorati_Result - - Zend_Service_Technorati_Result は最も重要な結果オブジェクトです。 - クエリ固有の結果クラス群はこのクラスを継承して作成しています。 - このクラス自体のインスタンスを直接作成してはいけません。 - - - - - Zend_Service_Technorati_CosmosResult - - Zend_Service_Technorati_CosmosResult は - Technorati Cosmos クエリの単一の結果オブジェクトを表します。 - 単体のオブジェクトとして返されることはなく、常に - Zend_Service_Technorati_CosmosResultSet - オブジェクトに含まれる形式で返されます。 - - - - Zend_Service_Technorati_CosmosResult は - Zend_Service_Technorati_Result - を継承しています。 - - - - - - Zend_Service_Technorati_SearchResult - - Zend_Service_Technorati_SearchResult は - Technorati Search クエリの単一の結果オブジェクトを表します。 - 単体のオブジェクトとして返されることはなく、常に - Zend_Service_Technorati_SearchResultSet - オブジェクトに含まれる形式で返されます。 - - - - Zend_Service_Technorati_SearchResult は - Zend_Service_Technorati_Result - を継承しています。 - - - - - - Zend_Service_Technorati_TagResult - - Zend_Service_Technorati_TagResult は - Technorati Tag クエリの単一の結果オブジェクトを表します。 - 単体のオブジェクトとして返されることはなく、常に - Zend_Service_Technorati_TagResultSet - オブジェクトに含まれる形式で返されます。 - - - - Zend_Service_Technorati_TagResult は - Zend_Service_Technorati_Result - を継承しています。 - - - - - - Zend_Service_Technorati_DailyCountsResult - - Zend_Service_Technorati_DailyCountsResult は - Technorati DailyCounts クエリの単一の結果オブジェクトを表します。 - 単体のオブジェクトとして返されることはなく、常に - Zend_Service_Technorati_DailyCountsResultSet - オブジェクトに含まれる形式で返されます。 - - - - Zend_Service_Technorati_DailyCountsResult は - Zend_Service_Technorati_Result - を継承しています。 - - - - - - Zend_Service_Technorati_TagsResult - - Zend_Service_Technorati_TagsResult は - Technorati TopTags あるいは BlogPostTags クエリの単一の結果オブジェクトを表します。 - 単体のオブジェクトとして返されることはなく、常に - Zend_Service_Technorati_TagsResultSet - オブジェクトに含まれる形式で返されます。 - - - - Zend_Service_Technorati_TagsResult は - Zend_Service_Technorati_Result - を継承しています。 - - - - - - Zend_Service_Technorati_GetInfoResult - - Zend_Service_Technorati_GetInfoResult は - Technorati GetInfo クエリの単一の結果オブジェクトを表します。 - - - - - Zend_Service_Technorati_BlogInfoResult - - Zend_Service_Technorati_BlogInfoResult は - Technorati BlogInfo クエリの単一の結果オブジェクトを表します。 - - - - - Zend_Service_Technorati_KeyInfoResult - - Zend_Service_Technorati_KeyInfoResult は - Technorati KeyInfo クエリの単一の結果オブジェクトを表します。 - これは - Technorati API キーの使用状況 - についての情報を提供します。 - - - - - -
    diff --git a/documentation/manual/pl/ref/requirements.xml b/documentation/manual/pl/ref/requirements.xml index 86fae9cb73..9f146eb87a 100644 --- a/documentation/manual/pl/ref/requirements.xml +++ b/documentation/manual/pl/ref/requirements.xml @@ -1058,12 +1058,6 @@ --- soap - - Zend_Service_Technorati - --- - --- - --- - Zend_Service_Yahoo Silna @@ -1616,26 +1610,6 @@ Zend_Loader - - Zend_Service_Technorati - Silna - Zend_Date - - - Zend_Exception - - - Zend_Http - - - Zend_Locale - - - Zend_Rest - - - Zend_Uri - Zend_Service_Yahoo Silna @@ -1804,7 +1778,6 @@ Service_Delicious Service_Flickr Service_SlideShare Service_StrikeIron -Service_Technorati Service_Yahoo Session TimeSync diff --git a/documentation/manual/pt-br/module_specs/Zend_Service.xml b/documentation/manual/pt-br/module_specs/Zend_Service.xml index bd913410a5..25140f47c3 100644 --- a/documentation/manual/pt-br/module_specs/Zend_Service.xml +++ b/documentation/manual/pt-br/module_specs/Zend_Service.xml @@ -89,12 +89,6 @@
    - - - Technorati - - - Twitter diff --git a/library/Zend/Service/Technorati.php b/library/Zend/Service/Technorati.php deleted file mode 100644 index a4e6526d46..0000000000 --- a/library/Zend/Service/Technorati.php +++ /dev/null @@ -1,1035 +0,0 @@ -_apiKey = $apiKey; - } - - - /** - * Cosmos query lets you see what blogs are linking to a given URL. - * - * On the Technorati site, you can enter a URL in the searchbox and - * it will return a list of blogs linking to it. - * The API version allows more features and gives you a way - * to use the cosmos on your own site. - * - * Query options include: - * - * 'type' => (link|weblog) - * optional - A value of link returns the freshest links referencing your target URL. - * A value of weblog returns the last set of unique weblogs referencing your target URL. - * 'limit' => (int) - * optional - adjust the size of your result from the default value of 20 - * to between 1 and 100 results. - * 'start' => (int) - * optional - adjust the range of your result set. - * Set this number to larger than zero and you will receive - * the portion of Technorati's total result set ranging from start to start+limit. - * The default start value is 1. - * 'current' => (true|false) - * optional - the default setting of true - * Technorati returns links that are currently on a weblog's homepage. - * Set this parameter to false if you would like to receive all links - * to the given URL regardless of their current placement on the source blog. - * Internally the value is converted in (yes|no). - * 'claim' => (true|false) - * optional - the default setting of FALSE returns no user information - * about each weblog included in the result set when available. - * Set this parameter to FALSE to include Technorati member data - * in the result set when a weblog in your result set - * has been successfully claimed by a member of Technorati. - * Internally the value is converted in (int). - * 'highlight' => (true|false) - * optional - the default setting of TRUE - * highlights the citation of the given URL within the weblog excerpt. - * Set this parameter to FALSE to apply no special markup to the blog excerpt. - * Internally the value is converted in (int). - * - * @param string $url the URL you are searching for. Prefixes http:// and www. are optional. - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_CosmosResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/cosmos.html Technorati API: Cosmos Query reference - */ - public function cosmos($url, $options = null) - { - static $defaultOptions = array( 'type' => 'link', - 'start' => 1, - 'limit' => 20, - 'current' => 'yes', - 'format' => 'xml', - 'claim' => 0, - 'highlight' => 1, - ); - - $options['url'] = $url; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateCosmos($options); - $response = $this->_makeRequest(self::API_PATH_COSMOS, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_CosmosResultSet - */ - require_once 'Zend/Service/Technorati/CosmosResultSet.php'; - return new Zend_Service_Technorati_CosmosResultSet($dom, $options); - } - - /** - * Search lets you see what blogs contain a given search string. - * - * Query options include: - * - * 'language' => (string) - * optional - a ISO 639-1 two character language code - * to retrieve results specific to that language. - * This feature is currently beta and may not work for all languages. - * 'authority' => (n|a1|a4|a7) - * optional - filter results to those from blogs with at least - * the Technorati Authority specified. - * Technorati calculates a blog's authority by how many people link to it. - * Filtering by authority is a good way to refine your search results. - * There are four settings: - * - n => Any authority: All results. - * - a1 => A little authority: Results from blogs with at least one link. - * - a4 => Some authority: Results from blogs with a handful of links. - * - a7 => A lot of authority: Results from blogs with hundreds of links. - * 'limit' => (int) - * optional - adjust the size of your result from the default value of 20 - * to between 1 and 100 results. - * 'start' => (int) - * optional - adjust the range of your result set. - * Set this number to larger than zero and you will receive - * the portion of Technorati's total result set ranging from start to start+limit. - * The default start value is 1. - * 'claim' => (true|false) - * optional - the default setting of FALSE returns no user information - * about each weblog included in the result set when available. - * Set this parameter to FALSE to include Technorati member data - * in the result set when a weblog in your result set - * has been successfully claimed by a member of Technorati. - * Internally the value is converted in (int). - * - * @param string $query the words you are searching for. - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_SearchResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/search.html Technorati API: Search Query reference - */ - public function search($query, $options = null) - { - static $defaultOptions = array( 'start' => 1, - 'limit' => 20, - 'format' => 'xml', - 'claim' => 0); - - $options['query'] = $query; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateSearch($options); - $response = $this->_makeRequest(self::API_PATH_SEARCH, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_SearchResultSet - */ - require_once 'Zend/Service/Technorati/SearchResultSet.php'; - return new Zend_Service_Technorati_SearchResultSet($dom, $options); - } - - /** - * Tag lets you see what posts are associated with a given tag. - * - * Query options include: - * - * 'limit' => (int) - * optional - adjust the size of your result from the default value of 20 - * to between 1 and 100 results. - * 'start' => (int) - * optional - adjust the range of your result set. - * Set this number to larger than zero and you will receive - * the portion of Technorati's total result set ranging from start to start+limit. - * The default start value is 1. - * 'excerptsize' => (int) - * optional - number of word characters to include in the post excerpts. - * By default 100 word characters are returned. - * 'topexcerptsize' => (int) - * optional - number of word characters to include in the first post excerpt. - * By default 150 word characters are returned. - * - * @param string $tag the tag term you are searching posts for. - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_TagResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/tag.html Technorati API: Tag Query reference - */ - public function tag($tag, $options = null) - { - static $defaultOptions = array( 'start' => 1, - 'limit' => 20, - 'format' => 'xml', - 'excerptsize' => 100, - 'topexcerptsize' => 150); - - $options['tag'] = $tag; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateTag($options); - $response = $this->_makeRequest(self::API_PATH_TAG, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_TagResultSet - */ - require_once 'Zend/Service/Technorati/TagResultSet.php'; - return new Zend_Service_Technorati_TagResultSet($dom, $options); - } - - /** - * TopTags provides daily counts of posts containing the queried keyword. - * - * Query options include: - * - * 'days' => (int) - * optional - Used to specify the number of days in the past - * to request daily count data for. - * Can be any integer between 1 and 180, default is 180 - * - * @param string $q the keyword query - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_DailyCountsResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/dailycounts.html Technorati API: DailyCounts Query reference - */ - public function dailyCounts($query, $options = null) - { - static $defaultOptions = array( 'days' => 180, - 'format' => 'xml' - ); - - $options['q'] = $query; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateDailyCounts($options); - $response = $this->_makeRequest(self::API_PATH_DAILYCOUNTS, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_DailyCountsResultSet - */ - require_once 'Zend/Service/Technorati/DailyCountsResultSet.php'; - return new Zend_Service_Technorati_DailyCountsResultSet($dom); - } - - /** - * TopTags provides information on top tags indexed by Technorati. - * - * Query options include: - * - * 'limit' => (int) - * optional - adjust the size of your result from the default value of 20 - * to between 1 and 100 results. - * 'start' => (int) - * optional - adjust the range of your result set. - * Set this number to larger than zero and you will receive - * the portion of Technorati's total result set ranging from start to start+limit. - * The default start value is 1. - * - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_TagsResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/toptags.html Technorati API: TopTags Query reference - */ - public function topTags($options = null) - { - static $defaultOptions = array( 'start' => 1, - 'limit' => 20, - 'format' => 'xml' - ); - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateTopTags($options); - $response = $this->_makeRequest(self::API_PATH_TOPTAGS, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_TagsResultSet - */ - require_once 'Zend/Service/Technorati/TagsResultSet.php'; - return new Zend_Service_Technorati_TagsResultSet($dom); - } - - /** - * BlogInfo provides information on what blog, if any, is associated with a given URL. - * - * @param string $url the URL you are searching for. Prefixes http:// and www. are optional. - * The URL must be recognized by Technorati as a blog. - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_BlogInfoResult - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/bloginfo.html Technorati API: BlogInfo Query reference - */ - public function blogInfo($url, $options = null) - { - static $defaultOptions = array( 'format' => 'xml' - ); - - $options['url'] = $url; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateBlogInfo($options); - $response = $this->_makeRequest(self::API_PATH_BLOGINFO, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_BlogInfoResult - */ - require_once 'Zend/Service/Technorati/BlogInfoResult.php'; - return new Zend_Service_Technorati_BlogInfoResult($dom); - } - - /** - * BlogPostTags provides information on the top tags used by a specific blog. - * - * Query options include: - * - * 'limit' => (int) - * optional - adjust the size of your result from the default value of 20 - * to between 1 and 100 results. - * 'start' => (int) - * optional - adjust the range of your result set. - * Set this number to larger than zero and you will receive - * the portion of Technorati's total result set ranging from start to start+limit. - * The default start value is 1. - * Note. This property is not documented. - * - * @param string $url the URL you are searching for. Prefixes http:// and www. are optional. - * The URL must be recognized by Technorati as a blog. - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_TagsResultSet - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/blogposttags.html Technorati API: BlogPostTags Query reference - */ - public function blogPostTags($url, $options = null) - { - static $defaultOptions = array( 'start' => 1, - 'limit' => 20, - 'format' => 'xml' - ); - - $options['url'] = $url; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateBlogPostTags($options); - $response = $this->_makeRequest(self::API_PATH_BLOGPOSTTAGS, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_TagsResultSet - */ - require_once 'Zend/Service/Technorati/TagsResultSet.php'; - return new Zend_Service_Technorati_TagsResultSet($dom); - } - - /** - * GetInfo query tells you things that Technorati knows about a member. - * - * The returned info is broken up into two sections: - * The first part describes some information that the user wants - * to allow people to know about him- or herself. - * The second part of the document is a listing of the weblogs - * that the user has successfully claimed and the information - * that Technorati knows about these weblogs. - * - * @param string $username the Technorati user name you are searching for - * @param array $options additional parameters to refine your query - * @return Zend_Service_Technorati_GetInfoResult - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/getinfo.html Technorati API: GetInfo reference - */ - public function getInfo($username, $options = null) - { - static $defaultOptions = array('format' => 'xml'); - - $options['username'] = $username; - - $options = $this->_prepareOptions($options, $defaultOptions); - $this->_validateGetInfo($options); - $response = $this->_makeRequest(self::API_PATH_GETINFO, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_GetInfoResult - */ - require_once 'Zend/Service/Technorati/GetInfoResult.php'; - return new Zend_Service_Technorati_GetInfoResult($dom); - } - - /** - * KeyInfo query provides information on daily usage of an API key. - * Key Info Queries do not count against a key's daily query limit. - * - * A day is defined as 00:00-23:59 Pacific time. - * - * @return Zend_Service_Technorati_KeyInfoResult - * @throws Zend_Service_Technorati_Exception - * @link http://developers.technorati.com/wiki/KeyInfo Technorati API: Key Info reference - */ - public function keyInfo() - { - static $defaultOptions = array(); - - $options = $this->_prepareOptions(array(), $defaultOptions); - // you don't need to validate this request - // because key is the only mandatory element - // and it's already set in #_prepareOptions - $response = $this->_makeRequest(self::API_PATH_KEYINFO, $options); - $dom = $this->_convertResponseAndCheckContent($response); - - /** - * @see Zend_Service_Technorati_KeyInfoResult - */ - require_once 'Zend/Service/Technorati/KeyInfoResult.php'; - return new Zend_Service_Technorati_KeyInfoResult($dom, $this->_apiKey); - } - - - /** - * Returns Technorati API key. - * - * @return string Technorati API key - */ - public function getApiKey() - { - return $this->_apiKey; - } - - /** - * Returns a reference to the REST client object in use. - * - * If the reference hasn't being inizialized yet, - * then a new Zend_Rest_Client instance is created. - * - * @return Zend_Rest_Client - */ - public function getRestClient() - { - if ($this->_restClient === null) { - /** - * @see Zend_Rest_Client - */ - require_once 'Zend/Rest/Client.php'; - $this->_restClient = new Zend_Rest_Client(self::API_URI_BASE); - } - - return $this->_restClient; - } - - /** - * Sets Technorati API key. - * - * Be aware that this function doesn't validate the key. - * The key is validated as soon as the first API request is sent. - * If the key is invalid, the API request method will throw - * a Zend_Service_Technorati_Exception exception with Invalid Key message. - * - * @param string $key Technorati API Key - * @return void - * @link http://technorati.com/developers/apikey.html How to get your Technorati API Key - */ - public function setApiKey($key) - { - $this->_apiKey = $key; - return $this; - } - - - /** - * Validates Cosmos query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateCosmos(array $options) - { - static $validOptions = array('key', 'url', - 'type', 'limit', 'start', 'current', 'claim', 'highlight', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate url (required) - $this->_validateOptionUrl($options); - // Validate limit (optional) - $this->_validateOptionLimit($options); - // Validate start (optional) - $this->_validateOptionStart($options); - // Validate format (optional) - $this->_validateOptionFormat($options); - // Validate type (optional) - $this->_validateInArrayOption('type', $options, array('link', 'weblog')); - // Validate claim (optional) - $this->_validateOptionClaim($options); - // Validate highlight (optional) - $this->_validateIntegerOption('highlight', $options); - // Validate current (optional) - if (isset($options['current'])) { - $tmp = (int) $options['current']; - $options['current'] = $tmp ? 'yes' : 'no'; - } - - } - - /** - * Validates Search query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateSearch(array $options) - { - static $validOptions = array('key', 'query', - 'language', 'authority', 'limit', 'start', 'claim', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate query (required) - $this->_validateMandatoryOption('query', $options); - // Validate authority (optional) - $this->_validateInArrayOption('authority', $options, array('n', 'a1', 'a4', 'a7')); - // Validate limit (optional) - $this->_validateOptionLimit($options); - // Validate start (optional) - $this->_validateOptionStart($options); - // Validate claim (optional) - $this->_validateOptionClaim($options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - /** - * Validates Tag query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateTag(array $options) - { - static $validOptions = array('key', 'tag', - 'limit', 'start', 'excerptsize', 'topexcerptsize', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate query (required) - $this->_validateMandatoryOption('tag', $options); - // Validate limit (optional) - $this->_validateOptionLimit($options); - // Validate start (optional) - $this->_validateOptionStart($options); - // Validate excerptsize (optional) - $this->_validateIntegerOption('excerptsize', $options); - // Validate excerptsize (optional) - $this->_validateIntegerOption('topexcerptsize', $options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - - /** - * Validates DailyCounts query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateDailyCounts(array $options) - { - static $validOptions = array('key', 'q', - 'days', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate q (required) - $this->_validateMandatoryOption('q', $options); - // Validate format (optional) - $this->_validateOptionFormat($options); - // Validate days (optional) - if (isset($options['days'])) { - $options['days'] = (int) $options['days']; - if ($options['days'] < self::PARAM_DAYS_MIN_VALUE || - $options['days'] > self::PARAM_DAYS_MAX_VALUE) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid value '" . $options['days'] . "' for 'days' option"); - } - } - } - - /** - * Validates GetInfo query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateGetInfo(array $options) - { - static $validOptions = array('key', 'username', - 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate username (required) - $this->_validateMandatoryOption('username', $options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - /** - * Validates TopTags query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateTopTags(array $options) - { - static $validOptions = array('key', - 'limit', 'start', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate limit (optional) - $this->_validateOptionLimit($options); - // Validate start (optional) - $this->_validateOptionStart($options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - /** - * Validates BlogInfo query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateBlogInfo(array $options) - { - static $validOptions = array('key', 'url', - 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate url (required) - $this->_validateOptionUrl($options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - /** - * Validates TopTags query options. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateBlogPostTags(array $options) - { - static $validOptions = array('key', 'url', - 'limit', 'start', 'format'); - - // Validate keys in the $options array - $this->_compareOptions($options, $validOptions); - // Validate url (required) - $this->_validateOptionUrl($options); - // Validate limit (optional) - $this->_validateOptionLimit($options); - // Validate start (optional) - $this->_validateOptionStart($options); - // Validate format (optional) - $this->_validateOptionFormat($options); - } - - /** - * Checks whether an option is in a given array. - * - * @param string $name option name - * @param array $options - * @param array $array array of valid options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateInArrayOption($name, $options, array $array) - { - if (isset($options[$name]) && !in_array($options[$name], $array)) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid value '{$options[$name]}' for '$name' option"); - } - } - - /** - * Checks whether mandatory $name option exists and it's valid. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _validateMandatoryOption($name, $options) - { - if (!isset($options[$name]) || !trim($options[$name])) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Empty value for '$name' option"); - } - } - - /** - * Checks whether $name option is a valid integer and casts it. - * - * @param array $options - * @return void - * @access protected - */ - protected function _validateIntegerOption($name, $options) - { - if (isset($options[$name])) { - $options[$name] = (int) $options[$name]; - } - } - - /** - * Makes and HTTP GET request to given $path with $options. - * HTTP Response is first validated, then returned. - * - * @param string $path - * @param array $options - * @return Zend_Http_Response - * @throws Zend_Service_Technorati_Exception on failure - * @access protected - */ - protected function _makeRequest($path, $options = array()) - { - $restClient = $this->getRestClient(); - $restClient->getHttpClient()->resetParameters(); - $response = $restClient->restGet($path, $options); - self::_checkResponse($response); - return $response; - } - - /** - * Checks whether 'claim' option value is valid. - * - * @param array $options - * @return void - * @access protected - */ - protected function _validateOptionClaim(array $options) - { - $this->_validateIntegerOption('claim', $options); - } - - /** - * Checks whether 'format' option value is valid. - * Be aware that Zend_Service_Technorati supports only XML as format value. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception if 'format' value != XML - * @access protected - */ - protected function _validateOptionFormat(array $options) - { - if (isset($options['format']) && $options['format'] != 'xml') { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid value '" . $options['format'] . "' for 'format' option. " . - "Zend_Service_Technorati supports only 'xml'"); - } - } - - /** - * Checks whether 'limit' option value is valid. - * Value must be an integer greater than PARAM_LIMIT_MIN_VALUE - * and lower than PARAM_LIMIT_MAX_VALUE. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception if 'limit' value is invalid - * @access protected - */ - protected function _validateOptionLimit(array $options) - { - if (!isset($options['limit'])) return; - - $options['limit'] = (int) $options['limit']; - if ($options['limit'] < self::PARAM_LIMIT_MIN_VALUE || - $options['limit'] > self::PARAM_LIMIT_MAX_VALUE) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid value '" . $options['limit'] . "' for 'limit' option"); - } - } - - /** - * Checks whether 'start' option value is valid. - * Value must be an integer greater than 0. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception if 'start' value is invalid - * @access protected - */ - protected function _validateOptionStart(array $options) - { - if (!isset($options['start'])) return; - - $options['start'] = (int) $options['start']; - if ($options['start'] < self::PARAM_START_MIN_VALUE) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid value '" . $options['start'] . "' for 'start' option"); - } - } - - /** - * Checks whether 'url' option value exists and is valid. - * 'url' must be a valid HTTP(s) URL. - * - * @param array $options - * @return void - * @throws Zend_Service_Technorati_Exception if 'url' value is invalid - * @access protected - * @todo support for Zend_Uri_Http - */ - protected function _validateOptionUrl(array $options) - { - $this->_validateMandatoryOption('url', $options); - } - - /** - * Checks XML response content for errors. - * - * @param DomDocument $dom the XML response as a DOM document - * @return void - * @throws Zend_Service_Technorati_Exception - * @link http://technorati.com/developers/api/error.html Technorati API: Error response - * @access protected - */ - protected static function _checkErrors(DomDocument $dom) - { - $xpath = new DOMXPath($dom); - - $result = $xpath->query("/tapi/document/result/error"); - if ($result->length >= 1) { - $error = $result->item(0)->nodeValue; - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception($error); - } - } - - /** - * Converts $response body to a DOM object and checks it. - * - * @param Zend_Http_Response $response - * @return DOMDocument - * @throws Zend_Service_Technorati_Exception if response content contains an error message - * @access protected - */ - protected function _convertResponseAndCheckContent(Zend_Http_Response $response) - { - $dom = new DOMDocument(); - $dom = Zend_Xml_Security::scan($response->getBody(), $dom); - self::_checkErrors($dom); - return $dom; - } - - /** - * Checks ReST response for errors. - * - * @param Zend_Http_Response $response the ReST response - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected static function _checkResponse(Zend_Http_Response $response) - { - if ($response->isError()) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception(sprintf( - 'Invalid response status code (HTTP/%s %s %s)', - $response->getVersion(), $response->getStatus(), $response->getMessage())); - } - } - - /** - * Checks whether user given options are valid. - * - * @param array $options user options - * @param array $validOptions valid options - * @return void - * @throws Zend_Service_Technorati_Exception - * @access protected - */ - protected function _compareOptions(array $options, array $validOptions) - { - $difference = array_diff(array_keys($options), $validOptions); - if ($difference) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "The following parameters are invalid: '" . - implode("', '", $difference) . "'"); - } - } - - /** - * Prepares options for the request - * - * @param array $options user options - * @param array $defaultOptions default options - * @return array Merged array of user and default/required options. - * @access protected - */ - protected function _prepareOptions($options, array $defaultOptions) - { - $options = (array) $options; // force cast to convert null to array() - $options['key'] = $this->_apiKey; - $options = array_merge($defaultOptions, $options); - return $options; - } -} diff --git a/library/Zend/Service/Technorati/Author.php b/library/Zend/Service/Technorati/Author.php deleted file mode 100644 index 9ca3b53ad5..0000000000 --- a/library/Zend/Service/Technorati/Author.php +++ /dev/null @@ -1,242 +0,0 @@ -ownerDocument); - - $result = $xpath->query('./firstname/text()', $dom); - if ($result->length == 1) $this->setFirstName($result->item(0)->data); - - $result = $xpath->query('./lastname/text()', $dom); - if ($result->length == 1) $this->setLastName($result->item(0)->data); - - $result = $xpath->query('./username/text()', $dom); - if ($result->length == 1) $this->setUsername($result->item(0)->data); - - $result = $xpath->query('./description/text()', $dom); - if ($result->length == 1) $this->setDescription($result->item(0)->data); - - $result = $xpath->query('./bio/text()', $dom); - if ($result->length == 1) $this->setBio($result->item(0)->data); - - $result = $xpath->query('./thumbnailpicture/text()', $dom); - if ($result->length == 1) $this->setThumbnailPicture($result->item(0)->data); - } - - - /** - * Returns Author first name. - * - * @return string Author first name - */ - public function getFirstName() { - return $this->_firstName; - } - - /** - * Returns Author last name. - * - * @return string Author last name - */ - public function getLastName() { - return $this->_lastName; - } - - /** - * Returns Technorati account username. - * - * @return string Technorati account username - */ - public function getUsername() { - return $this->_username; - } - - /** - * Returns Technorati account description. - * - * @return string Technorati account description - */ - public function getDescription() { - return $this->_description; - } - - /** - * Returns Technorati account biography. - * - * @return string Technorati account biography - */ - public function getBio() { - return $this->_bio; - } - - /** - * Returns Technorati account thumbnail picture. - * - * @return null|Zend_Uri_Http Technorati account thumbnail picture - */ - public function getThumbnailPicture() { - return $this->_thumbnailPicture; - } - - - /** - * Sets author first name. - * - * @param string $input first Name input value - * @return Zend_Service_Technorati_Author $this instance - */ - public function setFirstName($input) { - $this->_firstName = (string) $input; - return $this; - } - - /** - * Sets author last name. - * - * @param string $input last Name input value - * @return Zend_Service_Technorati_Author $this instance - */ - public function setLastName($input) { - $this->_lastName = (string) $input; - return $this; - } - - /** - * Sets Technorati account username. - * - * @param string $input username input value - * @return Zend_Service_Technorati_Author $this instance - */ - public function setUsername($input) { - $this->_username = (string) $input; - return $this; - } - - /** - * Sets Technorati account biography. - * - * @param string $input biography input value - * @return Zend_Service_Technorati_Author $this instance - */ - public function setBio($input) { - $this->_bio = (string) $input; - return $this; - } - - /** - * Sets Technorati account description. - * - * @param string $input description input value - * @return Zend_Service_Technorati_Author $this instance - */ - public function setDescription($input) { - $this->_description = (string) $input; - return $this; - } - - /** - * Sets Technorati account thumbnail picture. - * - * @param string|Zend_Uri_Http $input thumbnail picture URI - * @return Zend_Service_Technorati_Author $this instance - * @throws Zend_Service_Technorati_Exception if $input is an invalid URI - * (via Zend_Service_Technorati_Utils::normalizeUriHttp) - */ - public function setThumbnailPicture($input) { - $this->_thumbnailPicture = Zend_Service_Technorati_Utils::normalizeUriHttp($input); - return $this; - } - -} diff --git a/library/Zend/Service/Technorati/BlogInfoResult.php b/library/Zend/Service/Technorati/BlogInfoResult.php deleted file mode 100644 index a1c7804af9..0000000000 --- a/library/Zend/Service/Technorati/BlogInfoResult.php +++ /dev/null @@ -1,161 +0,0 @@ -query('//result/weblog'); - if ($result->length == 1) { - $this->_weblog = new Zend_Service_Technorati_Weblog($result->item(0)); - } else { - // follow the same behavior of blogPostTags - // and raise an Exception if the URL is not a valid weblog - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Your URL is not a recognized Technorati weblog"); - } - - $result = $xpath->query('//result/url/text()'); - if ($result->length == 1) { - try { - // fetched URL often doens't include schema - // and this issue causes the following line to fail - $this->_url = Zend_Service_Technorati_Utils::normalizeUriHttp($result->item(0)->data); - } catch(Zend_Service_Technorati_Exception $e) { - if ($this->getWeblog() instanceof Zend_Service_Technorati_Weblog) { - $this->_url = $this->getWeblog()->getUrl(); - } - } - } - - $result = $xpath->query('//result/inboundblogs/text()'); - if ($result->length == 1) $this->_inboundBlogs = (int) $result->item(0)->data; - - $result = $xpath->query('//result/inboundlinks/text()'); - if ($result->length == 1) $this->_inboundLinks = (int) $result->item(0)->data; - - } - - - /** - * Returns the weblog URL. - * - * @return Zend_Uri_Http - */ - public function getUrl() { - return $this->_url; - } - - /** - * Returns the weblog. - * - * @return Zend_Service_Technorati_Weblog - */ - public function getWeblog() { - return $this->_weblog; - } - - /** - * Returns number of unique blogs linking this blog. - * - * @return integer the number of inbound blogs - */ - public function getInboundBlogs() - { - return (int) $this->_inboundBlogs; - } - - /** - * Returns number of incoming links to this blog. - * - * @return integer the number of inbound links - */ - public function getInboundLinks() - { - return (int) $this->_inboundLinks; - } - -} diff --git a/library/Zend/Service/Technorati/CosmosResult.php b/library/Zend/Service/Technorati/CosmosResult.php deleted file mode 100644 index e0a0a1d5da..0000000000 --- a/library/Zend/Service/Technorati/CosmosResult.php +++ /dev/null @@ -1,152 +0,0 @@ -_fields = array( '_nearestPermalink' => 'nearestpermalink', - '_excerpt' => 'excerpt', - '_linkCreated' => 'linkcreated', - '_linkUrl' => 'linkurl'); - parent::__construct($dom); - - // weblog object field - $this->_parseWeblog(); - - // filter fields - $this->_nearestPermalink = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_nearestPermalink); - $this->_linkUrl = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_linkUrl); - $this->_linkCreated = Zend_Service_Technorati_Utils::normalizeDate($this->_linkCreated); - } - - /** - * Returns the weblog object that links queried URL. - * - * @return Zend_Service_Technorati_Weblog - */ - public function getWeblog() { - return $this->_weblog; - } - - /** - * Returns the nearest permalink tracked for queried URL. - * - * @return Zend_Uri_Http - */ - public function getNearestPermalink() { - return $this->_nearestPermalink; - } - - /** - * Returns the excerpt of the blog/page linking queried URL. - * - * @return string - */ - public function getExcerpt() { - return $this->_excerpt; - } - - /** - * Returns the datetime the link was created. - * - * @return Zend_Date - */ - public function getLinkCreated() { - return $this->_linkCreated; - } - - /** - * If queried URL is a valid blog, - * returns the URL of the specific link target page. - * - * @return Zend_Uri_Http - */ - public function getLinkUrl() { - return $this->_linkUrl; - } - -} diff --git a/library/Zend/Service/Technorati/CosmosResultSet.php b/library/Zend/Service/Technorati/CosmosResultSet.php deleted file mode 100644 index d87f297ac7..0000000000 --- a/library/Zend/Service/Technorati/CosmosResultSet.php +++ /dev/null @@ -1,176 +0,0 @@ -_xpath->query('/tapi/document/result/inboundlinks/text()'); - if ($result->length == 1) $this->_inboundLinks = (int) $result->item(0)->data; - - $result = $this->_xpath->query('/tapi/document/result/inboundblogs/text()'); - if ($result->length == 1) $this->_inboundBlogs = (int) $result->item(0)->data; - - $result = $this->_xpath->query('/tapi/document/result/weblog'); - if ($result->length == 1) { - /** - * @see Zend_Service_Technorati_Weblog - */ - require_once 'Zend/Service/Technorati/Weblog.php'; - $this->_weblog = new Zend_Service_Technorati_Weblog($result->item(0)); - } - - $result = $this->_xpath->query('/tapi/document/result/url/text()'); - if ($result->length == 1) { - try { - // fetched URL often doens't include schema - // and this issue causes the following line to fail - $this->_url = Zend_Service_Technorati_Utils::normalizeUriHttp($result->item(0)->data); - } catch(Zend_Service_Technorati_Exception $e) { - if ($this->getWeblog() instanceof Zend_Service_Technorati_Weblog) { - $this->_url = $this->getWeblog()->getUrl(); - } - } - } - - $this->_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/item)"); - - // total number of results depends on query type - // for now check only getInboundLinks() and getInboundBlogs() value - if ((int) $this->getInboundLinks() > 0) { - $this->_totalResultsAvailable = $this->getInboundLinks(); - } elseif ((int) $this->getInboundBlogs() > 0) { - $this->_totalResultsAvailable = $this->getInboundBlogs(); - } else { - $this->_totalResultsAvailable = 0; - } - } - - - /** - * Returns the weblog URL. - * - * @return Zend_Uri_Http - */ - public function getUrl() { - return $this->_url; - } - - /** - * Returns the weblog. - * - * @return Zend_Service_Technorati_Weblog - */ - public function getWeblog() { - return $this->_weblog; - } - - /** - * Returns number of unique blogs linking this blog. - * - * @return integer the number of inbound blogs - */ - public function getInboundBlogs() - { - return $this->_inboundBlogs; - } - - /** - * Returns number of incoming links to this blog. - * - * @return integer the number of inbound links - */ - public function getInboundLinks() - { - return $this->_inboundLinks; - } - - /** - * Implements Zend_Service_Technorati_ResultSet::current(). - * - * @return Zend_Service_Technorati_CosmosResult current result - */ - public function current() - { - /** - * @see Zend_Service_Technorati_CosmosResult - */ - require_once 'Zend/Service/Technorati/CosmosResult.php'; - return new Zend_Service_Technorati_CosmosResult($this->_results->item($this->_currentIndex)); - } -} diff --git a/library/Zend/Service/Technorati/DailyCountsResult.php b/library/Zend/Service/Technorati/DailyCountsResult.php deleted file mode 100644 index 510bbc3c61..0000000000 --- a/library/Zend/Service/Technorati/DailyCountsResult.php +++ /dev/null @@ -1,93 +0,0 @@ -_fields = array( '_date' => 'date', - '_count' => 'count'); - parent::__construct($dom); - - // filter fields - $this->_date = new Zend_Date(strtotime($this->_date)); - $this->_count = (int) $this->_count; - } - - /** - * Returns the date of count. - * - * @return Zend_Date - */ - public function getDate() { - return $this->_date; - } - - /** - * Returns the number of posts containing query on given date. - * - * @return int - */ - public function getCount() { - return $this->_count; - } -} diff --git a/library/Zend/Service/Technorati/DailyCountsResultSet.php b/library/Zend/Service/Technorati/DailyCountsResultSet.php deleted file mode 100644 index d287c414e0..0000000000 --- a/library/Zend/Service/Technorati/DailyCountsResultSet.php +++ /dev/null @@ -1,125 +0,0 @@ -_xpath->query('/tapi/document/result/days/text()'); - if ($result->length == 1) $this->_days = (int) $result->item(0)->data; - - $result = $this->_xpath->query('/tapi/document/result/searchurl/text()'); - if ($result->length == 1) { - $this->_searchUrl = Zend_Service_Technorati_Utils::normalizeUriHttp($result->item(0)->data); - } - - $this->_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/items/item)"); - $this->_totalResultsAvailable = (int) $this->getDays(); - } - - - /** - * Returns the search URL for given query. - * - * @return Zend_Uri_Http - */ - public function getSearchUrl() { - return $this->_searchUrl; - } - - /** - * Returns the number of days for which counts provided. - * - * @return int - */ - public function getDays() { - return $this->_days; - } - - /** - * Implements Zend_Service_Technorati_ResultSet::current(). - * - * @return Zend_Service_Technorati_DailyCountsResult current result - */ - public function current() - { - /** - * @see Zend_Service_Technorati_DailyCountsResult - */ - require_once 'Zend/Service/Technorati/DailyCountsResult.php'; - return new Zend_Service_Technorati_DailyCountsResult($this->_results->item($this->_currentIndex)); - } -} diff --git a/library/Zend/Service/Technorati/Exception.php b/library/Zend/Service/Technorati/Exception.php deleted file mode 100644 index f26a38450c..0000000000 --- a/library/Zend/Service/Technorati/Exception.php +++ /dev/null @@ -1,39 +0,0 @@ -query('//result'); - if ($result->length == 1) { - $this->_author = new Zend_Service_Technorati_Author($result->item(0)); - } - - /** - * @see Zend_Service_Technorati_Weblog - */ - require_once 'Zend/Service/Technorati/Weblog.php'; - - $result = $xpath->query('//item/weblog'); - if ($result->length >= 1) { - foreach ($result as $weblog) { - $this->_weblogs[] = new Zend_Service_Technorati_Weblog($weblog); - } - } - } - - - /** - * Returns the author associated with queried username. - * - * @return Zend_Service_Technorati_Author - */ - public function getAuthor() { - return $this->_author; - } - - /** - * Returns the collection of weblogs authored by queried username. - * - * @return array of Zend_Service_Technorati_Weblog - */ - public function getWeblogs() { - return $this->_weblogs; - } - -} diff --git a/library/Zend/Service/Technorati/KeyInfoResult.php b/library/Zend/Service/Technorati/KeyInfoResult.php deleted file mode 100644 index 6f4d09d2d1..0000000000 --- a/library/Zend/Service/Technorati/KeyInfoResult.php +++ /dev/null @@ -1,118 +0,0 @@ -_dom = $dom; - // $this->_xpath = new DOMXPath($dom); - $xpath = new DOMXPath($dom); - - $this->_apiQueries = (int) $xpath->query('/tapi/document/result/apiqueries/text()')->item(0)->data; - $this->_maxQueries = (int) $xpath->query('/tapi/document/result/maxqueries/text()')->item(0)->data; - $this->setApiKey($apiKey); - } - - - /** - * Returns API Key string. - * - * @return string API Key string - */ - public function getApiKey() { - return $this->_apiKey; - } - - /** - * Returns the number of queries sent today. - * - * @return int number of queries sent today - */ - public function getApiQueries() { - return $this->_apiQueries; - } - - /** - * Returns Key's daily query limit. - * - * @return int maximum number of available queries per day - */ - public function getMaxQueries() { - return $this->_maxQueries; - } - - - /** - * Sets API Key string. - * - * @param string $apiKey the API Key - * @return Zend_Service_Technorati_KeyInfoResult $this instance - */ - public function setApiKey($apiKey) { - $this->_apiKey = $apiKey; - return $this; - } -} diff --git a/library/Zend/Service/Technorati/Result.php b/library/Zend/Service/Technorati/Result.php deleted file mode 100644 index 2c7add1520..0000000000 --- a/library/Zend/Service/Technorati/Result.php +++ /dev/null @@ -1,121 +0,0 @@ - 'xmlfieldtag' - * - * @var array - * @access protected - */ - protected $_fields; - - /** - * The ReST fragment for this result object - * - * @var DomElement - * @access protected - */ - protected $_dom; - - /** - * Object for $this->_dom - * - * @var DOMXpath - * @access protected - */ - protected $_xpath; - - - /** - * Constructs a new object from DOM Element. - * Properties are automatically fetched from XML - * according to array of $_fields to be read. - * - * @param DomElement $result the ReST fragment for this object - */ - public function __construct(DomElement $dom) - { - $this->_xpath = new DOMXPath($dom->ownerDocument); - $this->_dom = $dom; - - // default fields for all search results - $fields = array(); - - // merge with child's object fields - $this->_fields = array_merge($this->_fields, $fields); - - // add results to appropriate fields - foreach($this->_fields as $phpName => $xmlName) { - $query = "./$xmlName/text()"; - $node = $this->_xpath->query($query, $this->_dom); - if ($node->length == 1) { - $this->{$phpName} = (string) $node->item(0)->data; - } - } - } - - /** - * Parses weblog node and sets weblog object. - * - * @return void - */ - protected function _parseWeblog() - { - // weblog object field - $result = $this->_xpath->query('./weblog', $this->_dom); - if ($result->length == 1) { - /** - * @see Zend_Service_Technorati_Weblog - */ - require_once 'Zend/Service/Technorati/Weblog.php'; - $this->_weblog = new Zend_Service_Technorati_Weblog($result->item(0)); - } else { - $this->_weblog = null; - } - } - - /** - * Returns the document fragment for this object as XML string. - * - * @return string the document fragment for this object - * converted into XML format - */ - public function getXml() - { - return $this->_dom->ownerDocument->saveXML($this->_dom); - } -} diff --git a/library/Zend/Service/Technorati/ResultSet.php b/library/Zend/Service/Technorati/ResultSet.php deleted file mode 100644 index d01a322058..0000000000 --- a/library/Zend/Service/Technorati/ResultSet.php +++ /dev/null @@ -1,289 +0,0 @@ -_dom - * - * @var DOMXpath - * @access protected - */ - protected $_xpath; - - /** - * XML string representation for $this->_dom - * - * @var string - * @access protected - */ - protected $_xml; - - /** - * Current Item - * - * @var int - * @access protected - */ - protected $_currentIndex = 0; - - - /** - * Parses the search response and retrieves the results for iteration. - * - * @param DomDocument $dom the ReST fragment for this object - * @param array $options query options as associative array - */ - public function __construct(DomDocument $dom, $options = array()) - { - $this->_init($dom, $options); - - // Technorati loves to make developer's life really hard - // I must read query options in order to normalize a single way - // to display start and limit. - // The value is printed out in XML using many different tag names, - // too hard to get it from XML - - // Additionally, the following tags should be always available - // according to API documentation but... this is not the truth! - // - querytime - // - limit - // - start (sometimes rankingstart) - - // query tag is only available for some requests, the same for url. - // For now ignore them. - - //$start = isset($options['start']) ? $options['start'] : 1; - //$limit = isset($options['limit']) ? $options['limit'] : 20; - //$this->_firstResultPosition = $start; - } - - /** - * Initializes this object from a DomDocument response. - * - * Because __construct and __wakeup shares some common executions, - * it's useful to group them in a single initialization method. - * This method is called once each time a new instance is created - * or a serialized object is unserialized. - * - * @param DomDocument $dom the ReST fragment for this object - * @param array $options query options as associative array - * * @return void - */ - protected function _init(DomDocument $dom, $options = array()) - { - $this->_dom = $dom; - $this->_xpath = new DOMXPath($dom); - - $this->_results = $this->_xpath->query("//item"); - } - - /** - * Number of results returned. - * - * @return int total number of results returned - */ - public function totalResults() - { - return (int) $this->_totalResultsReturned; - } - - - /** - * Number of available results. - * - * @return int total number of available results - */ - public function totalResultsAvailable() - { - return (int) $this->_totalResultsAvailable; - } - - /** - * Implements SeekableIterator::current(). - * - * @return void - * @throws Zend_Service_Exception - * @abstract - */ - // abstract public function current(); - - /** - * Implements SeekableIterator::key(). - * - * @return int - */ - public function key() - { - return $this->_currentIndex; - } - - /** - * Implements SeekableIterator::next(). - * - * @return void - */ - public function next() - { - $this->_currentIndex += 1; - } - - /** - * Implements SeekableIterator::rewind(). - * - * @return bool - */ - public function rewind() - { - $this->_currentIndex = 0; - return true; - } - - /** - * Implement SeekableIterator::seek(). - * - * @param int $index - * @return void - * @throws OutOfBoundsException - */ - public function seek($index) - { - $indexInt = (int) $index; - if ($indexInt >= 0 && $indexInt < $this->_results->length) { - $this->_currentIndex = $indexInt; - } else { - throw new OutOfBoundsException("Illegal index '$index'"); - } - } - - /** - * Implement SeekableIterator::valid(). - * - * @return boolean - */ - public function valid() - { - return null !== $this->_results && $this->_currentIndex < $this->_results->length; - } - - /** - * Returns the response document as XML string. - * - * @return string the response document converted into XML format - */ - public function getXml() - { - return $this->_dom->saveXML(); - } - - /** - * Overwrites standard __sleep method to make this object serializable. - * - * DomDocument and DOMXpath objects cannot be serialized. - * This method converts them back to an XML string. - * - * @return void - */ - public function __sleep() { - $this->_xml = $this->getXml(); - $vars = array_keys(get_object_vars($this)); - return array_diff($vars, array('_dom', '_xpath')); - } - - /** - * Overwrites standard __wakeup method to make this object unserializable. - * - * Restores object status before serialization. - * Converts XML string into a DomDocument object and creates a valid - * DOMXpath instance for given DocDocument. - * - * @return void - */ - public function __wakeup() { - $dom = new DOMDocument(); - $dom->loadXml($this->_xml); - $this->_init($dom); - $this->_xml = null; // reset XML content - } -} diff --git a/library/Zend/Service/Technorati/SearchResult.php b/library/Zend/Service/Technorati/SearchResult.php deleted file mode 100644 index 90dc3fa219..0000000000 --- a/library/Zend/Service/Technorati/SearchResult.php +++ /dev/null @@ -1,150 +0,0 @@ -_fields = array( '_permalink' => 'permalink', - '_excerpt' => 'excerpt', - '_created' => 'created', - '_title' => 'title'); - parent::__construct($dom); - - // weblog object field - $this->_parseWeblog(); - - // filter fields - $this->_permalink = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_permalink); - $this->_created = Zend_Service_Technorati_Utils::normalizeDate($this->_created); - } - - /** - * Returns the weblog object that links queried URL. - * - * @return Zend_Service_Technorati_Weblog - */ - public function getWeblog() { - return $this->_weblog; - } - - /** - * Returns the title of the entry. - * - * @return string - */ - public function getTitle() { - return $this->_title; - } - - /** - * Returns the blurb from entry with search term highlighted. - * - * @return string - */ - public function getExcerpt() { - return $this->_excerpt; - } - - /** - * Returns the datetime the entry was created. - * - * @return Zend_Date - */ - public function getCreated() { - return $this->_created; - } - - /** - * Returns the permalink of the blog entry. - * - * @return Zend_Uri_Http - */ - public function getPermalink() { - return $this->_permalink; - } - -} diff --git a/library/Zend/Service/Technorati/SearchResultSet.php b/library/Zend/Service/Technorati/SearchResultSet.php deleted file mode 100644 index 4428bfcced..0000000000 --- a/library/Zend/Service/Technorati/SearchResultSet.php +++ /dev/null @@ -1,79 +0,0 @@ -_xpath->query('/tapi/document/result/querycount/text()'); - if ($result->length == 1) $this->_queryCount = (int) $result->item(0)->data; - - $this->_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/item)"); - $this->_totalResultsAvailable = (int) $this->_queryCount; - } - - /** - * Implements Zend_Service_Technorati_ResultSet::current(). - * - * @return Zend_Service_Technorati_SearchResult current result - */ - public function current() - { - /** - * @see Zend_Service_Technorati_SearchResult - */ - require_once 'Zend/Service/Technorati/SearchResult.php'; - return new Zend_Service_Technorati_SearchResult($this->_results->item($this->_currentIndex)); - } -} diff --git a/library/Zend/Service/Technorati/TagResult.php b/library/Zend/Service/Technorati/TagResult.php deleted file mode 100644 index 6960fe0c6d..0000000000 --- a/library/Zend/Service/Technorati/TagResult.php +++ /dev/null @@ -1,171 +0,0 @@ -_fields = array( '_permalink' => 'permalink', - '_excerpt' => 'excerpt', - '_created' => 'created', - '_updated' => 'postupdate', - '_title' => 'title'); - parent::__construct($dom); - - // weblog object field - $this->_parseWeblog(); - - // filter fields - $this->_permalink = Zend_Service_Technorati_Utils::normalizeUriHttp($this->_permalink); - $this->_created = Zend_Service_Technorati_Utils::normalizeDate($this->_created); - $this->_updated = Zend_Service_Technorati_Utils::normalizeDate($this->_updated); - } - - /** - * Returns the weblog object that links queried URL. - * - * @return Zend_Service_Technorati_Weblog - */ - public function getWeblog() { - return $this->_weblog; - } - - /** - * Returns the title of the entry. - * - * @return string - */ - public function getTitle() { - return $this->_title; - } - - /** - * Returns the blurb from entry with search term highlighted. - * - * @return string - */ - public function getExcerpt() { - return $this->_excerpt; - } - - /** - * Returns the datetime the entry was created. - * - * @return Zend_Date - */ - public function getCreated() { - return $this->_created; - } - - /** - * Returns the datetime the entry was updated. - * - * @return Zend_Date - */ - public function getUpdated() { - return $this->_updated; - } - - /** - * Returns the permalink of the blog entry. - * - * @return Zend_Uri_Http - */ - public function getPermalink() { - return $this->_permalink; - } - -} diff --git a/library/Zend/Service/Technorati/TagResultSet.php b/library/Zend/Service/Technorati/TagResultSet.php deleted file mode 100644 index 48f341b20d..0000000000 --- a/library/Zend/Service/Technorati/TagResultSet.php +++ /dev/null @@ -1,110 +0,0 @@ -_xpath->query('/tapi/document/result/postsmatched/text()'); - if ($result->length == 1) $this->_postsMatched = (int) $result->item(0)->data; - - $result = $this->_xpath->query('/tapi/document/result/blogsmatched/text()'); - if ($result->length == 1) $this->_blogsMatched = (int) $result->item(0)->data; - - $this->_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/item)"); - /** @todo Validate the following assertion */ - $this->_totalResultsAvailable = (int) $this->getPostsMatched(); - } - - - /** - * Returns the number of posts that match the tag. - * - * @return int - */ - public function getPostsMatched() { - return $this->_postsMatched; - } - - /** - * Returns the number of blogs that match the tag. - * - * @return int - */ - public function getBlogsMatched() { - return $this->_blogsMatched; - } - - /** - * Implements Zend_Service_Technorati_ResultSet::current(). - * - * @return Zend_Service_Technorati_TagResult current result - */ - public function current() - { - /** - * @see Zend_Service_Technorati_TagResult - */ - require_once 'Zend/Service/Technorati/TagResult.php'; - return new Zend_Service_Technorati_TagResult($this->_results->item($this->_currentIndex)); - } -} diff --git a/library/Zend/Service/Technorati/TagsResult.php b/library/Zend/Service/Technorati/TagsResult.php deleted file mode 100644 index 0ec55cc146..0000000000 --- a/library/Zend/Service/Technorati/TagsResult.php +++ /dev/null @@ -1,93 +0,0 @@ -_fields = array( '_tag' => 'tag', - '_posts' => 'posts'); - parent::__construct($dom); - - // filter fields - $this->_tag = (string) $this->_tag; - $this->_posts = (int) $this->_posts; - } - - /** - * Returns the tag name. - * - * @return string - */ - public function getTag() { - return $this->_tag; - } - - /** - * Returns the number of posts. - * - * @return int - */ - public function getPosts() { - return $this->_posts; - } -} diff --git a/library/Zend/Service/Technorati/TagsResultSet.php b/library/Zend/Service/Technorati/TagsResultSet.php deleted file mode 100644 index 2ae89721ba..0000000000 --- a/library/Zend/Service/Technorati/TagsResultSet.php +++ /dev/null @@ -1,67 +0,0 @@ -_totalResultsReturned = (int) $this->_xpath->evaluate("count(/tapi/document/item)"); - $this->_totalResultsAvailable = (int) $this->_totalResultsReturned; - } - - /** - * Implements Zend_Service_Technorati_ResultSet::current(). - * - * @return Zend_Service_Technorati_TagsResult current result - */ - public function current() - { - /** - * @see Zend_Service_Technorati_TagsResult - */ - require_once 'Zend/Service/Technorati/TagsResult.php'; - return new Zend_Service_Technorati_TagsResult($this->_results->item($this->_currentIndex)); - } -} diff --git a/library/Zend/Service/Technorati/Utils.php b/library/Zend/Service/Technorati/Utils.php deleted file mode 100644 index b6662ba5a7..0000000000 --- a/library/Zend/Service/Technorati/Utils.php +++ /dev/null @@ -1,136 +0,0 @@ -getMessage(), 0, $e); - } - } - - // allow inly Zend_Uri_Http objects or child classes - if (!($uri instanceof Zend_Uri_Http)) { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception( - "Invalid URL $uri, only HTTP(S) protocols can be used"); - } - - return $uri; - } - /** - * Parses, validates and returns a valid Zend_Date object - * from given $input. - * - * $input can be either a string, an integer or a Zend_Date object. - * If $input is string or int, it will be provided to Zend_Date as it is. - * If $input is a Zend_Date object, the object instance will be returned. - * - * @param mixed|Zend_Date $input - * @return null|Zend_Date - * @throws Zend_Service_Technorati_Exception - * @static - */ - public static function normalizeDate($input) - { - /** - * @see Zend_Date - */ - require_once 'Zend/Date.php'; - /** - * @see Zend_Locale - */ - require_once 'Zend/Locale.php'; - - // allow null as value and return valid Zend_Date objects - if (($input === null) || ($input instanceof Zend_Date)) { - return $input; - } - - // due to a BC break as of ZF 1.5 it's not safe to use Zend_Date::isDate() here - // see ZF-2524, ZF-2334 - if (@strtotime($input) !== FALSE) { - return new Zend_Date($input); - } else { - /** - * @see Zend_Service_Technorati_Exception - */ - require_once 'Zend/Service/Technorati/Exception.php'; - throw new Zend_Service_Technorati_Exception("'$input' is not a valid Date/Time"); - } - } - - /** - * @todo public static function xpathQueryAndSet() {} - */ - - /** - * @todo public static function xpathQueryAndSetIf() {} - */ - - /** - * @todo public static function xpathQueryAndSetUnless() {} - */ -} diff --git a/library/Zend/Service/Technorati/Weblog.php b/library/Zend/Service/Technorati/Weblog.php deleted file mode 100644 index 5fb47c5061..0000000000 --- a/library/Zend/Service/Technorati/Weblog.php +++ /dev/null @@ -1,486 +0,0 @@ -ownerDocument); - - $result = $xpath->query('./name/text()', $dom); - if ($result->length == 1) $this->setName($result->item(0)->data); - - $result = $xpath->query('./url/text()', $dom); - if ($result->length == 1) $this->setUrl($result->item(0)->data); - - $result = $xpath->query('./inboundblogs/text()', $dom); - if ($result->length == 1) $this->setInboundBlogs($result->item(0)->data); - - $result = $xpath->query('./inboundlinks/text()', $dom); - if ($result->length == 1) $this->setInboundLinks($result->item(0)->data); - - $result = $xpath->query('./lastupdate/text()', $dom); - if ($result->length == 1) $this->setLastUpdate($result->item(0)->data); - - /* The following elements need more attention */ - - $result = $xpath->query('./rssurl/text()', $dom); - if ($result->length == 1) $this->setRssUrl($result->item(0)->data); - - $result = $xpath->query('./atomurl/text()', $dom); - if ($result->length == 1) $this->setAtomUrl($result->item(0)->data); - - $result = $xpath->query('./author', $dom); - if ($result->length >= 1) { - foreach ($result as $author) { - $this->_authors[] = new Zend_Service_Technorati_Author($author); - } - } - - /** - * The following are optional elements - * - * I can't find any official documentation about the following properties - * however they are included in response DTD and/or test responses. - */ - - $result = $xpath->query('./rank/text()', $dom); - if ($result->length == 1) $this->setRank($result->item(0)->data); - - $result = $xpath->query('./lat/text()', $dom); - if ($result->length == 1) $this->setLat($result->item(0)->data); - - $result = $xpath->query('./lon/text()', $dom); - if ($result->length == 1) $this->setLon($result->item(0)->data); - - $result = $xpath->query('./hasphoto/text()', $dom); - if ($result->length == 1) $this->setHasPhoto($result->item(0)->data); - } - - - /** - * Returns weblog name. - * - * @return string Weblog name - */ - public function getName() - { - return $this->_name; - } - - /** - * Returns weblog URL. - * - * @return null|Zend_Uri_Http object representing weblog base URL - */ - public function getUrl() - { - return $this->_url; - } - - /** - * Returns number of unique blogs linking this blog. - * - * @return integer the number of inbound blogs - */ - public function getInboundBlogs() - { - return $this->_inboundBlogs; - } - - /** - * Returns number of incoming links to this blog. - * - * @return integer the number of inbound links - */ - public function getInboundLinks() - { - return $this->_inboundLinks; - } - - /** - * Returns weblog Rss URL. - * - * @return null|Zend_Uri_Http object representing the URL - * of the RSS feed for given blog - */ - public function getRssUrl() - { - return $this->_rssUrl; - } - - /** - * Returns weblog Atom URL. - * - * @return null|Zend_Uri_Http object representing the URL - * of the Atom feed for given blog - */ - public function getAtomUrl() - { - return $this->_atomUrl; - } - - /** - * Returns UNIX timestamp of the last weblog update. - * - * @return integer UNIX timestamp of the last weblog update - */ - public function getLastUpdate() - { - return $this->_lastUpdate; - } - - /** - * Returns weblog rank value. - * - * Note. This property is not documented. - * - * @return integer weblog rank value - */ - public function getRank() - { - return $this->_rank; - } - - /** - * Returns weblog latitude coordinate. - * - * Note. This property is not documented. - * - * @return float weblog latitude coordinate - */ - public function getLat() { - return $this->_lat; - } - - /** - * Returns weblog longitude coordinate. - * - * Note. This property is not documented. - * - * @return float weblog longitude coordinate - */ - public function getLon() - { - return $this->_lon; - } - - /** - * Returns whether the author who claimed this weblog has a photo. - * - * Note. This property is not documented. - * - * @return bool TRUE if the author who claimed this weblog has a photo, - * FALSE otherwise. - */ - public function hasPhoto() - { - return (bool) $this->_hasPhoto; - } - - /** - * Returns the array of weblog authors. - * - * @return array of Zend_Service_Technorati_Author authors - */ - public function getAuthors() - { - return (array) $this->_authors; - } - - - /** - * Sets weblog name. - * - * @param string $name - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setName($name) - { - $this->_name = (string) $name; - return $this; - } - - /** - * Sets weblog URL. - * - * @param string|Zend_Uri_Http $url - * @return void - * @throws Zend_Service_Technorati_Exception if $input is an invalid URI - * (via Zend_Service_Technorati_Utils::normalizeUriHttp) - */ - public function setUrl($url) - { - $this->_url = Zend_Service_Technorati_Utils::normalizeUriHttp($url); - return $this; - } - - /** - * Sets number of inbound blogs. - * - * @param integer $number - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setInboundBlogs($number) - { - $this->_inboundBlogs = (int) $number; - return $this; - } - - /** - * Sets number of Iinbound links. - * - * @param integer $number - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setInboundLinks($number) - { - $this->_inboundLinks = (int) $number; - return $this; - } - - /** - * Sets weblog Rss URL. - * - * @param string|Zend_Uri_Http $url - * @return Zend_Service_Technorati_Weblog $this instance - * @throws Zend_Service_Technorati_Exception if $input is an invalid URI - * (via Zend_Service_Technorati_Utils::normalizeUriHttp) - */ - public function setRssUrl($url) - { - $this->_rssUrl = Zend_Service_Technorati_Utils::normalizeUriHttp($url); - return $this; - } - - /** - * Sets weblog Atom URL. - * - * @param string|Zend_Uri_Http $url - * @return Zend_Service_Technorati_Weblog $this instance - * @throws Zend_Service_Technorati_Exception if $input is an invalid URI - * (via Zend_Service_Technorati_Utils::normalizeUriHttp) - */ - public function setAtomUrl($url) - { - $this->_atomUrl = Zend_Service_Technorati_Utils::normalizeUriHttp($url); - return $this; - } - - /** - * Sets weblog Last Update timestamp. - * - * $datetime can be any value supported by - * Zend_Service_Technorati_Utils::normalizeDate(). - * - * @param mixed $datetime A string representing the last update date time - * in a valid date time format - * @return Zend_Service_Technorati_Weblog $this instance - * @throws Zend_Service_Technorati_Exception - */ - public function setLastUpdate($datetime) - { - $this->_lastUpdate = Zend_Service_Technorati_Utils::normalizeDate($datetime); - return $this; - } - - /** - * Sets weblog Rank. - * - * @param integer $rank - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setRank($rank) - { - $this->_rank = (int) $rank; - return $this; - } - - /** - * Sets weblog latitude coordinate. - * - * @param float $coordinate - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setLat($coordinate) - { - $this->_lat = (float) $coordinate; - return $this; - } - - /** - * Sets weblog longitude coordinate. - * - * @param float $coordinate - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setLon($coordinate) - { - $this->_lon = (float) $coordinate; - return $this; - } - - /** - * Sets hasPhoto property. - * - * @param bool $hasPhoto - * @return Zend_Service_Technorati_Weblog $this instance - */ - public function setHasPhoto($hasPhoto) - { - $this->_hasPhoto = (bool) $hasPhoto; - return $this; - } - -} diff --git a/tests/Zend/Service/AllTests.php b/tests/Zend/Service/AllTests.php index cf39bcde5c..b18379524e 100644 --- a/tests/Zend/Service/AllTests.php +++ b/tests/Zend/Service/AllTests.php @@ -36,7 +36,6 @@ require_once 'Zend/Service/ShortUrl/AllTests.php'; require_once 'Zend/Service/SlideShareTest.php'; require_once 'Zend/Service/StrikeIron/AllTests.php'; -require_once 'Zend/Service/Technorati/AllTests.php'; require_once 'Zend/Service/Twitter/AllTests.php'; require_once 'Zend/Service/WindowsAzure/AllTests.php'; require_once 'Zend/Service/Yahoo/AllTests.php'; @@ -82,7 +81,6 @@ public static function suite() $suite->addTest(Zend_Service_ShortUrl_AllTests::suite()); $suite->addTestSuite('Zend_Service_SlideShareTest'); $suite->addTest(Zend_Service_StrikeIron_AllTests::suite()); - $suite->addTest(Zend_Service_Technorati_AllTests::suite()); $suite->addTest(Zend_Service_Twitter_AllTests::suite()); $suite->addTest(Zend_Service_WindowsAzure_AllTests::suite()); $suite->addTest(Zend_Service_Yahoo_AllTests::suite()); diff --git a/tests/Zend/Service/Technorati/AllTests.php b/tests/Zend/Service/Technorati/AllTests.php deleted file mode 100644 index 9c8c8f9892..0000000000 --- a/tests/Zend/Service/Technorati/AllTests.php +++ /dev/null @@ -1,94 +0,0 @@ -addTestSuite('Zend_Service_Technorati_TechnoratiTest'); - $suite->addTestSuite('Zend_Service_Technorati_ResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_ResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_AuthorTest'); - $suite->addTestSuite('Zend_Service_Technorati_WeblogTest'); - $suite->addTestSuite('Zend_Service_Technorati_BlogInfoResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_GetInfoResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_KeyInfoResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_CosmosResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_CosmosResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_DailyCountsResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_DailyCountsResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_SearchResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_SearchResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_TagResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_TagResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_TagsResultTest'); - $suite->addTestSuite('Zend_Service_Technorati_TagsResultSetTest'); - $suite->addTestSuite('Zend_Service_Technorati_UtilsTest'); - - return $suite; - } -} - -if (defined('PHPUnit_MAIN_METHOD') && (PHPUnit_MAIN_METHOD == 'Zend_Service_Technorati_AllTests::main')) { - Zend_Service_Technorati_AllTests::main(); -} diff --git a/tests/Zend/Service/Technorati/AuthorTest.php b/tests/Zend/Service/Technorati/AuthorTest.php deleted file mode 100644 index 5f4d096ec7..0000000000 --- a/tests/Zend/Service/Technorati/AuthorTest.php +++ /dev/null @@ -1,138 +0,0 @@ -domElement = self::getTestFileElementAsDom('TestAuthor.xml', '//author'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_Author', array($this->domElement)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_Author', 'DOMElement'); - } - - public function testAuthor() - { - $author = new Zend_Service_Technorati_Author($this->domElement); - - $this->assertTrue(is_string($author->getFirstName())); - $this->assertEquals('Cesare', $author->getFirstName()); - - $this->assertTrue(is_string($author->getLastName())); - $this->assertEquals('Lamanna', $author->getLastName()); - - $this->assertTrue(is_string($author->getUsername())); - $this->assertEquals('cesarehtml', $author->getUsername()); - - $this->assertTrue(is_string($author->getDescription())); - $this->assertEquals('This is a description.', $author->getDescription()); - - $this->assertTrue(is_string($author->getFirstName())); - $this->assertEquals('This is a bio.', $author->getBio()); - - $this->assertTrue($author->getThumbnailPicture() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://static.technorati.com/progimages/photo.jpg?uid=117217'), $author->getThumbnailPicture()); - } - - public function testSetGet() - { - $author = new Zend_Service_Technorati_Author($this->domElement); - - // check first name - $set = 'first'; - $get = $author->setFirstName($set)->getFirstName(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check last name - $set = 'last'; - $get = $author->setLastName($set)->getLastName(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check username - $set = 'user'; - $get = $author->setUsername($set)->getUsername(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check description - $set = 'desc'; - $get = $author->setUsername($set)->getUsername(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check bio - $set = 'biography'; - $get = $author->setBio($set)->getBio(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check thubmnail picture - - $set = Zend_Uri::factory('http://www.simonecarletti.com/'); - $get = $author->setThumbnailPicture($set)->getThumbnailPicture(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals($set, $get); - - $set = 'http://www.simonecarletti.com/'; - $get = $author->setThumbnailPicture($set)->getThumbnailPicture(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory($set), $get); - - $set = 'http:::/foo'; - try { - $author->setThumbnailPicture($set); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch(Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid URI", $e->getMessage()); - } - } -} diff --git a/tests/Zend/Service/Technorati/BlogInfoResultTest.php b/tests/Zend/Service/Technorati/BlogInfoResultTest.php deleted file mode 100644 index 6cff8fc5a8..0000000000 --- a/tests/Zend/Service/Technorati/BlogInfoResultTest.php +++ /dev/null @@ -1,92 +0,0 @@ -dom = self::getTestFileContentAsDom('TestBlogInfoResult.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_BlogInfoResult', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_BlogInfoResult', 'DOMDocument'); - } - - public function testBlogInfoResult() - { - $object = new Zend_Service_Technorati_BlogInfoResult($this->dom); - - // check weblog - $weblog = $object->getWeblog(); - $this->assertTrue($weblog instanceof Zend_Service_Technorati_Weblog); - $this->assertEquals('Simone Carletti\'s Blog', $weblog->getName()); - - // check url - $this->assertTrue($object->getUrl() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog'), $object->getUrl()); - - // check inboundblogs - $this->assertTrue(is_int($object->getInboundBlogs())); - $this->assertEquals(86, $object->getInboundBlogs()); - - // check inboundlinks - $this->assertTrue(is_int($object->getInboundLinks())); - $this->assertEquals(114, $object->getInboundLinks()); - } - - public function testBlogInfoResultUrlWithInvalidSchemaEqualsToWeblogUrl() - { - $dom = self::getTestFileContentAsDom('TestBlogInfoResultUrlWithInvalidSchema.xml'); - $object = new Zend_Service_Technorati_BlogInfoResult($dom); - - // check url - $this->assertTrue($object->getUrl() instanceof Zend_Uri_Http); - $this->assertEquals($object->getWeblog()->getUrl(), $object->getUrl()); - } -} diff --git a/tests/Zend/Service/Technorati/CosmosResultSetTest.php b/tests/Zend/Service/Technorati/CosmosResultSetTest.php deleted file mode 100644 index ee3db0b307..0000000000 --- a/tests/Zend/Service/Technorati/CosmosResultSetTest.php +++ /dev/null @@ -1,170 +0,0 @@ -dom = self::getTestFileContentAsDom('TestCosmosResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_CosmosResultSet', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_CosmosResultSet', 'DOMDocument'); - } - - public function testCosmosResultSet() - { - $object = new Zend_Service_Technorati_CosmosResultSet($this->dom); - - // check counts - $this->assertTrue(is_int($object->totalResults())); - $this->assertEquals(2, $object->totalResults()); - $this->assertTrue(is_int($object->totalResultsAvailable())); - $this->assertEquals(278, $object->totalResultsAvailable()); - - // check properties - $this->assertTrue($object->getUrl() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog'), $object->getUrl()); - $this->assertTrue(is_int($object->getInboundLinks())); - $this->assertEquals(278, $object->getInboundLinks()); - - // check weblog - $this->assertTrue($object->getWeblog() instanceof Zend_Service_Technorati_Weblog); - $this->assertEquals('Simone Carletti\'s Blog', $object->getWeblog()->getName()); - } - - public function testCosmosResultSetItemsInstanceOfResult() - { - $this->_testResultSetItemsInstanceOfResult( - 'Zend_Service_Technorati_CosmosResultSet', - array($this->dom), - 'Zend_Service_Technorati_CosmosResult'); - } - - public function testCosmosResultSetSerialization() - { - $this->_testResultSetSerialization(new Zend_Service_Technorati_CosmosResultSet($this->dom)); - } - - public function testCosmosResultSetSiteLink() - { - $dom = self::getTestFileContentAsDom('TestCosmosResultSetSiteLink.xml'); - $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - $this->assertEquals(3, $object->totalResults()); - $this->assertEquals(949, $object->totalResultsAvailable()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com'), $object->getUrl()); - $this->assertEquals(949, $object->getInboundLinks()); - } - - public function testCosmosResultSetSiteWeblog() - { - $dom = self::getTestFileContentAsDom('TestCosmosResultSetSiteWeblog.xml'); - $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - $this->assertEquals(3, $object->totalResults()); - $this->assertEquals(39, $object->totalResultsAvailable()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com'), $object->getUrl()); - $this->assertEquals(39, $object->getInboundBlogs()); - } - - public function testCosmosResultSetSiteWeblogWithMissingInboundblogs() - { - // I can't do nothing to fix this issue in charge of Technorati - // I only have to ensure the class doens't fail and $object->totalResultsAvailable == 0 - - $dom = self::getTestFileContentAsDom('TestCosmosResultSetSiteWeblogWithMissingInboundblogs.xml'); - $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - $this->assertEquals(3, $object->totalResults()); - $this->assertEquals(0, $object->totalResultsAvailable()); - $this->assertEquals(null, $object->getInboundBlogs()); - } - - public function testCosmosResultSetSiteUrlWithInvalidSchema() - { - // FIXME - // Technorati allows 'url' parameter to be specified with or without www and/or schema. - // Technorati interface works well but returned responses may include invalid URIs. - // I have 2 possibility to fix the following issue: - // 1. using a default http schema when URL has an invalid one - // 2. force developers to provide a valid schema with 'url' parameter - // The second options is the best one because not only - // but other tags are affected by this issue if you don't provide a valid schema - - // $dom = self::getTestFileContentAsDom('TestCosmosResultSetSiteUrlWithInvalidSchema.xml'); - // $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - // $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com'), $object->getUrl()); - } - - public function testCosmosResultSetBlogLink() - { - $dom = self::getTestFileContentAsDom('TestCosmosResultSetBlogLink.xml'); - $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - $this->assertEquals(20, $object->totalResults()); - $this->assertEquals(298, $object->totalResultsAvailable()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog'), $object->getUrl()); - $this->assertEquals(298, $object->getInboundLinks()); - $this->assertEquals('Simone Carletti\'s Blog', $object->getWeblog()->getName()); - } - - public function testCosmosResultSetBlogWeblog() - { - $dom = self::getTestFileContentAsDom('TestCosmosResultSetBlogWeblog.xml'); - $object = new Zend_Service_Technorati_CosmosResultSet($dom); - - $this->assertEquals(20, $object->totalResults()); - $this->assertEquals(85, $object->totalResultsAvailable()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog'), $object->getUrl()); - $this->assertEquals(85, $object->getInboundBlogs()); - $this->assertEquals('Simone Carletti\'s Blog', $object->getWeblog()->getName()); - } -} diff --git a/tests/Zend/Service/Technorati/CosmosResultTest.php b/tests/Zend/Service/Technorati/CosmosResultTest.php deleted file mode 100644 index d3d858f005..0000000000 --- a/tests/Zend/Service/Technorati/CosmosResultTest.php +++ /dev/null @@ -1,129 +0,0 @@ -domElements = self::getTestFileElementsAsDom('TestCosmosResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_CosmosResult', array($this->domElements->item(0))); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_CosmosResult', 'DOMElement'); - } - - public function testCosmosResultSerialization() - { - $this->_testResultSerialization(new Zend_Service_Technorati_CosmosResult($this->domElements->item(0))); - } - - public function testCosmosResultSiteLink() - { - $domElements = self::getTestFileElementsAsDom('TestCosmosResultSetSiteLink.xml'); - $object = new Zend_Service_Technorati_CosmosResult($domElements->item(0)); - - $this->assertTrue($object->getWeblog() instanceof Zend_Service_Technorati_Weblog); - $this->assertContains('Gioxx', $object->getWeblog()->getName()); - - $this->assertTrue($object->getNearestPermalink() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/'), $object->getNearestPermalink()); - - $this->assertTrue(is_string($object->getExcerpt())); - $this->assertContains('Ho intenzione di prendere il modello bianco', $object->getExcerpt()); - - $this->assertTrue($object->getLinkCreated() instanceof Zend_Date); - $this->assertEquals(new Zend_Date('2007-11-11 20:07:11 GMT'), $object->getLinkCreated()); - - $this->assertTrue($object->getLinkUrl() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php'), $object->getLinkUrl()); - - // test an other element to prevent cached values - $object = new Zend_Service_Technorati_CosmosResult($domElements->item(1)); - $this->assertContains('Progetto-Seo', $object->getWeblog()->getName()); - $this->assertEquals(Zend_Uri::factory('http://www.progetto-seo.com/motori-di-ricerca/links-interni'), $object->getNearestPermalink()); - $this->assertContains('soprattutto Google', $object->getExcerpt()); - $this->assertEquals(new Zend_Date('2007-11-10 08:57:22 GMT'), $object->getLinkCreated()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php'), $object->getLinkUrl()); - } - - public function testCosmosResultSiteLinkNearestPermalinkIsNull() - { - $domElements = self::getTestFileElementsAsDom('TestCosmosResultSetSiteLink.xml'); - $object = new Zend_Service_Technorati_CosmosResult($domElements->item(2)); - $this->assertContains('Controrete', $object->getWeblog()->getName()); - $this->assertNull($object->getNearestPermalink()); - } - - public function testCosmosResultSiteWeblog() - { - $domElements = self::getTestFileElementsAsDom('TestCosmosResultSetSiteWeblog.xml'); - $object = new Zend_Service_Technorati_CosmosResult($domElements->item(0)); - - $this->assertTrue($object->getWeblog() instanceof Zend_Service_Technorati_Weblog); - $this->assertContains('Simone Carletti', $object->getWeblog()->getName()); - - $this->assertTrue($object->getLinkUrl() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com'), $object->getLinkUrl()); - - // test an other element to prevent cached values - $object = new Zend_Service_Technorati_CosmosResult($domElements->item(1)); - $this->assertContains('Gioxx', $object->getWeblog()->getName()); - $this->assertEquals(Zend_Uri::factory('http://www.simonecarletti.com'), $object->getLinkUrl()); - } - - public function testCosmosResultBlogLink() - { - // same as testSearchResultSiteLink - } - - public function testCosmosResultBlogWeblog() - { - // same as testSearchResultSiteWeblog - } -} diff --git a/tests/Zend/Service/Technorati/DailyCountsResultSetTest.php b/tests/Zend/Service/Technorati/DailyCountsResultSetTest.php deleted file mode 100644 index 1664eab0e3..0000000000 --- a/tests/Zend/Service/Technorati/DailyCountsResultSetTest.php +++ /dev/null @@ -1,88 +0,0 @@ -dom = self::getTestFileContentAsDom('TestDailyCountsResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_DailyCountsResultSet', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_DailyCountsResultSet', 'DOMDocument'); - } - - public function testDailyCountsResultSet() - { - $object = new Zend_Service_Technorati_DailyCountsResultSet($this->dom); - - // check counts - $this->assertTrue(is_int($object->totalResults())); - $this->assertEquals(5, $object->totalResults()); - $this->assertTrue(is_int($object->totalResultsAvailable())); - $this->assertEquals(5, $object->totalResultsAvailable()); - - // check properties - $this->assertTrue($object->getSearchUrl() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://technorati.com/search/google'), $object->getSearchUrl()); - } - - public function testDailyCountsResultSetItemsInstanceOfResult() - { - $this->_testResultSetItemsInstanceOfResult( - 'Zend_Service_Technorati_DailyCountsResultSet', - array($this->dom), - 'Zend_Service_Technorati_DailyCountsResult'); - } - - public function testDailyCountsResultSetSerialization() - { - $this->_testResultSetSerialization(new Zend_Service_Technorati_DailyCountsResultSet($this->dom)); - } -} diff --git a/tests/Zend/Service/Technorati/DailyCountsResultTest.php b/tests/Zend/Service/Technorati/DailyCountsResultTest.php deleted file mode 100644 index 40dda049df..0000000000 --- a/tests/Zend/Service/Technorati/DailyCountsResultTest.php +++ /dev/null @@ -1,76 +0,0 @@ -domElements = self::getTestFileElementsAsDom('TestDailyCountsResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_CosmosResult', array($this->domElements->item(0))); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_DailyCountsResult', 'DOMElement'); - } - - public function testDailyCountsResult() - { - $object = new Zend_Service_Technorati_DailyCountsResult($this->domElements->item(1)); - - // check properties - $this->assertTrue($object->getDate() instanceof Zend_Date); - $this->assertEquals(new Zend_Date(strtotime('2007-11-13')), $object->getDate()); - $this->assertTrue(is_int($object->getCount())); - $this->assertEquals(54414, $object->getCount()); - } - - public function testDailyCountsResultSerialization() - { - $this->_testResultSerialization(new Zend_Service_Technorati_DailyCountsResult($this->domElements->item(0))); - } -} diff --git a/tests/Zend/Service/Technorati/GetInfoResultTest.php b/tests/Zend/Service/Technorati/GetInfoResultTest.php deleted file mode 100644 index e6dbbf5bdd..0000000000 --- a/tests/Zend/Service/Technorati/GetInfoResultTest.php +++ /dev/null @@ -1,76 +0,0 @@ -dom = self::getTestFileContentAsDom('TestGetInfoResult.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_GetInfoResult', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_GetInfoResult', 'DOMDocument'); - } - - public function testGetInfoResult() - { - $object = new Zend_Service_Technorati_GetInfoResult($this->dom); - - // check author - $author = $object->getAuthor(); - $this->assertTrue($author instanceof Zend_Service_Technorati_Author); - $this->assertEquals('weppos', $author->getUsername()); - - // check weblogs - $weblogs = $object->getWeblogs(); - $this->assertTrue(is_array($weblogs)); - $this->assertEquals(2, count($weblogs)); - $this->assertTrue($weblogs[0] instanceof Zend_Service_Technorati_Weblog); - } -} diff --git a/tests/Zend/Service/Technorati/KeyInfoResultTest.php b/tests/Zend/Service/Technorati/KeyInfoResultTest.php deleted file mode 100644 index b71396928b..0000000000 --- a/tests/Zend/Service/Technorati/KeyInfoResultTest.php +++ /dev/null @@ -1,90 +0,0 @@ -dom = self::getTestFileContentAsDom('TestKeyInfoResult.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_KeyInfoResult', array($this->dom, self::TEST_API_KEY)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_KeyInfoResult', 'DOMDocument'); - } - - public function testKeyInfoResult() - { - $object = new Zend_Service_Technorati_KeyInfoResult($this->dom, self::TEST_API_KEY); - - $this->assertTrue(is_string($object->getApiKey())); - $this->assertEquals(self::TEST_API_KEY, $object->getApiKey()); - $this->assertTrue(is_int($object->getApiQueries())); - $this->assertEquals(27, $object->getApiQueries()); - $this->assertTrue(is_int($object->getMaxQueries())); - $this->assertEquals(1500, $object->getMaxQueries()); - } - - public function testApiKeyIsNullByDefault() - { - $object = new Zend_Service_Technorati_KeyInfoResult($this->dom); - $this->assertEquals(null, $object->getApiKey()); - } - - public function testSetGet() - { - $object = new Zend_Service_Technorati_KeyInfoResult($this->dom, self::TEST_API_KEY); - - $set = 'anewapikey'; - $get = $object->setApiKey($set)->getApiKey(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - } -} diff --git a/tests/Zend/Service/Technorati/ResultSetTest.php b/tests/Zend/Service/Technorati/ResultSetTest.php deleted file mode 100644 index c67a237a4a..0000000000 --- a/tests/Zend/Service/Technorati/ResultSetTest.php +++ /dev/null @@ -1,131 +0,0 @@ -ref = new ReflectionClass('Zend_Service_Technorati_ResultSet'); - $this->dom = self::getTestFileContentAsDom('TestSearchResultSet.xml'); - $this->object = new Zend_Service_Technorati_SearchResultSet($this->dom); - $this->objectRef = new ReflectionObject($this->object); - } - - public function testResultSetIsAbstract() - { - $this->assertTrue($this->ref->isAbstract()); - } - - public function testResultSetImplementsSeekableIteratorInterface() - { - $this->assertTrue($this->ref->isIterateable()); - } - - /** - * Security check - */ - public function testResultSetIsParentOfThisObjectClass() - { - $this->assertTrue($this->objectRef->isSubclassOf($this->ref)); - } - - - public function testResultSetSeek() - { - $this->assertEquals(0, $this->object->key()); - $this->object->seek(2); - $this->assertEquals(2, $this->object->key()); - } - - public function testResultSetSeekThrowsOutOfBoundsExceptionWithInvalidIndex() - { - try { - $this->object->seek(1000); - $this->fail('Expected OutOfBoundsException not thrown'); - } catch (OutOfBoundsException $e) { - $this->assertContains('Illegal index', $e->getMessage()); - } - } - - public function testResultSetKey() - { - $this->assertEquals(0, $this->object->key()); - $this->object->seek(2); - $this->assertEquals(2, $this->object->key()); - // don't move forward - $this->assertEquals(2, $this->object->key()); - } - - public function testResultSetNext() - { - $this->assertEquals(0, $this->object->key()); - $this->object->next(); - $this->assertEquals(1, $this->object->key()); - } - - public function testResultSetRewind() - { - $this->assertEquals(0, $this->object->key()); - $this->object->seek(2); - $this->assertTrue($this->object->rewind()); - $this->assertEquals(0, $this->object->key()); - } - - public function testResultSetSerialization() - { - $this->_testResultSetSerialization($this->object); - } -} diff --git a/tests/Zend/Service/Technorati/ResultTest.php b/tests/Zend/Service/Technorati/ResultTest.php deleted file mode 100644 index 29d7e2c5f3..0000000000 --- a/tests/Zend/Service/Technorati/ResultTest.php +++ /dev/null @@ -1,80 +0,0 @@ -ref = new ReflectionClass('Zend_Service_Technorati_Result'); - $this->domElements = self::getTestFileElementsAsDom('TestSearchResultSet.xml'); - $this->object = new Zend_Service_Technorati_SearchResult($this->domElements->item(0)); - $this->objectRef = new ReflectionObject($this->object); - } - - public function testResultIsAbstract() - { - $this->assertTrue($this->ref->isAbstract()); - } - - /** - * Security check - */ - public function testResultIsParentOfThisObjectClass() - { - $this->assertTrue($this->objectRef->isSubclassOf($this->ref)); - } - - public function testResultSerialization() - { - $this->_testResultSerialization($this->object); - } -} diff --git a/tests/Zend/Service/Technorati/SearchResultSetTest.php b/tests/Zend/Service/Technorati/SearchResultSetTest.php deleted file mode 100644 index c46118d0ef..0000000000 --- a/tests/Zend/Service/Technorati/SearchResultSetTest.php +++ /dev/null @@ -1,84 +0,0 @@ -dom = self::getTestFileContentAsDom('TestSearchResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_SearchResultSet', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_SearchResultSet', 'DOMDocument'); - } - - public function testSearchResultSet() - { - $object = new Zend_Service_Technorati_SearchResultSet($this->dom); - - // check counts - $this->assertTrue(is_int($object->totalResults())); - $this->assertEquals(3, $object->totalResults()); - $this->assertTrue(is_int($object->totalResultsAvailable())); - $this->assertEquals(4298362, $object->totalResultsAvailable()); - } - - public function testSearchResultSetItemsInstanceOfResult() - { - $this->_testResultSetItemsInstanceOfResult( - 'Zend_Service_Technorati_SearchResultSet', - array($this->dom), - 'Zend_Service_Technorati_SearchResult'); - } - - public function testSearchResultSetSerialization() - { - $this->_testResultSetSerialization(new Zend_Service_Technorati_SearchResultSet($this->dom)); - } -} diff --git a/tests/Zend/Service/Technorati/SearchResultTest.php b/tests/Zend/Service/Technorati/SearchResultTest.php deleted file mode 100644 index 3350c62217..0000000000 --- a/tests/Zend/Service/Technorati/SearchResultTest.php +++ /dev/null @@ -1,91 +0,0 @@ -domElements = self::getTestFileElementsAsDom('TestSearchResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_SearchResult', array($this->domElements->item(0))); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_SearchResult', 'DOMElement'); - } - - public function testSearchResult() - { - $object = new Zend_Service_Technorati_SearchResult($this->domElements->item(0)); - - // check properties - $this->assertTrue(is_string($object->getTitle())); - $this->assertContains('El SDK de Android', $object->getTitle()); - $this->assertTrue(is_string($object->getExcerpt())); - $this->assertContains('[ Android]', $object->getExcerpt()); - $this->assertTrue($object->getPermalink() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri_Http::factory('http://blogs.eurielec.etsit.upm.es/miotroblog/?p=271'), $object->getPermalink()); - $this->assertTrue($object->getCreated() instanceof Zend_Date); - $this->assertEquals(new Zend_Date('2007-11-14 22:18:04 GMT'), $object->getCreated()); - - // check weblog - $this->assertTrue($object->getWeblog() instanceof Zend_Service_Technorati_Weblog); - $this->assertContains('Mi otro blog', $object->getWeblog()->getName()); - } - - public function testSearchResultSerialization() - { - $this->_testResultSerialization(new Zend_Service_Technorati_SearchResult($this->domElements->item(0))); - } - - public function testSearchResultSpecialEncoding() - { - $object = new Zend_Service_Technorati_SearchResult($this->domElements->item(1)); - - $this->assertContains('質の超濃い読者をどかんと5000件集めます', $object->getTitle()); - } -} diff --git a/tests/Zend/Service/Technorati/TagResultSetTest.php b/tests/Zend/Service/Technorati/TagResultSetTest.php deleted file mode 100644 index ebf2e67724..0000000000 --- a/tests/Zend/Service/Technorati/TagResultSetTest.php +++ /dev/null @@ -1,90 +0,0 @@ -dom = self::getTestFileContentAsDom('TestTagResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_TagResultSet', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_TagResultSet', 'DOMDocument'); - } - - public function testTagResultSet() - { - $object = new Zend_Service_Technorati_TagResultSet($this->dom); - - // check counts - $this->assertTrue(is_int($object->totalResults())); - $this->assertEquals(3, $object->totalResults()); - $this->assertTrue(is_int($object->totalResultsAvailable())); - $this->assertEquals(268877, $object->totalResultsAvailable()); - - // check properties - $this->assertTrue(is_int($object->getPostsMatched())); - $this->assertEquals(268877, $object->getPostsMatched()); - $this->assertTrue(is_int($object->getBlogsMatched())); - $this->assertEquals(1812, $object->getBlogsMatched()); - } - - public function testTagResultSetItemsInstanceOfResult() - { - $this->_testResultSetItemsInstanceOfResult( - 'Zend_Service_Technorati_TagResultSet', - array($this->dom), - 'Zend_Service_Technorati_TagResult'); - } - - public function testTagResultSetSerialization() - { - $this->_testResultSetSerialization(new Zend_Service_Technorati_TagResultSet($this->dom)); - } -} diff --git a/tests/Zend/Service/Technorati/TagResultTest.php b/tests/Zend/Service/Technorati/TagResultTest.php deleted file mode 100644 index c2c80ffe32..0000000000 --- a/tests/Zend/Service/Technorati/TagResultTest.php +++ /dev/null @@ -1,86 +0,0 @@ -domElements = self::getTestFileElementsAsDom('TestTagResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_TagResult', array($this->domElements->item(0))); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_TagResult', 'DOMElement'); - } - - public function testTagResult() - { - $object = new Zend_Service_Technorati_TagResult($this->domElements->item(1)); - - // check properties - $this->assertTrue(is_string($object->getTitle())); - $this->assertContains('Permalink for : VerveEarth', $object->getTitle()); - $this->assertTrue(is_string($object->getExcerpt())); - $this->assertContains('VerveEarth: Locate Your Blog!', $object->getExcerpt()); - $this->assertTrue($object->getPermalink() instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory('http://scienceroll.com/2007/11/14/verveearth-locate-your-blog/'), $object->getPermalink()); - $this->assertTrue($object->getCreated() instanceof Zend_Date); - $this->assertEquals(new Zend_Date('2007-11-14 21:52:11'), $object->getCreated()); - $this->assertTrue($object->getUpdated() instanceof Zend_Date); - $this->assertEquals(new Zend_Date('2007-11-14 21:57:59'), $object->getUpdated()); - - // check weblog - $this->assertTrue($object->getWeblog() instanceof Zend_Service_Technorati_Weblog); - $this->assertEquals(' ScienceRoll', $object->getWeblog()->getName()); - } - - public function testTagResultSerialization() - { - $this->_testResultSerialization(new Zend_Service_Technorati_TagResult($this->domElements->item(0))); - } -} diff --git a/tests/Zend/Service/Technorati/TagsResultSetTest.php b/tests/Zend/Service/Technorati/TagsResultSetTest.php deleted file mode 100644 index b34f45b69d..0000000000 --- a/tests/Zend/Service/Technorati/TagsResultSetTest.php +++ /dev/null @@ -1,85 +0,0 @@ -dom = self::getTestFileContentAsDom('TestTagsResultSet.xml'); - $this->object = new Zend_Service_Technorati_TagsResultSet($this->dom); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_TagsResultSet', array($this->dom)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_TagsResultSet', 'DOMDocument'); - } - - public function testTagsResultSet() - { - $object = new Zend_Service_Technorati_TagsResultSet($this->dom); - - // check counts - $this->assertTrue(is_int($object->totalResults())); - $this->assertEquals(3, $object->totalResults()); - $this->assertTrue(is_int($object->totalResultsAvailable())); - $this->assertEquals(3, $object->totalResultsAvailable()); - } - - public function testTagsResultSetItemsInstanceOfResult() - { - $this->_testResultSetItemsInstanceOfResult( - 'Zend_Service_Technorati_TagsResultSet', - array($this->dom), - 'Zend_Service_Technorati_TagsResult'); - } - - public function testTagsResultSetSerialization() - { - $this->_testResultSetSerialization(new Zend_Service_Technorati_TagsResultSet($this->dom)); - } -} diff --git a/tests/Zend/Service/Technorati/TagsResultTest.php b/tests/Zend/Service/Technorati/TagsResultTest.php deleted file mode 100644 index 08445dd4aa..0000000000 --- a/tests/Zend/Service/Technorati/TagsResultTest.php +++ /dev/null @@ -1,83 +0,0 @@ -domElements = self::getTestFileElementsAsDom('TestTagsResultSet.xml'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_TagsResult', array($this->domElements->item(0))); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_TagsResult', 'DOMElement'); - } - - public function testTagsResult() - { - $object = new Zend_Service_Technorati_TagsResult($this->domElements->item(2)); - - // check properties - $this->assertTrue(is_string($object->getTag())); - $this->assertEquals('Weblog', $object->getTag()); - $this->assertTrue(is_int($object->getPosts())); - $this->assertEquals(8336350, $object->getPosts()); - } - - public function testTagsResultSerialization() - { - $this->_testResultSerialization(new Zend_Service_Technorati_TagsResult($this->domElements->item(0))); - } - - public function testTagsResultSpecialEncoding() - { - $object = new Zend_Service_Technorati_TagsResult($this->domElements->item(0)); - $this->assertEquals('練習用', $object->getTag()); - $this->assertEquals(19655999, $object->getPosts()); - } -} diff --git a/tests/Zend/Service/Technorati/TechnoratiTest.php b/tests/Zend/Service/Technorati/TechnoratiTest.php deleted file mode 100644 index 48526a3264..0000000000 --- a/tests/Zend/Service/Technorati/TechnoratiTest.php +++ /dev/null @@ -1,638 +0,0 @@ - $adapter - )); - - $this->technorati = new Zend_Service_Technorati(self::TEST_APY_KEY); - $this->adapter = $adapter; - $this->technorati->getRestClient()->setHttpClient($client); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati', array(self::TEST_APY_KEY)); - } - - public function testApiKeyMatches() - { - $object = $this->technorati; - $this->assertEquals(self::TEST_APY_KEY, $object->getApiKey()); - } - - public function testSetGetApiKey() - { - $object = $this->technorati; - - $set = 'just a test'; - $get = $object->setApiKey($set)->getApiKey(); - $this->assertEquals($set, $get); - } - - public function testCosmos() - { - $result = $this->_setResponseFromFile('TestCosmosSuccess.xml')->cosmos(self::TEST_PARAM_COSMOS); - - $this->assertTrue($result instanceof Zend_Service_Technorati_CosmosResultSet); - $this->assertEquals(2, $result->totalResults()); - $result->seek(0); - $this->assertTrue($result->current() instanceof Zend_Service_Technorati_CosmosResult); - // content is validated in Zend_Service_Technorati_CosmosResultSet tests - } - - public function testCosmosThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestCosmosError.xml')->cosmos(self::TEST_PARAM_COSMOS); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid request: url is required", $e->getMessage()); - } - } - - public function testCosmosThrowsExceptionWithInvalidUrl() - { - // url is mandatory --> validated by PHP interpreter - // url must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('cosmos', 'url'); - } - - public function testCosmosThrowsExceptionWithInvalidOption() - { - $options = array( - array('type' => 'foo'), - array('limit' => 'foo'), - array('limit' => 0), - array('limit' => 101), - array('start' => 0), - // 'current' => // cast to int - // 'claim' => // cast to int - // 'highlight' => // cast to int - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestCosmosSuccess.xml', 'cosmos', array(self::TEST_PARAM_COSMOS)); - } - - public function testCosmosOption() - { - $options = array( - array('type' => 'link'), - array('type' => 'weblog'), - array('limit' => 1), - array('limit' => 50), - array('limit' => 100), - array('start' => 1), - array('start' => 1000), - array('current' => false), // cast to int - array('current' => 0), // cast to int - array('claim' => false), // cast to int - array('claim' => 0), // cast to int - array('highlight' => false), // cast to int - array('highlight' => 0), // cast to int - ); - $this->_testOption($options, 'TestCosmosSuccess.xml', 'cosmos', array(self::TEST_PARAM_COSMOS)); - } - - public function testSearch() - { - $result = $this->_setResponseFromFile('TestSearchSuccess.xml')->search(self::TEST_PARAM_SEARCH); - - $this->assertTrue($result instanceof Zend_Service_Technorati_SearchResultSet); - $this->assertEquals(2, $result->totalResults()); - $result->seek(0); - $this->assertTrue($result->current() instanceof Zend_Service_Technorati_SearchResult); - // content is validated in Zend_Service_Technorati_SearchResultSet tests - } - - /** - * @see /_files/MISSING - * - public function testSearchThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestSearchError.xml')->cosmos(self::TEST_PARAM_COSMOS); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid request: url is required", $e->getMessage()); - } - } */ - - public function testSearchThrowsExceptionWithInvalidQuery() - { - // query is mandatory --> validated by PHP interpreter - // query must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('search', 'query'); - } - - public function testSearchThrowsExceptionWithInvalidOption() - { - $options = array( - array('authority' => 'foo'), - array('limit' => 'foo'), - array('limit' => 0), - array('limit' => 101), - array('start' => 0), - // 'claim' => // cast to int - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestSearchSuccess.xml', 'search', array(self::TEST_PARAM_SEARCH)); - } - - public function testSearchOption() - { - $options = array( - array('language' => 'en'), // not validated - array('authority' => 'n'), - array('authority' => 'a1'), - array('authority' => 'a4'), - array('authority' => 'a7'), - array('limit' => 1), - array('limit' => 50), - array('limit' => 100), - array('start' => 1), - array('start' => 1000), - array('claim' => false), // cast to int - array('claim' => 0), // cast to int - ); - $this->_testOption($options, 'TestSearchSuccess.xml', 'search', array(self::TEST_PARAM_SEARCH)); - } - - public function testTag() - { - $result = $this->_setResponseFromFile('TestTagSuccess.xml')->tag(self::TEST_PARAM_TAG); - - $this->assertTrue($result instanceof Zend_Service_Technorati_TagResultSet); - $this->assertEquals(2, $result->totalResults()); - $result->seek(0); - $this->assertTrue($result->current() instanceof Zend_Service_Technorati_TagResult); - // content is validated in Zend_Service_Technorati_TagResultSet tests - } - - public function testTagThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestTagError.xml')->tag(self::TEST_PARAM_TAG); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid request.", $e->getMessage()); - } - } - - public function testTagThrowsExceptionWithInvalidTag() - { - // tag is mandatory --> validated by PHP interpreter - // tag must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('tag', 'tag'); - } - - public function testTagThrowsExceptionWithInvalidOption() - { - $options = array( - array('limit' => 'foo'), - array('limit' => 0), - array('limit' => 101), - array('start' => 0), - // 'excerptsize' => // cast to int - // 'topexcerptsize' => // cast to int - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestTagSuccess.xml', 'tag', array(self::TEST_PARAM_TAG)); - } - - public function testTagOption() - { - $options = array( - array('excerptsize' => 150), // cast to int - array('excerptsize' => '150'), // cast to int - array('topexcerptsize' => 150), // cast to int - array('topexcerptsize' => '150'), // cast to int - array('limit' => 1), - array('limit' => 50), - array('limit' => 100), - array('start' => 1), - array('start' => 1000), - ); - $this->_testOption($options, 'TestTagSuccess.xml', 'tag', array(self::TEST_PARAM_TAG)); - } - - public function testDailyCounts() - { - $result = $this->_setResponseFromFile('TestDailyCountsSuccess.xml')->dailyCounts(self::TEST_PARAM_DAILYCOUNT); - - $this->assertTrue($result instanceof Zend_Service_Technorati_DailyCountsResultSet); - $this->assertEquals(180, $result->totalResults()); - $result->seek(0); - $this->assertTrue($result->current() instanceof Zend_Service_Technorati_DailyCountsResult); - // content is validated in Zend_Service_Technorati_DailyCountsResultSet tests - } - - public function testDailyCountsThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestDailyCountsError.xml')->dailyCounts(self::TEST_PARAM_DAILYCOUNT); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Missing required parameter", $e->getMessage()); - } - } - - public function testDailyCountsThrowsExceptionWithInvalidQuery() - { - // q is mandatory --> validated by PHP interpreter - // q must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('dailyCounts', 'q'); - } - - public function testDailyCountsThrowsExceptionWithInvalidOption() - { - $options = array( - array('days' => 0), - array('days' => '0'), - array('days' => 181), - array('days' => '181'), - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestDailyCountsSuccess.xml', 'dailyCounts', array(self::TEST_PARAM_DAILYCOUNT)); - } - - public function testDailyCountsOption() - { - $options = array( - array('days' => 120), // cast to int - array('days' => '120'), // cast to int - array('days' => 180), // cast to int - array('days' => '180'), // cast to int - ); - $this->_testOption($options, 'TestDailyCountsSuccess.xml', 'dailyCounts', array(self::TEST_PARAM_DAILYCOUNT)); - } - - public function testBlogInfo() - { - $result = $this->_setResponseFromFile('TestBlogInfoSuccess.xml')->blogInfo(self::TEST_PARAM_BLOGINFO); - - $this->assertTrue($result instanceof Zend_Service_Technorati_BlogInfoResult); - // content is validated in Zend_Service_Technorati_BlogInfoResult tests - } - - public function testBlogInfoThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestBlogInfoError.xml')->blogInfo(self::TEST_PARAM_BLOGINFO); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid request: url is required", $e->getMessage()); - } - } - - public function testBlogInfoThrowsExceptionWithInvalidUrl() - { - // url is mandatory --> validated by PHP interpreter - // url must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('blogInfo', 'url'); - } - - public function testBlogInfoThrowsExceptionWithUrlNotWeblog() - { - // emulate Technorati exception - // when URL is not a recognized weblog - try { - $this->_setResponseFromFile('TestBlogInfoErrorUrlNotWeblog.xml')->blogInfo('www.simonecarletti.com'); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Technorati weblog", $e->getMessage()); - } - } - - public function testBlogPostTags() - { - $result = $this->_setResponseFromFile('TestBlogPostTagsSuccess.xml')->blogPostTags(self::TEST_PARAM_BLOGPOSTTAGS); - - $this->assertTrue($result instanceof Zend_Service_Technorati_TagsResultSet); - // content is validated in Zend_Service_Technorati_TagsResultSet tests - } - - public function testBlogPostTagsThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestBlogPostTagsError.xml')->blogPostTags(self::TEST_PARAM_BLOGPOSTTAGS); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid request: url is required", $e->getMessage()); - } - } - - public function testBlogPostTagsThrowsExceptionWithInvalidUrl() - { - // url is mandatory --> validated by PHP interpreter - // url must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('blogPostTags', 'url'); - } - - public function testBlogPostTagsThrowsExceptionWithInvalidOption() - { - $options = array( - array('limit' => 'foo'), - array('limit' => 0), - array('limit' => 101), - array('start' => 0), - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestBlogPostTagsSuccess.xml', 'blogPostTags', array(self::TEST_PARAM_BLOGPOSTTAGS)); - } - - public function testBlogPostTagsOption() - { - $options = array( - array('limit' => 1), - array('limit' => 50), - array('limit' => 100), - array('start' => 1), - array('start' => 1000), - ); - $this->_testOption($options, 'TestBlogPostTagsSuccess.xml', 'blogPostTags', array(self::TEST_PARAM_BLOGPOSTTAGS)); - } - - public function testTopTags() - { - $result = $this->_setResponseFromFile('TestTopTagsSuccess.xml')->topTags(); - - $this->assertTrue($result instanceof Zend_Service_Technorati_TagsResultSet); - // content is validated in Zend_Service_Technorati_TagsResultSet tests - } - - public function testTopTagsThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestTopTagsError.xml')->topTags(); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid key.", $e->getMessage()); - } - } - - public function testTopTagsThrowsExceptionWithInvalidOption() - { - $options = array( - array('limit' => 'foo'), - array('limit' => 0), - array('limit' => 101), - array('start' => 0), - ); - $this->_testThrowsExceptionWithInvalidOption($options, 'TestTopTagsSuccess.xml', 'topTags'); - } - - public function testTopTagsOption() - { - $options = array( - array('limit' => 1), - array('limit' => 50), - array('limit' => 100), - array('start' => 1), - array('start' => 1000), - ); - $this->_testOption($options, 'TestTopTagsSuccess.xml', 'topTags'); - } - - public function testGetInfo() - { - $result = $this->_setResponseFromFile('TestGetInfoSuccess.xml')->getInfo(self::TEST_PARAM_GETINFO); - - $this->assertTrue($result instanceof Zend_Service_Technorati_GetInfoResult); - // content is validated in Zend_Service_Technorati_GetInfoResult tests - } - - public function testGetInfoThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestGetInfoError.xml')->getInfo(self::TEST_PARAM_GETINFO); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Username is a required field.", $e->getMessage()); - } - } - - public function testGetInfoThrowsExceptionWithInvalidUsername() - { - // username is mandatory --> validated by PHP interpreter - // username must not be empty - $this->_testThrowsExceptionWithInvalidMandatoryOption('getInfo', 'username'); - } - - public function testKeyInfo() - { - $result = $this->_setResponseFromFile('TestKeyInfoSuccess.xml')->keyInfo(); - - $this->assertTrue($result instanceof Zend_Service_Technorati_KeyInfoResult); - // content is validated in Zend_Service_Technorati_KeyInfoResult tests - } - - public function testKeyInfoThrowsExceptionWithError() - { - try { - $this->_setResponseFromFile('TestKeyInfoError.xml')->keyInfo(); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid key.", $e->getMessage()); - } - } - - public function testAllThrowsExceptionWithInvalidOptionFormat() - { - $invalidFormatOption = array('format' => 'rss'); - // format must be XML - $methods = array('cosmos' => self::TEST_PARAM_COSMOS, - 'search' => self::TEST_PARAM_SEARCH, - 'tag' => self::TEST_PARAM_TAG, - 'dailyCounts' => self::TEST_PARAM_DAILYCOUNT, - 'topTags' => null, - 'blogInfo' => self::TEST_PARAM_BLOGINFO, - 'blogPostTags' => self::TEST_PARAM_BLOGPOSTTAGS, - 'getInfo' => self::TEST_PARAM_GETINFO); - $technorati = $this->technorati; - - foreach ($methods as $method => $param) { - $options = array_merge((array) $param, array($invalidFormatOption)); - try { - call_user_func_array(array($technorati, $method), $options); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("'format'", $e->getMessage()); - } - } - } - - public function testAllThrowsExceptionWithUnknownOption() - { - $invalidOption = array('foo' => 'bar'); - $methods = array('cosmos' => self::TEST_PARAM_COSMOS, - 'search' => self::TEST_PARAM_SEARCH, - 'tag' => self::TEST_PARAM_TAG, - 'dailyCounts' => self::TEST_PARAM_DAILYCOUNT, - 'topTags' => null, - 'blogInfo' => self::TEST_PARAM_BLOGINFO, - 'blogPostTags' => self::TEST_PARAM_BLOGPOSTTAGS, - 'getInfo' => self::TEST_PARAM_GETINFO); - - $technorati = $this->technorati; - foreach ($methods as $method => $param) { - $options = array_merge((array) $param, array($invalidOption)); - try { - call_user_func_array(array($technorati, $method), $options); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("'foo'", $e->getMessage()); - } - } - } - - /** - * Tests whether $callbackMethod method throws an Exception - * with Invalid Url. - * - * @param string $callbackMethod - */ - private function _testThrowsExceptionWithInvalidMandatoryOption($callbackMethod, $name) - { - try { - $this->technorati->$callbackMethod(''); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("'$name'", $e->getMessage()); - } - } - - /** - * Tests whether for each $validOptions a method call is successful. - * - * @param array $validOptions - * @param string $xmlFile - * @param string $callbackMethod - * @param null|array $callbackRequiredOptions - */ - private function _testOption($validOptions, $xmlFile, $callbackMethod, $callbackRequiredOptions = null) - { - $technorati = $this->_setResponseFromFile($xmlFile); - foreach ($validOptions as $pair) { - list($option, $value) = each($pair); - $options = is_array($callbackRequiredOptions) ? - array_merge($callbackRequiredOptions, array($pair)) : - array($pair); - - try { - call_user_func_array(array($technorati, $callbackMethod), $options); - } catch (Zend_Service_Technorati_Exception $e) { - $this->fail("Exception " . $e->getMessage() . " thrown " . - "for option '$option' value '$value'"); - } - } - } - - /** - * Tests whether for each $validOptions a method call is successful. - * - * @param array $invalidOptions - * @param string $xmlFile - * @param string $callbackMethod - * @param null|array $callbackRequiredOptions - */ - private function _testThrowsExceptionWithInvalidOption($invalidOptions, $xmlFile, $callbackMethod, $callbackRequiredOptions = null) - { - $technorati = $this->_setResponseFromFile($xmlFile); - foreach ($invalidOptions as $pair) { - list($option, $value) = each($pair); - $options = is_array($callbackRequiredOptions) ? - array_merge($callbackRequiredOptions, array($pair)) : - array($pair); - - try { - call_user_func_array(array($technorati, $callbackMethod), $options); - $this->fail("Expected Zend_Service_Technorati_Exception not thrown " . - "for option '$option' value '$value'"); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains("'$option'", $e->getMessage()); - } - } - } - - /** - * Loads a response content from a test case file - * and sets the content to current Test Adapter. - * - * Returns current Zend_Service_Technorati instance - * to let developers use the powerful chain call. - * - * Do not execute any file validation. Please use this method carefully. - * - * @params string $file - * @return Zend_Service_Technorati - */ - private function _setResponseFromFile($file) - { - $response = "HTTP/1.0 200 OK\r\n" - . "Date: " . date(DATE_RFC1123) . "\r\n" - . "Server: Apache\r\n" - . "Cache-Control: max-age=60\r\n" - . "Content-Type: text/xml; charset=UTF-8\r\n" - . "X-Powered-By: PHP/5.2.1\r\n" - . "Connection: close\r\n" - . "\r\n" - . file_get_contents(dirname(__FILE__) . '/_files/' . $file) ; - - $this->adapter->setResponse($response); - return $this->technorati; // allow chain call - } -} diff --git a/tests/Zend/Service/Technorati/TestCase.php b/tests/Zend/Service/Technorati/TestCase.php deleted file mode 100644 index c8a8de6710..0000000000 --- a/tests/Zend/Service/Technorati/TestCase.php +++ /dev/null @@ -1,159 +0,0 @@ -= 5.1.0 - */ -if (!ini_get('date.timezone')) { - date_default_timezone_set(@date_default_timezone_get()); -} - -/** - * @see Zend_Service_Technorati - */ -require_once 'Zend/Service/Technorati.php'; - - -/** - * @category Zend - * @package Zend_Service_Technorati - * @subpackage UnitTests - * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - * @group Zend_Service - * @group Zend_Service_Technorati - */ -class Zend_Service_Technorati_TestCase extends PHPUnit_Framework_TestCase -{ - protected function _testConstruct($className, $args) - { - $reflection = new ReflectionClass($className); - try { - $object = $reflection->newInstanceArgs($args); - $this->assertTrue($object instanceof $className); - } catch (Zend_Service_Technorati_Exception $e) { - $this->fail("Exception " . $e->getMessage() . " thrown"); - } - } - - protected function _testConstructThrowsExceptionWithInvalidDom($className, $match) - { - if (self::skipInvalidArgumentTypeTests()) { - $this->markTestIncomplete('Failure to meet type hint results in fatal error in PHP < 5.2.0'); - return; - } - - // This test is unnecessary. PHP type hinting is well tested, and will throw - // catchable fatal errors on invalid argument types. Do nothing here. - } - - protected function _testResultSetItemsInstanceOfResult($resultSetClassName, $args, $resultClassName) - { - $reflection = new ReflectionClass($resultSetClassName); - $resultset = $reflection->newInstanceArgs($args); - foreach ($resultset as $result) { - $this->assertTrue($result instanceof $resultClassName); - } - } - - protected function _testResultSetSerialization($resultSet) - { - $unobject = unserialize(serialize($resultSet)); - $unresult = null; - - $class = get_class($resultSet); - $this->assertTrue($unobject instanceof $class); - - foreach ($resultSet as $index => $result) { - try { - $unobject->seek($index); - $unresult = $unobject->current(); - } catch(OutOfBoundsException $e) { - $this->fail("Missing result index $index"); - } - $this->assertEquals($result, $unresult); - } - } - - protected function _testResultSerialization($result) - { - /** - * Both Result and ResultSet objects includes variables - * that references special objects such as DomDocuments. - * - * Unlike ResultSet(s), Result instances uses Dom fragments - * only to construct the instance itself, then both Dom and Xpath objects - * are no longer required. - * - * It means serializing a Result is not a painful job. - * We don't need to implement any __wakeup or _sleep function - * because PHP is able to create a perfect serialized snapshot - * of current object status. - * - * Thought this situation makes our life easier, it's not safe - * to assume things will not change in the future. - * Testing each object now against a serialization request - * makes this library more secure in the future! - */ - $unresult = unserialize(serialize($result)); - - $class = get_class($result); - $this->assertTrue($unresult instanceof $class); - $this->assertEquals($result, $unresult); - } - - public static function getTestFilePath($file) - { - return dirname(__FILE__) . '/_files/' . $file; - } - - public static function getTestFileContentAsDom($file) - { - $dom = new DOMDocument(); - $dom->load(self::getTestFilePath($file)); - return $dom; - } - - public static function getTestFileElementsAsDom($file, $exp = '//item') - { - $dom = self::getTestFileContentAsDom($file); - $xpath = new DOMXPath($dom); - return $xpath->query($exp); - } - - public static function getTestFileElementAsDom($file, $exp = '//item', $item = 0) - { - $dom = self::getTestFileContentAsDom($file); - $xpath = new DOMXPath($dom); - $domElements = $xpath->query($exp); - return $domElements->item($item); - } - - public static function skipInvalidArgumentTypeTests() - { - // PHP < 5.2.0 returns a fatal error - // instead of a catchable Exception (ZF-2334) - return version_compare(phpversion(), "5.2.0", "<"); - } - -} diff --git a/tests/Zend/Service/Technorati/UtilsTest.php b/tests/Zend/Service/Technorati/UtilsTest.php deleted file mode 100644 index 909394b16d..0000000000 --- a/tests/Zend/Service/Technorati/UtilsTest.php +++ /dev/null @@ -1,102 +0,0 @@ -assertNull(Zend_Service_Technorati_Utils::normalizeUriHttp(null)); - } - - /** - * @return void - */ - public function testSetUriHttpInputInvalidSchemeFtpThrowsException() - { - $scheme = 'ftp'; - $inputInvalidScheme = "$scheme://example.com"; - try { - Zend_Service_Technorati_Utils::normalizeUriHttp($inputInvalidScheme); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains($scheme, $e->getMessage()); - } - } - - /** - * @return void - */ - public function testSetDateInputNullReturnsNull() - { - $this->assertNull(Zend_Service_Technorati_Utils::normalizeDate(null)); - } - - /** - * @return void - */ - public function testSetDateInputDateInstanceReturnsInstance() - { - $date = new Zend_Date('2007-11-11 08:47:26 GMT'); - $result = Zend_Service_Technorati_Utils::normalizeDate($date); - - $this->assertTrue($result instanceof Zend_Date); - $this->assertEquals($date, $result); - } - - /** - * @return void - */ - public function testSetDateInputInvalidThrowsException() - { - $inputInvalid = "2007foo"; - try { - Zend_Service_Technorati_Utils::normalizeDate($inputInvalid); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch (Zend_Service_Technorati_Exception $e) { - $this->assertContains($inputInvalid, $e->getMessage()); - } - } -} diff --git a/tests/Zend/Service/Technorati/WeblogTest.php b/tests/Zend/Service/Technorati/WeblogTest.php deleted file mode 100644 index bd6cbf8903..0000000000 --- a/tests/Zend/Service/Technorati/WeblogTest.php +++ /dev/null @@ -1,277 +0,0 @@ -domElement = self::getTestFileElementAsDom('TestWeblog.xml', '//weblog'); - } - - public function testConstruct() - { - $this->_testConstruct('Zend_Service_Technorati_Weblog', array($this->domElement)); - } - - public function testConstructThrowsExceptionWithInvalidDom() - { - $this->_testConstructThrowsExceptionWithInvalidDom('Zend_Service_Technorati_Weblog', 'DOMElement'); - } - - public function testWeblog() - { - $weblog = new Zend_Service_Technorati_Weblog($this->domElement); - - // check name - $this->assertEquals('Roby Web World Italia', $weblog->getName()); - // check URL - $this->assertEquals(Zend_Uri::factory('http://robyww.blogspot.com'), $weblog->getUrl()); - // check Atom Url - $this->assertEquals(Zend_Uri::factory('http://robyww.blogspot.com/feeds/posts/atom'), $weblog->getAtomUrl()); - // check RSS Url - $this->assertEquals(Zend_Uri::factory('http://robyww.blogspot.com/feeds/posts/rss'), $weblog->getRssUrl()); - // check inbound blogs - $this->assertEquals(71, $weblog->getInboundBlogs()); - // check inbound links - $this->assertEquals(103, $weblog->getInboundLinks()); - // check last update - $this->assertEquals(new Zend_Date('2007-11-11 08:47:26 GMT'), $weblog->getLastUpdate()); - // check rank - $this->assertEquals(93473, $weblog->getRank()); - // check authors - $var = $weblog->getAuthors(); - $this->assertTrue(is_array($var)); - $this->assertEquals(1, sizeof($var)); - // check photo - $this->assertEquals(false, $weblog->hasPhoto()); - // check lat and lon - $this->assertNull($weblog->getLat()); - $this->assertNull($weblog->getLon()); - } - - public function testWeblogWithTwoAuthors() - { - $domElement = self::getTestFileElementAsDom('TestWeblogTwoAuthors.xml', '//weblog'); - $weblog = new Zend_Service_Technorati_Weblog($domElement); - - $authors = $weblog->getAuthors(); - - // check whether $authors is an array with valid length - $this->assertTrue(is_array($authors)); - $this->assertEquals(2, sizeof($authors)); - - // check first author - $author = $authors[0]; - $this->assertTrue($author instanceof Zend_Service_Technorati_Author); - $this->assertEquals('rfilippini', $author->getUsername()); - - // check second author, be sure it's not the first one - $author = $authors[1]; - $this->assertTrue($author instanceof Zend_Service_Technorati_Author); - $this->assertEquals('Rinzi', $author->getUsername()); - } - - public function testSetGet() - { - $weblog = new Zend_Service_Technorati_Weblog($this->domElement); - - // check name - $set = 'foo'; - $get = $weblog->setName($set)->getName(); - $this->assertTrue(is_string($get)); - $this->assertEquals($set, $get); - - // check URL - - $set = Zend_Uri::factory('http://www.simonecarletti.com/'); - $get = $weblog->setUrl($set)->getUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals($set, $get); - - $set = 'http://www.simonecarletti.com/'; - $get = $weblog->setUrl($set)->getUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory($set), $get); - - $set = 'http:::/foo'; - try { - $weblog->setUrl($set); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch(Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid URI", $e->getMessage()); - } - - // check Atom URL - - $set = Zend_Uri::factory('http://www.simonecarletti.com/'); - $get = $weblog->setAtomUrl($set)->getAtomUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals($set, $get); - - $set = 'http://www.simonecarletti.com/'; - $get = $weblog->setAtomUrl($set)->getAtomUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory($set), $get); - - $set = 'http:::/foo'; - try { - $weblog->setAtomUrl($set); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch(Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid URI", $e->getMessage()); - } - - // check RSS Url - - $set = Zend_Uri::factory('http://www.simonecarletti.com/'); - $get = $weblog->setRssUrl($set)->getRssUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals($set, $get); - - $set = 'http://www.simonecarletti.com/'; - $get = $weblog->setRssUrl($set)->getRssUrl(); - $this->assertTrue($get instanceof Zend_Uri_Http); - $this->assertEquals(Zend_Uri::factory($set), $get); - - $set = 'http:::/foo'; - try { - $weblog->setRssUrl($set); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch(Zend_Service_Technorati_Exception $e) { - $this->assertContains("Invalid URI", $e->getMessage()); - } - - // check inbound blogs - - $set = rand(); - $get = $weblog->setInboundBlogs($set)->getInboundBlogs(); - $this->assertTrue(is_int($get)); - $this->assertEquals($set, $get); - - $set = (string) rand(); - $get = $weblog->setInboundBlogs($set)->getInboundBlogs(); - $this->assertTrue(is_int($get)); - $this->assertEquals((int) $set, $get); - - // check inbound links - - $set = rand(); - $get = $weblog->setInboundLinks($set)->getInboundLinks(); - $this->assertTrue(is_int($get)); - $this->assertEquals((int) $set, $get); - - $set = (string) rand(); - $get = $weblog->setInboundLinks($set)->getInboundLinks(); - $this->assertTrue(is_int($get)); - $this->assertEquals((int) $set, $get); - - // last update - - $set = '2007-11-11 08:47:26 GMT'; - $get = $weblog->setLastUpdate($set)->getLastUpdate(); - $this->assertTrue($get instanceof Zend_Date); - $this->assertEquals(new Zend_Date($set), $get); - - /* not supported - $set = time(); - $get = $weblog->setLastUpdate($set)->getLastUpdate(); - $this->assertTrue(is_int($get)); - $this->assertEquals($set, $get); */ - - $set = '200ty'; - try { - $weblog->setLastUpdate($set); - $this->fail('Expected Zend_Service_Technorati_Exception not thrown'); - } catch(Zend_Service_Technorati_Exception $e) { - $this->assertContains("valid Date/Time", $e->getMessage()); - } - - // check rank - - $set = rand(); - $get = $weblog->setRank($set)->getRank(); - $this->assertTrue(is_int($get)); - $this->assertEquals((int) $set, $get); - - $set = (string) rand(); - $get = $weblog->setRank($set)->getRank(); - $this->assertTrue(is_int($get)); - $this->assertEquals((int) $set, $get); - - // check hasPhoto - - $set = false; - $get = $weblog->setHasPhoto($set)->hasPhoto(); - $this->assertTrue(is_bool($get)); - $this->assertEquals($set, $get); - - $set = 0; - $get = $weblog->setHasPhoto($set)->hasPhoto(); - $this->assertTrue(is_bool($get)); - $this->assertEquals((bool) $set, $get); - - // check lat - - $set = 1.3; - $get = $weblog->setLat($set)->getLat(); - $this->assertTrue(is_float($get)); - $this->assertEquals($set, $get); - - $set = '1.3'; - $get = $weblog->setLat($set)->getLat(); - $this->assertTrue(is_float($get)); - $this->assertEquals((float) $set, $get); - - // check lon - - $set = 1.3; - $get = $weblog->setLon($set)->getLon(); - $this->assertTrue(is_float($get)); - $this->assertEquals($set, $get); - - $set = '1.3'; - $get = $weblog->setLon($set)->getLon(); - $this->assertTrue(is_float($get)); - $this->assertEquals((float) $set, $get); - } -} diff --git a/tests/Zend/Service/Technorati/_files/MISSING b/tests/Zend/Service/Technorati/_files/MISSING deleted file mode 100644 index b114332bbd..0000000000 --- a/tests/Zend/Service/Technorati/_files/MISSING +++ /dev/null @@ -1,15 +0,0 @@ -= Missing Cases = - -Unable to find an output for the following cases. -Please, write me at weppos@weppos.net if you have one of the following XML responses. - -== Cosmos == - - * Highligh = 1 returned an highlighted result within tag - -== Search == - - * `Search` error response cannot be created because due to a Technorati bug - any bad `Search` request returns an HTML response - * Claim = 1 option doesn't work for the same (unknown) reason it failed - in `Cosmos` search \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestAuthor.xml b/tests/Zend/Service/Technorati/_files/TestAuthor.xml deleted file mode 100644 index a0f6424839..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestAuthor.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - cesarehtml - Cesare - Lamanna - This is a description. - This is a bio. - http://static.technorati.com/progimages/photo.jpg?uid=117217 - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestAuthorNullFields.xml b/tests/Zend/Service/Technorati/_files/TestAuthorNullFields.xml deleted file mode 100644 index 2ae49497b9..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestAuthorNullFields.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - cesarehtml - Cesare - Lamanna - http://static.technorati.com/progimages/photo.jpg?uid=117217 - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestBlogInfoError.xml b/tests/Zend/Service/Technorati/_files/TestBlogInfoError.xml deleted file mode 100644 index 25d4cb0ac8..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogInfoError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid request: url is required - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogInfoErrorUrlNotWeblog.xml b/tests/Zend/Service/Technorati/_files/TestBlogInfoErrorUrlNotWeblog.xml deleted file mode 100644 index f94edd9618..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogInfoErrorUrlNotWeblog.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - www.simonecarletti.com - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogInfoResult.xml b/tests/Zend/Service/Technorati/_files/TestBlogInfoResult.xml deleted file mode 100644 index a3ae7b41ca..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogInfoResult.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - http://www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - - http://www.simonecarletti.com/blog/index.xml - 86 - 114 - 2007-11-14 21:06:36 GMT - 80591 - - 86 - 114 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogInfoResultUrlWithInvalidSchema.xml b/tests/Zend/Service/Technorati/_files/TestBlogInfoResultUrlWithInvalidSchema.xml deleted file mode 100644 index efdc20edd4..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogInfoResultUrlWithInvalidSchema.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - - http://www.simonecarletti.com/blog/index.xml - 86 - 114 - 2007-11-14 21:06:36 GMT - 80591 - - 86 - 114 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogInfoSuccess.xml b/tests/Zend/Service/Technorati/_files/TestBlogInfoSuccess.xml deleted file mode 100644 index 8d2c3598fc..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogInfoSuccess.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - - http://www.simonecarletti.com/blog/index.xml - 86 - 114 - 2007-11-14 21:06:36 GMT - 80591 - - 86 - 114 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsError.xml b/tests/Zend/Service/Technorati/_files/TestBlogPostTagsError.xml deleted file mode 100644 index 1b5dd95019..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid request: url is required - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsErrorUrlNotWeblog.xml b/tests/Zend/Service/Technorati/_files/TestBlogPostTagsErrorUrlNotWeblog.xml deleted file mode 100644 index 03ab2e3321..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsErrorUrlNotWeblog.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - Your URL is not in our system - - - diff --git a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsSuccess.xml b/tests/Zend/Service/Technorati/_files/TestBlogPostTagsSuccess.xml deleted file mode 100644 index 77cab9e343..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestBlogPostTagsSuccess.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - 20 - - - Google - 102 - - - software - 50 - - - Blogging - 50 - - - Blog - 45 - - - Internet - 42 - - - Motori di ricerca - 41 - - - SEO - 39 - - - software e strumenti - 28 - - - Microsoft - 22 - - - Syndication - 21 - - - feed - 18 - - - Strumenti - 18 - - - trucchi & segreti - 17 - - - About This Blog - 17 - - - Lettori di Feed - 16 - - - feedburner - 15 - - - Relax - 14 - - - eventi e segnalazioni - 13 - - - PHP - 12 - - - Articoli - 12 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosError.xml b/tests/Zend/Service/Technorati/_files/TestCosmosError.xml deleted file mode 100644 index e059f4f60f..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid request: url is required - - - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSet.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSet.xml deleted file mode 100644 index b33a23e17d..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSet.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - http://www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 82 - 111 - 2007-12-19 16:11:13 GMT - 85297 - - 278 - 1 - - - - Sentieri Didattici del Veneto - http://sentierididattici.scuoleinrete.net/wpmu - http://sentierididattici.scuoleinrete.net/wpmu/feed/ - 4 - 4 - 2007-09-20 11:42:39 GMT - - Che cos'è un blog Blog di Sergio Maistrello Il mestiere di scrivere ScuolaERSimone Carletti's BlogWikipedia - 2007-12-24 15:29:17 GMT - http://www.simonecarletti.com/blog/2005/09/che_cose_un_blog.php - - - - Marco Cattaneo Weblog - Tecnologia e New Media; Innovazione, Informazione e Comunicazione Digitale - http://www.marcocattaneo.com - http://www.marcocattaneo.com/feed/ - 39 - 73 - 2007-12-22 10:00:14 GMT - - http://www.marcocattaneo.com/2007/12/22/buon-natale-con-sentimento-e-spero-non-con-banalita/ - cultura, ricette, ricordi o piacevoli scorci di vita vissuta, regalo un link, che per me equivale ad un piccolo pensiero natalizio.Ringrazio quindi (in rigoroso ordine quasi sparso): Tevac, Mac Blog, Macity, Lele, Paolo Valdemarin, Luca Mascaro,Simone Carletti, Ludo, Dario Salvelli, Kurai, Roberto, Nicola Mattina Blog, Alberto Mucignat, Alberto Nardelli, Andrea Beggi, Luca Pandemia Conti, Marco Camisani Calzolari, Robin Good, Maestrini, Alberto, Tiziano Fogliata - 2007-12-22 10:00:14 GMT - http://www.simonecarletti.com/blog/ - - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLink.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLink.xml deleted file mode 100644 index 3b0f2715e8..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLink.xml +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - - - http://www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - 81766 - - 298 - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 20:07:11 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - Scegli il mese PREFERITI [IMG] Seth Godin's Blog [IMG] John Battelle's Search Blog [IMG] Search Engine Land [IMG] SEM Blog (Marco Loguercio) [IMG]Simone Carletti's Blog - 2007-11-11 16:56:30 GMT - http://www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 05:04:12 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - ( soprattutto Google ) a riconoscere il nostro dominio di competenza; tutto questo influirà sensibilmente sui risultati dell’intero progetto. I migliori SEO divulgano insegnamenti che sfortunatamente in pochi hanno l’accortezza di seguire;Simone Carlettiè sicuramente uno dei più autorevoli; vediamo insieme cosa egli scrive nella sua recente guida dedicata ai Google site links: Ci sono alcune attività che possono agevolare l’analisi e l’interpretazione del sito, migliorando l - 2007-11-10 09:01:12 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - http://www.progetto-seo.com/motori-di-ricerca/links-interni - ( soprattutto Google ) a riconoscere il nostro dominio di competenza; tutto questo influirà sensibilmente sui risultati dell’intero progetto. I migliori SEO divulgano insegnamenti che sfortunatamente in pochi hanno l’accortezza di seguire;Simone Carlettiè sicuramente uno dei più autorevoli; vediamo insieme cosa egli scrive nella sua recente guida dedicata ai Google site links: Ci sono alcune attività che possono agevolare l’analisi e l’interpretazione del sito, migliorando l - 2007-11-10 08:57:22 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - FeedBurner Stats 2 Feed 1.1 - Build your own FeedBurner feeds stats feed - http://lab.rss-world.info/feedburner-feedstats - http://lab.rss-world.info/feedburner-feedstats/stats2feed.php - 1 - 4 - 2007-11-07 17:54:16 GMT - - http://lab.rss-world.info/feedburner-feedstats/#errors - here - 2007-11-08 11:54:32 GMT - http://www.simonecarletti.com/blog/2006/06/feedburner_stats_2_feed.php - - - - Se siamo fatti di pura energia, - http://sitaram.splinder.com - http://syndication.splinder.com/sitaram/rss2.xml - http://syndication.splinder.com/sitaram/atom.xml - 27 - 49 - 2007-11-10 19:27:05 GMT - - Blog di Mercante di Sogni Blog di Morris Goodman Blog di Natalibera Blog di Nuovo Spazio Blog di Oltre l'infinito Blog di OsteMax Blog di Pachucha Blog di Paul Coelho Blog di Riccardo Blog di Ron Peer Blog di SilasBlog di Simone CarlettiBlog di Sofia Blog di Stazione Celeste Blog di Susan Hanshaw Blog di Visualizzazione Positiva Blog di Web Caffè Blog di Wolf Blog di Zio Hack Buddhismo della Via di Diamante Celestian Center Cellula Cancerosa - 2007-11-07 21:03:08 GMT - http://www.simonecarletti.com/blog/ - - - - BLOG intarget.net - http://blog.intarget.net - http://blog.intarget.net/feed - http://blog.intarget.net/feed/atom - 0 - 0 - 2007-11-06 16:58:08 GMT - - - “tecniche segrete” del marketing Pandemia - ambiente, media, rete e tecnologia Search Advertising Blog - il Blog di Andrea Cappello Search Engine Marketing - il blog di Marco Loguercio SeoTalk - il Blog di Salvatore CarielloSimone Carletti's Blog- Un piccolo spazio nel web dedicato al web con approfondimenti su marketing, feed RSS / Atom e motori di ricerca Tagliaerbe Blog - seo blog - 2007-11-06 16:58:13 GMT - http://www.simonecarletti.com/blog/ - - - - Soft Review - http://softrevi.com - http://softrevi.com/feed/ - 1 - 1 - 2007-11-12 17:38:55 GMT - - http://softrevi.com/2007/11/06/how-to-add-rmail-as-a-choice-in-firefox-20/ - read more - 2007-11-06 16:51:43 GMT - http://www.simonecarletti.com/blog/2006/06/how_to_add_rmail_as_a_choice_i.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - http://www.progetto-seo.com/motori-di-ricerca/rel-nofollow-seo - è presente, significa che la pagina d’origine non attribuirà alcun valore alla pagina di destinazione; Ask dichiara di non averlo mai supportato ufficialmente, potete trovare tutte le informazioni necessarie inquesto articolo, liberamente tradotto da Simone Carletti da un articolo di Loren Baker pubblicato sul Search Engine Journal. Technorati Tag: SEO, rel nofollow, motori di ricerca - 2007-11-06 14:03:18 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-05 12:47:43 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - DreamsWorld - www.dreamsworld.it - Errore Interno del Server - http://www.dreamsworld.it/emanuele - 112 - 354 - 2007-11-12 18:42:17 GMT - - http://www.dreamsworld.it/emanuele/2007-11-04/mac-onsigliatemi-11-domande-prima-di-passare-a-mac/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. A questo punto immagino che sia consigliabile avere almeno 2Gb di ram. Conviene spendere 132??? ed acquistare “l’upgrade - 2007-11-04 19:15:57 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - …time is what you make of it… - http://emanuele.dreamsworld.it - http://www.dreamsworld.it/emanuele/feed/ - 2 - 2 - 2007-11-12 15:24:46 GMT - - http://www.dreamsworld.it/emanuele/2007-11-04/mac-onsigliatemi-11-domande-prima-di-passare-a-mac/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. A questo punto immagino che sia consigliabile avere almeno 2Gb di ram. Conviene spendere 132€ ed acquistare “l’upgrade - 2007-11-04 19:15:57 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Stefano Gorgoni » Dovevo chiedervi scusa? - http://www.stefanogorgoni.com/384/dovevo-chiedervi-scusa - http://www.stefanogorgoni.com/feed/ - 0 - 0 - 2007-11-02 14:11:04 GMT - - inaritech kerouac3001 marketing routes mauro lupi mini marketing motoricerca.info motoricerca.net progetto seo ranklab seo search advertising blog semblog seo talk studiocelso webmarketing web marketingwepposYoYo Formazione rotolante - 2007-11-03 13:02:10 GMT - http://www.simonecarletti.com/blog/ - - - - [•] - RSS/ATOM Feeds Aggregator - http://www.codicesorgente.it - http://www.codicesorgente.it/feedsaggregator/rss.php - 67 - 321 - 2007-11-05 02:40:19 GMT - - ho sentita) che rappresentano, per il momento, una piccola minoranza, e non rientrano tra quelli considerati “utente medio” peccando di superbia, penso di aver fatto una bella analisi, ma mi piacerebbe avere il parere di alberto, tambu,simone, altre che naturalmente di tutti quelli che avranno voglia di lasciarmelo… [richiesta marchetta on] non contento della dose di link appena vomitata, aggiungo che se marco formento, lele dainesi e - 2007-11-03 08:03:16 GMT - http://www.simonecarletti.com/blog/ - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/default - 71 - 103 - 2007-11-11 08:47:26 GMT - - Seth's Blog David Naylor Reporter Diffuso Marco Loguercio Tiziano Fogliata Davide Pozzi SetFocus [dot] IT Mauro Lupi 980Km Lo Direi Così Lafra Napolux Senza Stile Titti Zingone Giorgio Tave Luca ContiSimone CarlettiLalui Felter Roberto Luca Togni Robin Good Albegor's Blog Nik's Blog [mini]marketing Blographik Luca DeBiase Cristian Castellari Massimo Mantellini Sacha Catalano Numero Venti Xipe Eugenio La Mesa Andrea Cappello - 2007-11-01 09:13:15 GMT - http://www.simonecarletti.com/blog/ - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - Redazione: Ogni dipendente, ad esempio, può creare il proprio calendario aziendale e condividerlo in sola lettura con gli altri colleghi. Un calendario aziendale, condiviso in lettura e scrittura, permetterà di segnare gli appuntamenti comuni. - 2007-10-30 23:58:10 GMT - http://www.simonecarletti.com/blog/2007/10/ottimizzare-costi-azienda-parte-2.php - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - http://italyfilm.net/Cinema-2007/10/31/come-ridurre-ed-ottimizzare-i-costi-tecnici-in-azienda-parte-2/ - Redazione: Ogni dipendente, ad esempio, può creare il proprio calendario aziendale e condividerlo in sola lettura con gli altri colleghi. Un calendario aziendale, condiviso in lettura e scrittura, permetterà di segnare gli appuntamenti comuni. - 2007-10-30 23:36:00 GMT - http://www.simonecarletti.com/blog/2007/10/ottimizzare-costi-azienda-parte-2.php - - - - 980km | Smart Web Marketing - http://www.980km.com - http://feeds.980km.com/980kmSmartWebMarketing - 137 - 327 - 2007-11-11 21:08:33 GMT - - http://www.980km.com/web-marketing/980km-entra-nel-network-web-marketing-e-motori-di-ricerca.html - Dopo 6 mesi di dura attività su 980km eccomi giunto ad uno dei traguardi che mi ero prefissato fin dall’inizio: entrare nel network “Web marketing e motori di ricerca” su Feedburner, Network gestito daSimone Carletti; è una grande soddisfazione per me! D’ora in poi i contenuti di 980km verrano distribuiti anche sul Network, oltre al Feed diretto dal blog. Per conoscere tutti i siti/blog che compongono il Network basta andare su - 2007-10-29 18:14:58 GMT - http://www.simonecarletti.com/blog/ - - - - Allora vendi PageRank! E Matt Cutts lo conferma su Search Engine Journal | 980km - http://www.980km.com/google/allora-vendi-pagerank-e-matt-cutts-lo-conferma-su-search-engine-journal.html - http://feeds.980km.com/980kmSmartWebMarketing - 0 - 0 - 2007-10-31 13:06:51 GMT - - http://www.980km.com/web-marketing/980km-entra-nel-network-web-marketing-e-motori-di-ricerca.html - Dopo 6 mesi di dura attività su 980km eccomi giunto ad uno dei traguardi che mi ero prefissato fin dall’inizio: entrare nel network “Web marketing e motori di ricerca” su Feedburner, Network gestito daSimone Carletti; è una grande soddisfazione per me! D’ora in poi i contenuti di 980km verrano distribuiti anche sul Network, oltre al Feed diretto dal blog. Per conoscere tutti i siti/blog che compongono il Network basta andare su - 2007-10-29 18:14:58 GMT - http://www.simonecarletti.com/blog/ - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLinkClaim.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLinkClaim.xml deleted file mode 100644 index ced4a309f1..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogLinkClaim.xml +++ /dev/null @@ -1,348 +0,0 @@ - - - - - - - - http://www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - 81766 - - 298 - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - gioxx - Gioxx - - http://static.technorati.com/progimages/photo.jpg?uid=311288 - - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 20:07:11 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - Scegli il mese PREFERITI [IMG] Seth Godin's Blog [IMG] John Battelle's Search Blog [IMG] Search Engine Land [IMG] SEM Blog (Marco Loguercio) [IMG]Simone Carletti's Blog - 2007-11-11 16:56:30 GMT - http://www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 05:04:12 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - ( soprattutto Google ) a riconoscere il nostro dominio di competenza; tutto questo influirà sensibilmente sui risultati dell’intero progetto. I migliori SEO divulgano insegnamenti che sfortunatamente in pochi hanno l’accortezza di seguire;Simone Carlettiè sicuramente uno dei più autorevoli; vediamo insieme cosa egli scrive nella sua recente guida dedicata ai Google site links: Ci sono alcune attività che possono agevolare l’analisi e l’interpretazione del sito, migliorando l - 2007-11-10 09:01:12 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - http://www.progetto-seo.com/motori-di-ricerca/links-interni - ( soprattutto Google ) a riconoscere il nostro dominio di competenza; tutto questo influirà sensibilmente sui risultati dell’intero progetto. I migliori SEO divulgano insegnamenti che sfortunatamente in pochi hanno l’accortezza di seguire;Simone Carlettiè sicuramente uno dei più autorevoli; vediamo insieme cosa egli scrive nella sua recente guida dedicata ai Google site links: Ci sono alcune attività che possono agevolare l’analisi e l’interpretazione del sito, migliorando l - 2007-11-10 08:57:22 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - FeedBurner Stats 2 Feed 1.1 - Build your own FeedBurner feeds stats feed - http://lab.rss-world.info/feedburner-feedstats - http://lab.rss-world.info/feedburner-feedstats/stats2feed.php - 1 - 4 - 2007-11-07 17:54:16 GMT - - http://lab.rss-world.info/feedburner-feedstats/#errors - here - 2007-11-08 11:54:32 GMT - http://www.simonecarletti.com/blog/2006/06/feedburner_stats_2_feed.php - - - - Se siamo fatti di pura energia, - http://sitaram.splinder.com - http://syndication.splinder.com/sitaram/rss2.xml - http://syndication.splinder.com/sitaram/atom.xml - 27 - 49 - 2007-11-10 19:27:05 GMT - - SitaRam - - - http://static.technorati.com/progimages/photo.jpg?uid=714617 - - - Blog di Mercante di Sogni Blog di Morris Goodman Blog di Natalibera Blog di Nuovo Spazio Blog di Oltre l'infinito Blog di OsteMax Blog di Pachucha Blog di Paul Coelho Blog di Riccardo Blog di Ron Peer Blog di SilasBlog di Simone CarlettiBlog di Sofia Blog di Stazione Celeste Blog di Susan Hanshaw Blog di Visualizzazione Positiva Blog di Web Caffè Blog di Wolf Blog di Zio Hack Buddhismo della Via di Diamante Celestian Center Cellula Cancerosa - 2007-11-07 21:03:08 GMT - http://www.simonecarletti.com/blog/ - - - - BLOG intarget.net - http://blog.intarget.net - http://blog.intarget.net/feed - http://blog.intarget.net/feed/atom - 0 - 0 - 2007-11-06 16:58:08 GMT - - - “tecniche segrete” del marketing Pandemia - ambiente, media, rete e tecnologia Search Advertising Blog - il Blog di Andrea Cappello Search Engine Marketing - il blog di Marco Loguercio SeoTalk - il Blog di Salvatore CarielloSimone Carletti's Blog- Un piccolo spazio nel web dedicato al web con approfondimenti su marketing, feed RSS / Atom e motori di ricerca Tagliaerbe Blog - seo blog - 2007-11-06 16:58:13 GMT - http://www.simonecarletti.com/blog/ - - - - Soft Review - http://softrevi.com - http://softrevi.com/feed/ - 1 - 1 - 2007-11-12 17:38:55 GMT - - http://softrevi.com/2007/11/06/how-to-add-rmail-as-a-choice-in-firefox-20/ - read more - 2007-11-06 16:51:43 GMT - http://www.simonecarletti.com/blog/2006/06/how_to_add_rmail_as_a_choice_i.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - http://www.progetto-seo.com/motori-di-ricerca/rel-nofollow-seo - è presente, significa che la pagina d’origine non attribuirà alcun valore alla pagina di destinazione; Ask dichiara di non averlo mai supportato ufficialmente, potete trovare tutte le informazioni necessarie inquesto articolo, liberamente tradotto da Simone Carletti da un articolo di Loren Baker pubblicato sul Search Engine Journal. Technorati Tag: SEO, rel nofollow, motori di ricerca - 2007-11-06 14:03:18 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-05 12:47:43 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - DreamsWorld - www.dreamsworld.it - Errore Interno del Server - http://www.dreamsworld.it/emanuele - 112 - 354 - 2007-11-12 18:42:17 GMT - - pixel8383 - Emanuele - - http://static.technorati.com/progimages/photo.jpg?uid=143656 - - - http://www.dreamsworld.it/emanuele/2007-11-04/mac-onsigliatemi-11-domande-prima-di-passare-a-mac/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. A questo punto immagino che sia consigliabile avere almeno 2Gb di ram. Conviene spendere 132??? ed acquistare “l’upgrade - 2007-11-04 19:15:57 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - …time is what you make of it… - http://emanuele.dreamsworld.it - http://www.dreamsworld.it/emanuele/feed/ - 2 - 2 - 2007-11-12 15:24:46 GMT - - pixel8383 - Emanuele - - http://static.technorati.com/progimages/photo.jpg?uid=143656 - - - http://www.dreamsworld.it/emanuele/2007-11-04/mac-onsigliatemi-11-domande-prima-di-passare-a-mac/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. A questo punto immagino che sia consigliabile avere almeno 2Gb di ram. Conviene spendere 132€ ed acquistare “l’upgrade - 2007-11-04 19:15:57 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Stefano Gorgoni » Dovevo chiedervi scusa? - http://www.stefanogorgoni.com/384/dovevo-chiedervi-scusa - http://www.stefanogorgoni.com/feed/ - 0 - 0 - 2007-11-02 14:11:04 GMT - - inaritech kerouac3001 marketing routes mauro lupi mini marketing motoricerca.info motoricerca.net progetto seo ranklab seo search advertising blog semblog seo talk studiocelso webmarketing web marketingwepposYoYo Formazione rotolante - 2007-11-03 13:02:10 GMT - http://www.simonecarletti.com/blog/ - - - - [•] - RSS/ATOM Feeds Aggregator - http://www.codicesorgente.it - http://www.codicesorgente.it/feedsaggregator/rss.php - 67 - 321 - 2007-11-05 02:40:19 GMT - - ho sentita) che rappresentano, per il momento, una piccola minoranza, e non rientrano tra quelli considerati “utente medio” peccando di superbia, penso di aver fatto una bella analisi, ma mi piacerebbe avere il parere di alberto, tambu,simone, altre che naturalmente di tutti quelli che avranno voglia di lasciarmelo… [richiesta marchetta on] non contento della dose di link appena vomitata, aggiungo che se marco formento, lele dainesi e - 2007-11-03 08:03:16 GMT - http://www.simonecarletti.com/blog/ - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/default - 71 - 103 - 2007-11-11 08:47:26 GMT - - rfilippini - Roberto - Filippini - http://static.technorati.com/progimages/photo.jpg?uid=290763 - - - Seth's Blog David Naylor Reporter Diffuso Marco Loguercio Tiziano Fogliata Davide Pozzi SetFocus [dot] IT Mauro Lupi 980Km Lo Direi Così Lafra Napolux Senza Stile Titti Zingone Giorgio Tave Luca ContiSimone CarlettiLalui Felter Roberto Luca Togni Robin Good Albegor's Blog Nik's Blog [mini]marketing Blographik Luca DeBiase Cristian Castellari Massimo Mantellini Sacha Catalano Numero Venti Xipe Eugenio La Mesa Andrea Cappello - 2007-11-01 09:13:15 GMT - http://www.simonecarletti.com/blog/ - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - Redazione: Ogni dipendente, ad esempio, può creare il proprio calendario aziendale e condividerlo in sola lettura con gli altri colleghi. Un calendario aziendale, condiviso in lettura e scrittura, permetterà di segnare gli appuntamenti comuni. - 2007-10-30 23:58:10 GMT - http://www.simonecarletti.com/blog/2007/10/ottimizzare-costi-azienda-parte-2.php - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - http://italyfilm.net/Cinema-2007/10/31/come-ridurre-ed-ottimizzare-i-costi-tecnici-in-azienda-parte-2/ - Redazione: Ogni dipendente, ad esempio, può creare il proprio calendario aziendale e condividerlo in sola lettura con gli altri colleghi. Un calendario aziendale, condiviso in lettura e scrittura, permetterà di segnare gli appuntamenti comuni. - 2007-10-30 23:36:00 GMT - http://www.simonecarletti.com/blog/2007/10/ottimizzare-costi-azienda-parte-2.php - - - - 980km | Smart Web Marketing - http://www.980km.com - http://feeds.980km.com/980kmSmartWebMarketing - 137 - 327 - 2007-11-11 21:08:33 GMT - - johnniemaneiro - Johnnie - Maneiro - http://static.technorati.com/progimages/photo.jpg?uid=396500 - - - http://www.980km.com/web-marketing/980km-entra-nel-network-web-marketing-e-motori-di-ricerca.html - Dopo 6 mesi di dura attività su 980km eccomi giunto ad uno dei traguardi che mi ero prefissato fin dall’inizio: entrare nel network “Web marketing e motori di ricerca” su Feedburner, Network gestito daSimone Carletti; è una grande soddisfazione per me! D’ora in poi i contenuti di 980km verrano distribuiti anche sul Network, oltre al Feed diretto dal blog. Per conoscere tutti i siti/blog che compongono il Network basta andare su - 2007-10-29 18:14:58 GMT - http://www.simonecarletti.com/blog/ - - - - Allora vendi PageRank! E Matt Cutts lo conferma su Search Engine Journal | 980km - http://www.980km.com/google/allora-vendi-pagerank-e-matt-cutts-lo-conferma-su-search-engine-journal.html - http://feeds.980km.com/980kmSmartWebMarketing - 0 - 0 - 2007-10-31 13:06:51 GMT - - http://www.980km.com/web-marketing/980km-entra-nel-network-web-marketing-e-motori-di-ricerca.html - Dopo 6 mesi di dura attività su 980km eccomi giunto ad uno dei traguardi che mi ero prefissato fin dall’inizio: entrare nel network “Web marketing e motori di ricerca” su Feedburner, Network gestito daSimone Carletti; è una grande soddisfazione per me! D’ora in poi i contenuti di 980km verrano distribuiti anche sul Network, oltre al Feed diretto dal blog. Per conoscere tutti i siti/blog che compongono il Network basta andare su - 2007-10-29 18:14:58 GMT - http://www.simonecarletti.com/blog/ - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblog.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblog.xml deleted file mode 100644 index 9d2c9c369a..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblog.xml +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - - - http://www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - 81766 - - 85 - - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - www.simonecarletti.com/blog - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - FeedBurner Stats 2 Feed 1.1 - Build your own FeedBurner feeds stats feed - http://lab.rss-world.info/feedburner-feedstats - http://lab.rss-world.info/feedburner-feedstats/stats2feed.php - 1 - 4 - 2007-11-07 17:54:16 GMT - - www.simonecarletti.com/blog - - - - Se siamo fatti di pura energia, - http://sitaram.splinder.com - http://syndication.splinder.com/sitaram/rss2.xml - http://syndication.splinder.com/sitaram/atom.xml - 27 - 49 - 2007-11-10 19:27:05 GMT - - www.simonecarletti.com/blog - - - - BLOG intarget.net - http://blog.intarget.net - http://blog.intarget.net/feed - http://blog.intarget.net/feed/atom - 0 - 0 - 2007-11-06 16:58:08 GMT - - www.simonecarletti.com/blog - - - - Soft Review - http://softrevi.com - http://softrevi.com/feed/ - 1 - 1 - 2007-11-12 17:38:55 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - DreamsWorld - www.dreamsworld.it - Errore Interno del Server - http://www.dreamsworld.it/emanuele - 112 - 354 - 2007-11-12 18:42:17 GMT - - www.simonecarletti.com/blog - - - - …time is what you make of it… - http://emanuele.dreamsworld.it - http://www.dreamsworld.it/emanuele/feed/ - 2 - 2 - 2007-11-12 15:24:46 GMT - - www.simonecarletti.com/blog - - - - Stefano Gorgoni » Dovevo chiedervi scusa? - http://www.stefanogorgoni.com/384/dovevo-chiedervi-scusa - http://www.stefanogorgoni.com/feed/ - 0 - 0 - 2007-11-02 14:11:04 GMT - - www.simonecarletti.com/blog - - - - [•] - RSS/ATOM Feeds Aggregator - http://www.codicesorgente.it - http://www.codicesorgente.it/feedsaggregator/rss.php - 67 - 321 - 2007-11-05 02:40:19 GMT - - www.simonecarletti.com/blog - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/default - 71 - 103 - 2007-11-11 08:47:26 GMT - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - 980km | Smart Web Marketing - http://www.980km.com - http://feeds.980km.com/980kmSmartWebMarketing - 137 - 327 - 2007-11-11 21:08:33 GMT - - www.simonecarletti.com/blog - - - - Allora vendi PageRank! E Matt Cutts lo conferma su Search Engine Journal | 980km - http://www.980km.com/google/allora-vendi-pagerank-e-matt-cutts-lo-conferma-su-search-engine-journal.html - http://feeds.980km.com/980kmSmartWebMarketing - 0 - 0 - 2007-10-31 13:06:51 GMT - - www.simonecarletti.com/blog - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim.xml deleted file mode 100644 index 196218ddc5..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim.xml +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - - www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - 81766 - - 85 - - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - www.simonecarletti.com/blog - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - FeedBurner Stats 2 Feed 1.1 - Build your own FeedBurner feeds stats feed - http://lab.rss-world.info/feedburner-feedstats - http://lab.rss-world.info/feedburner-feedstats/stats2feed.php - 1 - 4 - 2007-11-07 17:54:16 GMT - - www.simonecarletti.com/blog - - - - Se siamo fatti di pura energia, - http://sitaram.splinder.com - http://syndication.splinder.com/sitaram/rss2.xml - http://syndication.splinder.com/sitaram/atom.xml - 27 - 49 - 2007-11-10 19:27:05 GMT - - www.simonecarletti.com/blog - - - - BLOG intarget.net - http://blog.intarget.net - http://blog.intarget.net/feed - http://blog.intarget.net/feed/atom - 0 - 0 - 2007-11-06 16:58:08 GMT - - www.simonecarletti.com/blog - - - - Soft Review - http://softrevi.com - http://softrevi.com/feed/ - 1 - 1 - 2007-11-12 17:38:55 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - DreamsWorld - www.dreamsworld.it - Errore Interno del Server - http://www.dreamsworld.it/emanuele - 112 - 354 - 2007-11-12 18:42:17 GMT - - www.simonecarletti.com/blog - - - - …time is what you make of it… - http://emanuele.dreamsworld.it - http://www.dreamsworld.it/emanuele/feed/ - 2 - 2 - 2007-11-12 15:24:46 GMT - - www.simonecarletti.com/blog - - - - Stefano Gorgoni » Dovevo chiedervi scusa? - http://www.stefanogorgoni.com/384/dovevo-chiedervi-scusa - http://www.stefanogorgoni.com/feed/ - 0 - 0 - 2007-11-02 14:11:04 GMT - - www.simonecarletti.com/blog - - - - [•] - RSS/ATOM Feeds Aggregator - http://www.codicesorgente.it - http://www.codicesorgente.it/feedsaggregator/rss.php - 67 - 321 - 2007-11-05 02:40:19 GMT - - www.simonecarletti.com/blog - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/default - 71 - 103 - 2007-11-11 08:47:26 GMT - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - 980km | Smart Web Marketing - http://www.980km.com - http://feeds.980km.com/980kmSmartWebMarketing - 137 - 327 - 2007-11-11 21:08:33 GMT - - www.simonecarletti.com/blog - - - - Allora vendi PageRank! E Matt Cutts lo conferma su Search Engine Journal | 980km - http://www.980km.com/google/allora-vendi-pagerank-e-matt-cutts-lo-conferma-su-search-engine-journal.html - http://feeds.980km.com/980kmSmartWebMarketing - 0 - 0 - 2007-10-31 13:06:51 GMT - - www.simonecarletti.com/blog - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim2.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim2.xml deleted file mode 100644 index 6f3edc3596..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetBlogWeblogClaim2.xml +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - www.simonecarletti.com/blog - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - 81766 - - 85 - - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - gioxx - Gioxx - - http://static.technorati.com/progimages/photo.jpg?uid=311288 - - - www.simonecarletti.com/blog - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - FeedBurner Stats 2 Feed 1.1 - Build your own FeedBurner feeds stats feed - http://lab.rss-world.info/feedburner-feedstats - http://lab.rss-world.info/feedburner-feedstats/stats2feed.php - 1 - 4 - 2007-11-07 17:54:16 GMT - - www.simonecarletti.com/blog - - - - Se siamo fatti di pura energia, - http://sitaram.splinder.com - http://syndication.splinder.com/sitaram/rss2.xml - http://syndication.splinder.com/sitaram/atom.xml - 27 - 49 - 2007-11-10 19:27:05 GMT - - SitaRam - - - http://static.technorati.com/progimages/photo.jpg?uid=714617 - - - www.simonecarletti.com/blog - - - - BLOG intarget.net - http://blog.intarget.net - http://blog.intarget.net/feed - http://blog.intarget.net/feed/atom - 0 - 0 - 2007-11-06 16:58:08 GMT - - www.simonecarletti.com/blog - - - - Soft Review - http://softrevi.com - http://softrevi.com/feed/ - 1 - 1 - 2007-11-12 17:38:55 GMT - - www.simonecarletti.com/blog - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - www.simonecarletti.com/blog - - - - Gioxx’s Wall - http://gioxx.wordpress.com - 7 - 8 - 2007-11-12 21:35:14 GMT - - www.simonecarletti.com/blog - - - - DreamsWorld - www.dreamsworld.it - Errore Interno del Server - http://www.dreamsworld.it/emanuele - 112 - 354 - 2007-11-12 18:42:17 GMT - - pixel8383 - Emanuele - - http://static.technorati.com/progimages/photo.jpg?uid=143656 - - - www.simonecarletti.com/blog - - - - …time is what you make of it… - http://emanuele.dreamsworld.it - http://www.dreamsworld.it/emanuele/feed/ - 2 - 2 - 2007-11-12 15:24:46 GMT - - pixel8383 - Emanuele - - http://static.technorati.com/progimages/photo.jpg?uid=143656 - - - www.simonecarletti.com/blog - - - - Stefano Gorgoni » Dovevo chiedervi scusa? - http://www.stefanogorgoni.com/384/dovevo-chiedervi-scusa - http://www.stefanogorgoni.com/feed/ - 0 - 0 - 2007-11-02 14:11:04 GMT - - www.simonecarletti.com/blog - - - - [•] - RSS/ATOM Feeds Aggregator - http://www.codicesorgente.it - http://www.codicesorgente.it/feedsaggregator/rss.php - 67 - 321 - 2007-11-05 02:40:19 GMT - - www.simonecarletti.com/blog - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/default - 71 - 103 - 2007-11-11 08:47:26 GMT - - rfilippini - Roberto - Filippini - http://static.technorati.com/progimages/photo.jpg?uid=290763 - - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - ItalyFilm Blog - http://italyfilm.net - http://italyfilm.net/feed/ - http://italyfilm.net/feed/atom/ - 5 - 39 - 2007-11-12 18:48:28 GMT - - www.simonecarletti.com/blog - - - - 980km | Smart Web Marketing - http://www.980km.com - http://feeds.980km.com/980kmSmartWebMarketing - 137 - 327 - 2007-11-11 21:08:33 GMT - - johnniemaneiro - Johnnie - Maneiro - http://static.technorati.com/progimages/photo.jpg?uid=396500 - - - www.simonecarletti.com/blog - - - - Allora vendi PageRank! E Matt Cutts lo conferma su Search Engine Journal | 980km - http://www.980km.com/google/allora-vendi-pagerank-e-matt-cutts-lo-conferma-su-search-engine-journal.html - http://feeds.980km.com/980kmSmartWebMarketing - 0 - 0 - 2007-10-31 13:06:51 GMT - - www.simonecarletti.com/blog - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteLink.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteLink.xml deleted file mode 100644 index e3b70335e9..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteLink.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - http://www.simonecarletti.com - 949 - 1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 20:07:11 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - - Progetto-Seo - http://www.progetto-seo.com - http://www.progetto-seo.com/feed/ - 43 - 84 - 2007-11-10 08:57:22 GMT - - http://www.progetto-seo.com/motori-di-ricerca/links-interni - ( soprattutto Google ) a riconoscere il nostro dominio di competenza; tutto questo influirà sensibilmente sui risultati dell’intero progetto. I migliori SEO divulgano insegnamenti che sfortunatamente in pochi hanno l’accortezza di seguire;Simone Carlettiè sicuramente uno dei più autorevoli; vediamo insieme cosa egli scrive nella sua recente guida dedicata ai Google site links: Ci sono alcune attività che possono agevolare l’analisi e l’interpretazione del sito, migliorando l - 2007-11-10 08:57:22 GMT - http://www.simonecarletti.com/blog/2007/04/google-yahoo-ask-nofollow.php - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - Scegli il mese PREFERITI [IMG] Seth Godin's Blog [IMG] John Battelle's Search Blog [IMG] Search Engine Land [IMG] SEM Blog (Marco Loguercio) [IMG]Simone Carletti's Blog - 2007-11-11 16:56:30 GMT - http://www.simonecarletti.com/blog - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteUrlWithInvalidSchema.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteUrlWithInvalidSchema.xml deleted file mode 100644 index 561322fb53..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteUrlWithInvalidSchema.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - www.simonecarletti.com - - 1 - - - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - - www.simonecarletti.com - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - www.simonecarletti.com - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - www.simonecarletti.com - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblog.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblog.xml deleted file mode 100644 index ac040b1b2a..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblog.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - http://www.simonecarletti.com - 39 - 1 - - - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - - http://www.simonecarletti.com - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - http://www.simonecarletti.com - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - http://www.simonecarletti.com - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblogWithMissingInboundblogs.xml b/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblogWithMissingInboundblogs.xml deleted file mode 100644 index 6cb67adc95..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosResultSetSiteWeblogWithMissingInboundblogs.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - http://www.simonecarletti.com - - 1 - - - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - - www.simonecarletti.com - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - www.simonecarletti.com - - - - Controrete - Search Marketing e dintorni - http://controrete.blog.excite.it - http://feeds.feedburner.com/controrete/cFuo - 1 - 1 - 1970-01-01 00:00:00 GMT - - www.simonecarletti.com - - - diff --git a/tests/Zend/Service/Technorati/_files/TestCosmosSuccess.xml b/tests/Zend/Service/Technorati/_files/TestCosmosSuccess.xml deleted file mode 100644 index 1f079e9822..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestCosmosSuccess.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - http://www.simonecarletti.com - 949 - 1 - - - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - http://www.simonecarletti.com/blog/index.xml - 85 - 112 - 2007-11-12 20:51:52 GMT - - Superata la diffidenza iniziale (a dire il vero durata meno di 30 minuti) di pagare in anticipo senza alcuna referenza un servizio online, ho ordinato il mio primo template. Tag: design (3) · html (3) · psd (1) Continua la lettura di "PSD to HTML: convertire PSD in (X)HTML " » Scritto da Simone Carletti alle 20:37 Permalink | Commenti (0) | TrackBack (0) Categorie servizi - 2007-11-12 20:53:13 GMT - http://www.simonecarletti.com/mt4/mt-search.cgi?tag=html&blog_id=1 - - - - Gioxx’s Wall - http://gioxx.org - 271 - 774 - 2007-11-12 17:01:29 GMT - - http://gioxx.org/2007/11/05/il-passaggio-a-mac-le-11-risposte/ - Ho intenzione di prendere il modello bianco “non base” (quello con il SuperDrive per intenderci)… quanta ram consigliate di mettergli? Escono di default con 1Gb, ma considerate che mi piacerebbe potersfruttare Parallelsper bene tenendo magari un OS secondario su uno degli “spaces” di Leopard. Su Mercury ho 1 GB di ram, Leopard installato ed una virtuale XP Professional che uso quando ne ho bisogno. I consumi della virtuale si aggirano attorno ai 512 MB di ram - 2007-11-11 20:07:11 GMT - http://www.simonecarletti.com/blog/2007/04/parallels-desktop-overview.php - - - diff --git a/tests/Zend/Service/Technorati/_files/TestDailyCountsError.xml b/tests/Zend/Service/Technorati/_files/TestDailyCountsError.xml deleted file mode 100644 index 3ed53a1549..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestDailyCountsError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Missing required parameter: q - - - diff --git a/tests/Zend/Service/Technorati/_files/TestDailyCountsResultSet.xml b/tests/Zend/Service/Technorati/_files/TestDailyCountsResultSet.xml deleted file mode 100644 index 8180556c78..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestDailyCountsResultSet.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - google - 5 - http://technorati.com/search/google - - - - 2007-11-14 - 29067 - - - 2007-11-13 - 54414 - - - 2007-11-12 - 62171 - - - 2007-11-11 - 43494 - - - 2007-11-10 - 29390 - - - - diff --git a/tests/Zend/Service/Technorati/_files/TestDailyCountsSuccess.xml b/tests/Zend/Service/Technorati/_files/TestDailyCountsSuccess.xml deleted file mode 100644 index c32209dfa1..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestDailyCountsSuccess.xml +++ /dev/null @@ -1,747 +0,0 @@ - - - - - - - - google - 180 - http://technorati.com/search/google - - - - 2007-11-14 - 29067 - - - 2007-11-13 - 54414 - - - 2007-11-12 - 62171 - - - 2007-11-11 - 43494 - - - 2007-11-10 - 29390 - - - 2007-11-09 - 35589 - - - 2007-11-08 - 37758 - - - 2007-11-07 - 40545 - - - 2007-11-06 - 45783 - - - 2007-11-05 - 46159 - - - 2007-11-04 - 35774 - - - 2007-11-03 - 30016 - - - 2007-11-02 - 24662 - - - 2007-11-01 - 16893 - - - 2007-10-31 - 30178 - - - 2007-10-30 - 30917 - - - 2007-10-29 - 29358 - - - 2007-10-28 - 23700 - - - 2007-10-27 - 25742 - - - 2007-10-26 - 29412 - - - 2007-10-25 - 30129 - - - 2007-10-24 - 27235 - - - 2007-10-23 - 26485 - - - 2007-10-22 - 23708 - - - 2007-10-21 - 18664 - - - 2007-10-20 - 12918 - - - 2007-10-19 - 12283 - - - 2007-10-18 - 18798 - - - 2007-10-17 - 17870 - - - 2007-10-16 - 27321 - - - 2007-10-15 - 20955 - - - 2007-10-14 - 17277 - - - 2007-10-13 - 15732 - - - 2007-10-12 - 22193 - - - 2007-10-11 - 23967 - - - 2007-10-10 - 24105 - - - 2007-10-09 - 25827 - - - 2007-10-08 - 22879 - - - 2007-10-07 - 16434 - - - 2007-10-06 - 14722 - - - 2007-10-05 - 20060 - - - 2007-10-04 - 22368 - - - 2007-10-03 - 22624 - - - 2007-10-02 - 22918 - - - 2007-10-01 - 23662 - - - 2007-09-30 - 18929 - - - 2007-09-29 - 17368 - - - 2007-09-28 - 22745 - - - 2007-09-27 - 25251 - - - 2007-09-26 - 25507 - - - 2007-09-25 - 25666 - - - 2007-09-24 - 27322 - - - 2007-09-23 - 22022 - - - 2007-09-22 - 20777 - - - 2007-09-21 - 23448 - - - 2007-09-20 - 23264 - - - 2007-09-19 - 25960 - - - 2007-09-18 - 27563 - - - 2007-09-17 - 26225 - - - 2007-09-16 - 22655 - - - 2007-09-15 - 21077 - - - 2007-09-14 - 26217 - - - 2007-09-13 - 26792 - - - 2007-09-12 - 23027 - - - 2007-09-11 - 23723 - - - 2007-09-10 - 24347 - - - 2007-09-09 - 19166 - - - 2007-09-08 - 17218 - - - 2007-09-07 - 22143 - - - 2007-09-06 - 24576 - - - 2007-09-05 - 24807 - - - 2007-09-04 - 24835 - - - 2007-09-03 - 24501 - - - 2007-09-02 - 24578 - - - 2007-09-01 - 22953 - - - 2007-08-31 - 26727 - - - 2007-08-30 - 25074 - - - 2007-08-29 - 24254 - - - 2007-08-28 - 26515 - - - 2007-08-27 - 26111 - - - 2007-08-26 - 20638 - - - 2007-08-25 - 18115 - - - 2007-08-24 - 22584 - - - 2007-08-23 - 25020 - - - 2007-08-22 - 27988 - - - 2007-08-21 - 25995 - - - 2007-08-20 - 24731 - - - 2007-08-19 - 18361 - - - 2007-08-18 - 16598 - - - 2007-08-17 - 20153 - - - 2007-08-16 - 21720 - - - 2007-08-15 - 21802 - - - 2007-08-14 - 22947 - - - 2007-08-13 - 21967 - - - 2007-08-12 - 16542 - - - 2007-08-11 - 14987 - - - 2007-08-10 - 19414 - - - 2007-08-09 - 18989 - - - 2007-08-08 - 21348 - - - 2007-08-07 - 22020 - - - 2007-08-06 - 22715 - - - 2007-08-05 - 17146 - - - 2007-08-04 - 15892 - - - 2007-08-03 - 21480 - - - 2007-08-02 - 22276 - - - 2007-08-01 - 21715 - - - 2007-07-31 - 21008 - - - 2007-07-30 - 21698 - - - 2007-07-29 - 15858 - - - 2007-07-28 - 13813 - - - 2007-07-27 - 18962 - - - 2007-07-26 - 17607 - - - 2007-07-25 - 17295 - - - 2007-07-24 - 17154 - - - 2007-07-23 - 21576 - - - 2007-07-22 - 15726 - - - 2007-07-21 - 13455 - - - 2007-07-20 - 19614 - - - 2007-07-19 - 20714 - - - 2007-07-18 - 20527 - - - 2007-07-17 - 22526 - - - 2007-07-16 - 22344 - - - 2007-07-15 - 16120 - - - 2007-07-14 - 14508 - - - 2007-07-13 - 18782 - - - 2007-07-12 - 22156 - - - 2007-07-11 - 22275 - - - 2007-07-10 - 21997 - - - 2007-07-09 - 22977 - - - 2007-07-08 - 15616 - - - 2007-07-07 - 13719 - - - 2007-07-06 - 18747 - - - 2007-07-05 - 19326 - - - 2007-07-04 - 17480 - - - 2007-07-03 - 21735 - - - 2007-07-02 - 21540 - - - 2007-07-01 - 20069 - - - 2007-06-30 - 17006 - - - 2007-06-29 - 19905 - - - 2007-06-28 - 21225 - - - 2007-06-27 - 21596 - - - 2007-06-26 - 22021 - - - 2007-06-25 - 21391 - - - 2007-06-24 - 15930 - - - 2007-06-23 - 13730 - - - 2007-06-22 - 18214 - - - 2007-06-21 - 20504 - - - 2007-06-20 - 22849 - - - 2007-06-19 - 23485 - - - 2007-06-18 - 21793 - - - 2007-06-17 - 16178 - - - 2007-06-16 - 16053 - - - 2007-06-15 - 20732 - - - 2007-06-14 - 21946 - - - 2007-06-13 - 22717 - - - 2007-06-12 - 23057 - - - 2007-06-11 - 23347 - - - 2007-06-10 - 17675 - - - 2007-06-09 - 14928 - - - 2007-06-08 - 19405 - - - 2007-06-07 - 21356 - - - 2007-06-06 - 21845 - - - 2007-06-05 - 21843 - - - 2007-06-04 - 23465 - - - 2007-06-03 - 18988 - - - 2007-06-02 - 17831 - - - 2007-06-01 - 21835 - - - 2007-05-31 - 25020 - - - 2007-05-30 - 24503 - - - 2007-05-29 - 24012 - - - 2007-05-28 - 21886 - - - 2007-05-27 - 16315 - - - 2007-05-26 - 15197 - - - 2007-05-25 - 19829 - - - 2007-05-24 - 22112 - - - 2007-05-23 - 23377 - - - 2007-05-22 - 22755 - - - 2007-05-21 - 22927 - - - 2007-05-20 - 17978 - - - 2007-05-19 - 15233 - - - - diff --git a/tests/Zend/Service/Technorati/_files/TestError.xml b/tests/Zend/Service/Technorati/_files/TestError.xml deleted file mode 100644 index 721513b9c0..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestError.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - Something weird happens! - - - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestGetInfoError.xml b/tests/Zend/Service/Technorati/_files/TestGetInfoError.xml deleted file mode 100644 index af020fa21d..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestGetInfoError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Username is a required field. - - - diff --git a/tests/Zend/Service/Technorati/_files/TestGetInfoResult.xml b/tests/Zend/Service/Technorati/_files/TestGetInfoResult.xml deleted file mode 100644 index 4947c215f4..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestGetInfoResult.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - weppos - Simone - Carletti - - - - coComment - - http://www.cocomment.com/comments/weppos - http://cocomment.com/myrss2/weppos.rss - 2 - 2 - 2007-09-18 07:58:43 GMT - 2929077 - 0.0 - 0.0 - - - - - RSS World - Un mondo dedicato al formato RSS, Atom e Blog - http://www.rss-world.info - Dedicato ai formati RSS e Atom propone informazioni, articoli e risorse sul linguaggio con approfondimenti su blog e podcast. - http://www.rss-world.info/feed/risorse.xml - http://www.rss-world.info/feed/news.xml - 121 - 285 - 2006-11-03 14:08:11 GMT - 64696 - 0.0 - 0.0 - 26230 - - - - - diff --git a/tests/Zend/Service/Technorati/_files/TestGetInfoSuccess.xml b/tests/Zend/Service/Technorati/_files/TestGetInfoSuccess.xml deleted file mode 100644 index eb76023f79..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestGetInfoSuccess.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - weppos - Simone - Carletti - - - - coComment - - http://www.cocomment.com/comments/weppos - http://cocomment.com/myrss2/weppos.rss - 2 - 2 - 2007-09-18 07:58:43 GMT - 2929077 - 0.0 - 0.0 - - - - - RSS World - Un mondo dedicato al formato RSS, Atom e Blog - http://www.rss-world.info - Dedicato ai formati RSS e Atom propone informazioni, articoli e risorse sul linguaggio con approfondimenti su blog e podcast. - http://www.rss-world.info/feed/risorse.xml - http://www.rss-world.info/feed/news.xml - 121 - 285 - 2006-11-03 14:08:11 GMT - 64696 - 0.0 - 0.0 - 26230 - - - - - Vino e Salute: Il potere curativo del vino - http://www.vino-salute.com - Un viaggio alla scoperta dei poteri terapeutici, degli effetti benefici e curativi del vino sul nostro organismo. - 2 - 2 - 2007-10-19 04:42:34 GMT - 2929077 - 0.0 - 0.0 - 26230 - - - - - ASP Stats Generator Blog - http://blog.asp-stats.com - http://blog.asp-stats.com/index.php/feed/ - 1 - 7 - 2006-06-22 12:03:49 GMT - 2929077 - 0.0 - 0.0 - 26110 - - - - - Simone Carletti's Blog - http://www.simonecarletti.com/blog - Un piccolo spazio nel web dedicato a marketing, feed e motori di ricerca. - http://www.simonecarletti.com/blog/index.xml - 86 - 114 - 2007-11-14 19:45:06 GMT - 96928 - 41.706 - 12.69 - 26230 - - - - - Daily Feed: Directory di blog e feed Rss/Atom - http://dailyfeed.rss-world.info - Directory multitematica di siti che propongono feed Atom ed RSS. - http://dailyfeed.rss-world.info/index.xml - http://www.rss-world.info/feed/news.xml - 2 - 2 - 2007-08-13 09:59:20 GMT - 2929077 - 0.0 - 0.0 - 26230 - - - - - diff --git a/tests/Zend/Service/Technorati/_files/TestKeyInfoError.xml b/tests/Zend/Service/Technorati/_files/TestKeyInfoError.xml deleted file mode 100644 index 3e96cafdf7..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestKeyInfoError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid key. Please visit http://technorati.com/developers/apikey.html to obtain a valid key. - - - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestKeyInfoResult.xml b/tests/Zend/Service/Technorati/_files/TestKeyInfoResult.xml deleted file mode 100644 index 704304d610..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestKeyInfoResult.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - 27 - 1500 - - - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestKeyInfoSuccess.xml b/tests/Zend/Service/Technorati/_files/TestKeyInfoSuccess.xml deleted file mode 100644 index b1e59dfcda..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestKeyInfoSuccess.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - 0 - 500 - - - \ No newline at end of file diff --git a/tests/Zend/Service/Technorati/_files/TestSearchResultSet.xml b/tests/Zend/Service/Technorati/_files/TestSearchResultSet.xml deleted file mode 100644 index fa52e9c423..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestSearchResultSet.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - google - 4298362 - - - - - Mi otro blog… - http://blogs.eurielec.etsit.upm.es/miotroblog - http://blogs.eurielec.etsit.upm.es/miotroblog/?feed=rss2 - - 12 - 20 - 2007-11-14 22:18:04 GMT - - El SDK de Android ya está disponible - [ Android]Este pasado lunes se publicó el SDK (Software Development Kit) de Android, el paquete de software para móviles presentado por <strong class="keyword">Google</strong> y la Open Handset Alliance ... que cualquier desarrollador pueda construir aplicaciones para Android, se puede descargar de <strong class="keyword">Google</strong> Code, dónde - 2007-11-14 22:18:04 GMT - http://blogs.eurielec.etsit.upm.es/miotroblog/?p=271 - - - - インフォトップでバクバク稼ぐ - http://infotop60-02.269g.net - http://infotop60-02.269g.net/index.rdf - - 0 - 0 - 2007-11-14 22:11:46 GMT - - 質の超濃い読者をどかんと5000件集めます〔インフォトップ アフィリエイト〕 - 出現パターンしかなかった!?負ける理由が見つからない・徹底したリスク管理で、女性や初めての方でも安心して取り組めますインフォトップ全商材対応!!完全自動ブログ更新ツール!! きっとあなたのアフィリエイト生活・・ 楽しくないでしょやっと アフィリエイト で 稼ぐ ことが出来ることを【確信】したからです 私が今まで、 アフィリエイト をする時には、 インフォトップ 、 インフォカート 、他にも色々 ASP を使ってきましたが… ここまで好条件の ASP超簡単 毎日 seesaa ブログアフィリエイト aaa 記事 <strong class="keyword">GooGle</strong> 再販 顧客心理 sexi RSS 主婦 株 オークション ライティング せどり sns fc2 メール 万 ネット 稼ぐ 初心者 億万長者 知恵蔵 モバ - 2007-11-14 22:11:46 GMT - http://infotop60-02.269g.net/article/6594548.html - - - - Tecno Wappy - http://tecno.wappy.ws - http://feeds.feedburner.com/tecno-wappy - - 19 - 795 - 2007-11-14 22:16:55 GMT - - AdSense: Cambios en las zonas de los clics - AdSense: Cambios en las zonas de los clics Por Nicolás — sin comentarios » Por medio del Blog de Dirson y una entrada en sus foros, nos enteramos que <strong class="keyword">Google</strong> AdSense esta llevando a cabo ciertas modificaciones en el comportamiento ... desde hace unas cuantas semanas atrás, por lo técnicos de <strong class="keyword">Google</strong>. El ajuste que ha hecho <strong class="keyword">Google</strong> es - 2007-11-14 22:16:55 GMT - http://tecno.wappy.ws/2007/11/15/adsense-cambios-en-las-zonas-de-los-clics.html - - - diff --git a/tests/Zend/Service/Technorati/_files/TestSearchSuccess.xml b/tests/Zend/Service/Technorati/_files/TestSearchSuccess.xml deleted file mode 100644 index 080bc2a11c..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestSearchSuccess.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - google - 4298362 - - - - - Mi otro blog… - http://blogs.eurielec.etsit.upm.es/miotroblog - http://blogs.eurielec.etsit.upm.es/miotroblog/?feed=rss2 - - 12 - 20 - 2007-11-14 22:18:04 GMT - - El SDK de Android ya está disponible - [ Android]Este pasado lunes se publicó el SDK (Software Development Kit) de Android, el paquete de software para móviles presentado por <strong class="keyword">Google</strong> y la Open Handset Alliance ... que cualquier desarrollador pueda construir aplicaciones para Android, se puede descargar de <strong class="keyword">Google</strong> Code, dónde - 2007-11-14 22:18:04 GMT - http://blogs.eurielec.etsit.upm.es/miotroblog/?p=271 - - - - Quick Aid For Everyone - http://quickaid4me.com - - - 1 - 2 - 2007-11-14 22:17:28 GMT - - KitchenAid Stand Mixer Owners Manual - KitchenAid Stand Mixer Owners Manual by Kitchen aid stand mixer Converting Your Recipe for the Mixer The mixing instructions for recipes in this ... Mixer Owners Manual at <strong class="keyword">Google</strong> Blog Search: kitchen aid stand mixer Tag: Kitchen aid stand mixer - 2007-11-14 22:17:28 GMT - http://quickaid4me.com/category/kitchen-aid-stand-mixer/224/kitchenaid-stand-mixer-owners-manual/ - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTagError.xml b/tests/Zend/Service/Technorati/_files/TestTagError.xml deleted file mode 100644 index f856f41c77..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTagError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid request. - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTagResultSet.xml b/tests/Zend/Service/Technorati/_files/TestTagResultSet.xml deleted file mode 100644 index ed024815d4..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTagResultSet.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - google - 268877 - 1812 - 1 - 3 - 2.109 - - - - Apple Rocker Report - http://apple.rockerreport.com - http://apple.rockerreport.com/blog/1/feed - - 197 - 17 - 2007-11-14 22:01:43 - - - Apple number one when you type "store" - Type "store" in Google and no you do not get Google store as the number one result, but in fact the Apple store comes up, wow! - 2007-11-14 22:01:43 - 2007-11-14 22:02:11 - http://apple.rockerreport.com/apple_number_one_when_you_type_store - - - - ScienceRoll - http://scienceroll.com - - - 1341 - 357 - 2007-11-14 21:52:11 - - - Bertalan - Meskó - NCurse - A journey inside medicine and genetics. I try to make medicine, genetics more readable even for those who don't like these too much. And I also write about pop-medicine. - - http://static.technorati.com/progimages/photo.jpg?uid=419980 - - - Permalink for : VerveEarth: Locate Your Blog! - VerveEarth: Locate Your Blog! Posted by Bertalan Meskó in Community Site, Google, RSS, Web 2.0. - 2007-11-14 21:52:11 - 2007-11-14 21:57:59 - http://scienceroll.com/2007/11/14/verveearth-locate-your-blog/ - - - - Linux, Open Source, Mandriva :: thecamels.org :: Artykuły, Newsy, Download - http://thecamels.org - http://thecamels.org/feed/ - http://thecamels.org/feed/atom/ - 28 - 11 - 2007-11-14 21:29:39 - - - Luka w Firefoksie obejmuje użytkowników Gmail - Odkryta dziura w przeglądarce Firefox związana z protokołem JAR pozwala na wykorzystanie jej w celu - 2007-11-14 21:47:54 - 2007-11-14 21:51:46 - http://thecamels.org/2007/11/14/luka-w-firefoksie-obejmuje-uzytkownikow-gmail/ - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTagSuccess.xml b/tests/Zend/Service/Technorati/_files/TestTagSuccess.xml deleted file mode 100644 index c117feae39..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTagSuccess.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - google - 268877 - - 1 - 2 - 2.109 - - - - Apple Rocker Report - http://apple.rockerreport.com - http://apple.rockerreport.com/blog/1/feed - - 197 - 17 - 2007-11-14 22:01:43 - - - Apple number one when you type "store" - Type "store" in Google and no you do not get Google store as the number one result, but in fact the Apple store comes up, wow! - 2007-11-14 22:01:43 - 2007-11-14 22:02:11 - http://apple.rockerreport.com/apple_number_one_when_you_type_store - - - - Chismes Calientes - http://chismescalientitos.blogspot.com - - http://chismescalientitos.blogspot.com/feeds/posts/default - 4 - 3 - 2007-11-14 21:57:31 - - - - - jmiguelus - Chismes atrevidos y escándalos de la farándula mundial. - - http://static.technorati.com/progimages/photo.jpg?uid=794083 - - - Fotos hot de Beyoncé escandaliza a vecinos - [IMG ] Un poster en el que figura Beyonce Knowles ha sido etiquetado como obsceno por indignados res - 2007-11-14 21:57:31 - 2007-11-14 22:01:06 - http://chismescalientitos.blogspot.com/2007/11/fotos-hot-de-beyonc-escandaliza-vecinos.html - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTagsResultSet.xml b/tests/Zend/Service/Technorati/_files/TestTagsResultSet.xml deleted file mode 100644 index 09200925d2..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTagsResultSet.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - 3 - - - 練習用 - 19655999 - - - 未分類 - 9095407 - - - Weblog - 8336350 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTopTagsError.xml b/tests/Zend/Service/Technorati/_files/TestTopTagsError.xml deleted file mode 100644 index 111a369d3b..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTopTagsError.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - Invalid key. Please visit http://technorati.com/developers/apikey.html to obtain a valid key. - - - diff --git a/tests/Zend/Service/Technorati/_files/TestTopTagsSuccess.xml b/tests/Zend/Service/Technorati/_files/TestTopTagsSuccess.xml deleted file mode 100644 index 454ca74d85..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestTopTagsSuccess.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - 20 - - - 練習用 - 19655999 - - - 未分類 - 9095407 - - - Weblog - 8336350 - - - Life - 6870173 - - - Music - 3693811 - - - News - 2740259 - - - Blogging - 1876351 - - - Writing and poetry - 1782247 - - - 日常 - 1653909 - - - 雑記 - 1581913 - - - Romance and Relationships - 1551242 - - - Friends - 1296840 - - - Diary - 1173377 - - - общие - 1157059 - - - その他 - 1071083 - - - Blog - 1015232 - - - ゲーム - 996613 - - - 音楽 - 969464 - - - Politics - 967007 - - - 心情 - 944025 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestWeblog.xml b/tests/Zend/Service/Technorati/_files/TestWeblog.xml deleted file mode 100644 index 2c9ec485a2..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestWeblog.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/atom - http://robyww.blogspot.com/feeds/posts/rss - 71 - 103 - 2007-11-11 08:47:26 GMT - 93473 - - 1 - - rfilippini - Roberto - Filippini - http://static.technorati.com/progimages/photo.jpg?uid=290763 - - - diff --git a/tests/Zend/Service/Technorati/_files/TestWeblogTwoAuthors.xml b/tests/Zend/Service/Technorati/_files/TestWeblogTwoAuthors.xml deleted file mode 100644 index 3cce872599..0000000000 --- a/tests/Zend/Service/Technorati/_files/TestWeblogTwoAuthors.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - Roby Web World Italia - http://robyww.blogspot.com - http://robyww.blogspot.com/feeds/posts/atom - http://robyww.blogspot.com/feeds/posts/rss - 71 - 103 - 2007-11-11 08:47:26 GMT - 93473 - - rfilippini - Roberto - Filippini - http://static.technorati.com/progimages/photo.jpg?uid=290763 - - - Rinzi - Simone - Rinzivillo - http://static.technorati.com/progimages/photo.jpg?uid=377409 - - - diff --git a/tests/runtests.sh b/tests/runtests.sh index f90db4471f..ca0181bd18 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -47,7 +47,7 @@ while [ -n "$1" ] ; do PHPUNIT_GROUPS="" break ;; - Akismet|Amazon|Amazon_Ec2|Amazon_S3|Amazon_Sqs|Audioscrobbler|Delicious|Flickr|LiveDocx|ReCaptcha|Simpy|SlideShare|StrikeIron|Technorati|Twitter|WindowsAzure|Yahoo) + Akismet|Amazon|Amazon_Ec2|Amazon_S3|Amazon_Sqs|Audioscrobbler|Delicious|Flickr|LiveDocx|ReCaptcha|Simpy|SlideShare|StrikeIron|Twitter|WindowsAzure|Yahoo) PHPUNIT_GROUPS="${PHPUNIT_GROUPS:+"$PHPUNIT_GROUPS,"}Zend_Service_$1" shift ;; Ec2|S3)