\Zend_Search_Lucene_Document_Docx
Docx document.
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Document_Docx
extends Zend_Search_Lucene_Document_OpenXml
{
- // constants
- const SCHEMA_WORDPROCESSINGML = 'http://schemas.openxmlformats.org/wordprocessingml/2006/main';
- // Inherited constants from Zend_Search_Lucene_Document_OpenXml
- const SCHEMA_RELATIONSHIP = 'http://schemas.openxmlformats.org/package/2006/relationships';
- const SCHEMA_OFFICEDOCUMENT = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument';
- const SCHEMA_COREPROPERTIES = 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties';
- const SCHEMA_DUBLINCORE = 'http://purl.org/dc/elements/1.1/';
- const SCHEMA_DUBLINCORETERMS = 'http://purl.org/dc/terms/';
- // methods
- private void __construct()
- public static Zend_Search_Lucene_Document_Docx loadDocxFile()
- // Inherited methods from Zend_Search_Lucene_Document_OpenXml
- protected array extractMetaData()
- protected string absoluteZipPath()
- // Inherited methods from Zend_Search_Lucene_Document
- public string __get()
- public Zend_Search_Lucene_Document addField()
- public array getFieldNames()
- public Zend_Search_Lucene_Field getField()
- public string getFieldValue()
- public string getFieldUtf8Value()
Hierarchy
Constants
Name | Value |
---|---|
SCHEMA_WORDPROCESSINGML | 'http://schemas.openxmlformats.org/wordprocessingml/2006/main' |
SCHEMA_RELATIONSHIP | 'http://schemas.openxmlformats.org/package/2006/relationships' |
SCHEMA_OFFICEDOCUMENT | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument' |
SCHEMA_COREPROPERTIES | 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties' |
SCHEMA_DUBLINCORE | 'http://purl.org/dc/elements/1.1/' |
SCHEMA_DUBLINCORETERMS | 'http://purl.org/dc/terms/' |
Members
protected
- $_fields
—
array
Associative array Zend_Search_Lucene_Field objects where the keys to the array are the names of the fields.
public
- $boost
—
float
Field boost factor It's not stored directly in the index, but affects on normalization factor
Methods
public
- loadDocxFile() — Load Docx document from a file
Inherited from Zend_Search_Lucene_Document_OpenXml
protected
- absoluteZipPath() — Determine absolute zip path
- extractMetaData() — Extract metadata from document
Inherited from Zend_Search_Lucene_Document
public
- __get() — Proxy method for getFieldValue(), provides more convenient access to the string value of a field.
- addField() — Add a field object to this document.
- getField() — Returns Zend_Search_Lucene_Field object for a named field in this document.
- getFieldNames() — Return an array with the names of the fields in this document.
- getFieldUtf8Value() — Returns the string value of a named field in UTF-8 encoding.
- getFieldValue() — Returns the string value of a named field in this document.