docs/core/src/AKlump/LoftDocs/TipueSearch.php
public function addPage(SearchPageData $data)
    {
        $url = $data->getUrl();
        $this->pages[$url] = array(
            'title' => $data->getTitle(),
            'text'  => $data->getContents(),
            'tags'  => $data->getTags(true),
            'url'   => $url,
        );

        return $this;
    }
public function addPage(SearchPageData $data)
    {
        $url = $data->getUrl();
        $this->pages[$url] = array(
            'title' => $data->getTitle(),
            'text'  => $data->getContents(),
            'tags'  => $data->getTags(true),
            'url'   => $url,
        );

        return $this;
    }
public function addPage ( SearchPageData $ data ) { $ url = $ data -> getUrl ( ) ; $ this -> pages [ $ url ] = array ( 'title' => $ data -> getTitle ( ) , 'text' => $ data -> getContents ( ) , 'tags' => $ data -> getTags ( true ) , 'url' => $ url , ) ; return $ this ; }
Adds a page to the index.

@param SearchPageData $data
Adds a page to the index .