Overview

Packages

  • PHP
  • vsword
    • node
    • parser
      • addesed
    • structure
      • style

Classes

  • AttachVsWord
  • MyInitNode
  • VsWord

Interfaces

  • IBlockContext
  • IInitNode
  • ILineContext
  • INode
  • INodeStyle
  • INodeStyleAdded
  • INodeTextAdded
  • IPNodeStyle
  • IPNodeStyleAdded
  • Overview
  • Package
  • Class
  • Tree

Class VsWord

Class VsWord. The main class is responsible for creating the document.

Package: vsword
Author: v.raskin
Version: 1.0.1
Located at vsword/VsWord.php
Methods summary
public
# __construct( string $from = NULL )

Parameters

$from
string
$from

Throws

Exception
public WordDirDocumentStructureDocFile
# getDocument( )

Get the object responsible for the construction of DOM model document.

Get the object responsible for the construction of DOM model document.

Returns

WordDirDocumentStructureDocFile
public WordDirRelsDirDocumentStructureDocFile
# getRels( )

Get the object responsible for the relationship in the document.

Get the object responsible for the relationship in the document.

Returns

WordDirRelsDirDocumentStructureDocFile
public WordDirStylesStructureDocFile
# getStyle( )

Get the object responsible for the style in the document.

Get the object responsible for the style in the document.

Returns

WordDirStylesStructureDocFile
public AttachVsWord
# getAttachImage( string $fileName )

Snap a picture file to the document.

Snap a picture file to the document.

Parameters

$fileName
string
$fileName

Returns

AttachVsWord

Throws

Exception
public
# load( string $from )

No implementation.

No implementation.

Parameters

$from
string
$from filename

Throws

Exception
public
# saveAs( string $to = 'document.docx' )

Save current object to docx file.

Save current object to docx file.

Parameters

$to
string
$to
protected
# putToZip( ZipArchive $zip, type $list, type $dirContext = NULL )

Parameters

$zip
ZipArchive
$zip
$list
type
$list
$dirContext
type
$dirContext
protected array
# getBaseStructureDocClasses( )

Returns

array
public static
# autoLoad( )

Registers autoload class handler.

Registers autoload class handler.

public static boolean
# handler( string $className )

Handler autoload classes.

Handler autoload classes.

Parameters

$className
string
$className

Returns

boolean
Properties summary
protected array $structure
#
protected WordDirDocumentStructureDocFile $document
#
protected WordDirRelsDirDocumentStructureDocFile $rels
#
protected WordDirStylesStructureDocFile $style
#
protected AttachVsWord[] $stackAttach array()
#
wordx API documentation generated by ApiGen 2.8.0