Swish->getPropertyList

(no version information, might be only in CVS)

Swish->getPropertyList -- Get the list of properties for the index

说明

array Swish->getPropertyList ( string index_name )

警告

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

参数

index_name

The name of the index file.

返回值

Returns an array of properties for the given index.

范例

例 1. Basic Swish->getPropertyList() example

<?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