Manuál PHP Předcházející Další (no version information, might be only in CVS) Swish->getMetaList --..."/>
Forum und email
Swish->getMetaList

Swish->getMetaList

(no version information, might be only in CVS)

Swish->getMetaList -- Get the list of meta entries for the index

Popis

array Swish->getMetaList ( string index_name )

Varování

Tato funkce je EXPERIMENTÁLNÍ. Chování této funkce, její název a všechno ostatní, co je zde zdokumentováno, se v budoucích verzích PHP může BEZ OHLÁŠENÍ změnit. Berte to v úvahu a používejte tuto funkci na vlastní nebezpečí.

Seznam parametrů

index_name

The name of the index file.

Návratové hodnoty

Returns an array of meta entries for the given index.

Příklady

Příklad 1. Basic Swish->getMetaList() example

<?php

try
{

    
$swish = new Swish("index.swish-e");
    
var_dump($swish->getMetaList("index.swish-e"));

}
catch (SwishException $e) {
    echo
$e->getMessage(), "\n";
}

?>

Výše uvedený příklad vypíše něco jako:

array(1) {
  [0]=>
  array(3) {
    ["Name"]=>
    string(12) "swishdefault"
    ["Type"]=>
    int(0)
    ["ID"]=>
    int(1)
  }
}