downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Swish::prepare> <Swish::getMetaList
[edit] Last updated: Fri, 25 May 2012

view this page in

Swish::getPropertyList

(PECL swish >= 0.1.0)

Swish::getPropertyListこのインデックスのプロパティ一覧を取得する

説明

array Swish::getPropertyList ( string $index_name )
警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

パラメータ

index_name

インデックスファイルの名前。

返り値

指定したインデックスのプロパティ一覧を配列で返します。

例1 基本的な Swish::getPropertyList() の例

<?php

try {

    
$swish = new Swish("index.swish-e");
    
$properties $swish->getPropertyList("index.swish-e");
    foreach (
$properties as $prop) {
        echo 
$prop["Name"],"\n";
    }

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

?>

上の例の出力は、 たとえば以下のようになります。

swishreccount
swishrank
swishfilenum
swishdbfile
swishdocpath
swishtitle
swishdocsize
swishlastmodified



add a note add a note User Contributed Notes Swish::getPropertyList
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites