Skip to content
tobiasz.cudnik edited this page Dec 2, 2008 · 7 revisions
  1. labels Featured
If you need to write plugin only for simple task, write a *script* using ScriptsPlugin.

Table of Contents

Using plugins

Plugins are loaded using *plugin* method from phpQueryObject or phpQuery static namespace.

Writing plugins

Plugin consist from 2 classes - first extending *phpQueryObjects* (result of pq(); function) and second, extending static *phpQuery::$plugins* namespace. Plugin classes are never intialized, just method calls are forwarded in static way from phpQuery.

Extending phpQueryObject

Extending phpQuery

Clone this wiki locally