Textpattern logo

Help?

TXP Defined Functions

From Textbook

Contents

TXP Defined Functions

About

Plugin developers have TXP functions available to them to help facilitate in the process of coding a plugin. For access to definitions and references to the functions in the TXP source code, go here. Below is a list of all the functions available to developers, purpose of each functions, and examples on proper use.

Functions

The following list of functions is an unorganized list, however a list categorized list by file does exist.

Uncategorized

Backend user interface elements

Functions encapsulating HTML tags, form elements and various other building blocks which are useful for the design of a backend user interface layout. Take a look at /textpattern/include/txp_article.php and other files in that directory to learn from existing code.

Database Layer

Functions for inserts, updates, queries and other database oriented tasks. Provides exception handling and optional debugging output.

Tag Handlers

Functions which execute a <txp:foo> tag by receiving attributes and returning HTML output. Read /textpattern/publish/taghandlers.php to learn and borrow from existing code.

Tag Handler Helpers

Tag Builder

Generate markup for a given <txp:foo> tag from the backend interface.

Textile

Image Handling

Translations [?]...

About Textbook