addSource
- addBibliography
- addBookmark
- addBreak
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addSVG
- addTab
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordFragment
- addWordML
- embedHTML
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createDocx
- createDocxAndDownload
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importChartStyle
- importHeadersAndFooters
- importListStyle
- importStyles
- importStylesWordDefault
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDecimalSymbol
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- removeTemplateVariableImage
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
addSource
ADVANCED / PREMIUM
TRIAL
Inserts a source into the Word document.
Description
public addSource ( string $tag, string $type, array $author, array $info [, array $options = array()] )
This method allows to insert sources into a Word document.
Parameters
tag
Sets the tag name of a source, needed to add a citation.
type
Source type:
- Art
- ArticleInAPeriodical
- Book
- BookSection
- Case
- ConferenceProceedings
- DocumentFromInternetSite
- ElectronicSource
- Film
- InternetSite
- Interview
- JournalArticle
- Misc
- Patent
- Performance
- Report
- SoundRecording
author
- Author
- Editor
- Translator
info
Source information:
- AbbreviatedCaseNumber
- AlbumTitle
- BookTitle
- Broadcaster
- BroadcastTitle
- CaseNumber
- ChapterNumber
- City
- Comments
- ConferenceName
- CountryRegion
- Court
- Day
- DayAccessed
- Department
- Distributor
- Edition
- Institution
- InternetSiteTitle
- Issue
- JournalName
- LCID
- Medium
- Month
- MonthAccessed
- NumberVolumes
- Pages
- PatentNumber
- PeriodicalTitle
- ProductionCompany
- PublicationTitle
- Publisher
- RecordingNumber
- RefOrder
- Reporter
- ShortTitle
- StandardNumber
- StateProvince
- Station
- Theater
- ThesisType
- Title
- Type
- URL
- Version
- Volume
- Year
- YearAccessed
Exceptions
Method not available.
Release notes
- phpdocx 12.0:
- new method.