QueryTemplates
[ class tree: QueryTemplates ] [ index: QueryTemplates ] [ all elements ]

Class: QueryTemplatesSyntax

Source Location: /home/bob/workspace/QueryTemplates/src/QueryTemplatesSyntax.php

Class Overview

phpQueryObject
   |
   --QueryTemplatesSyntaxDOM
      |
      --QueryTemplatesSyntaxValues
         |
         --QueryTemplatesSyntaxCode
            |
            --QueryTemplatesSyntaxConditions
               |
               --QueryTemplatesSyntaxVars
                  |
                  --QueryTemplatesSyntaxGenerators
                     |
                     --QueryTemplatesSyntax

Class extending phpQueryObject with templating methods.


Author(s):


Child classes:

QueryTemplatesParse
Template parsing class.

Inherited Variables

Inherited Methods

Class: QueryTemplatesSyntaxGenerators

QueryTemplatesSyntaxGenerators::formFromValues()
Method formFromVars acts as flexible form helper. It creates customized pure-markup form without the need of suppling a line of markup.
QueryTemplatesSyntaxGenerators::formFromVars()
EXPERIMENTAL - works, but not for production code
QueryTemplatesSyntaxGenerators::inputsFromValues()
Creates markup with INPUT tags and prepends it to form.
QueryTemplatesSyntaxGenerators::saveAsVar()
QueryTemplatesSyntaxGenerators::saveTextAsVar()
QueryTemplatesSyntaxGenerators::valuesToVars()
QueryTemplatesSyntaxGenerators::varsFromStack()
Saves markupOuter() as value of variable $var avaible in template scope.
QueryTemplatesSyntaxGenerators::varsFromStackText()
Saves text() as value of variable $var avaible in template scope.
QueryTemplatesSyntaxGenerators::varsFromValues()
Behaves as var_export, dumps variables from $varsArray as $key = value for later use during template execution. Variables are prepended into selected elemets.
QueryTemplatesSyntaxGenerators::_formFromVars_CodeValue()

Class: QueryTemplatesSyntaxVars

QueryTemplatesSyntaxVars::loop()
QueryTemplatesSyntaxVars::loopOne()
QueryTemplatesSyntaxVars::loopSeparate()
QueryTemplatesSyntaxVars::valuesToSelector()
Injects markup from $values' content (rows or attributes) into nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorAfter()
Injects markup from $values' content (rows or attributes) after nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorAppend()
Injects markup from $values' content (rows or attributes) at the end of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorAttr()
Injects markup from $values' content (rows or attributes) as attribute of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorBefore()
Injects markup from $values' content (rows or attributes) before nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorPrepend()
Injects markup from $values' content (rows or attributes) at the beggining of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::valuesToSelectorReplace()
Injects markup from $values' content (rows or attributes) replacing nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varPrint()
Prints variable $varName as matched elements' content.
QueryTemplatesSyntaxVars::varPrintAfter()
Prints variable $varName after matched elements.
QueryTemplatesSyntaxVars::varPrintAppend()
Prints variable $varName on the end of matched elements.
QueryTemplatesSyntaxVars::varPrintAttr()
Prints variable $varName as attribute $attr of matched elements.
QueryTemplatesSyntaxVars::varPrintBefore()
Prints variable $varName before matched elements.
QueryTemplatesSyntaxVars::varPrintPrepend()
Prints variable $varName on beggining of matched elements.
QueryTemplatesSyntaxVars::varPrintReplace()
Prints variable $varName replacing matched elements.
QueryTemplatesSyntaxVars::varsToForm()
Injects executable code which toggles form fields values and selection states according to value of variable $varName.
QueryTemplatesSyntaxVars::varsToLoop()
Wraps selected elements with executable code iterating $varName as $rowName.
QueryTemplatesSyntaxVars::varsToLoopFirst()
Wraps selected elements with executable code iterating $varName as $rowName.
QueryTemplatesSyntaxVars::varsToLoopSeparate()
Wraps selected elements with executable code iterating $varName as $rowName.
QueryTemplatesSyntaxVars::varsToSelector()
Injects executable code printing variable's fields inside nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorAfter()
Injects executable code printing variable's fields after nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorAppend()
Injects executable code printing variable's fields at the end of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorAttr()
Injects executable code printing variable's fields as attribute of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorBefore()
Injects executable code printing variable's fields before nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorPrepend()
Injects executable code printing variable's fields at the beggining of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToSelectorReplace()
Injects executable code printing variable's fields replacing nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxVars::varsToStack()
Injects executable code printing variable's fields inside actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackAfter()
Injects executable code printing variable's fields after actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackAppend()
Injects executable code printing variable's fields at the end of actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackAttr()
Injects executable code printing variable's fields as attribute of actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackBefore()
Injects executable code printing variable's fields before actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackPrepend()
Injects executable code printing variable's fields at the beggining of actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::varsToStackReplace()
Injects executable code printing variable's fields replacing actually matched nodes. Second param needs to be wrapped with array_keys for non-assosiative arrays.
QueryTemplatesSyntaxVars::_valuesToSelector()
QueryTemplatesSyntaxVars::_varPrint()
QueryTemplatesSyntaxVars::_varsParseFields()
QueryTemplatesSyntaxVars::_varsToLoop()
QueryTemplatesSyntaxVars::_varsToSelector()
Internal method.
QueryTemplatesSyntaxVars::_varsToStack()

Class: QueryTemplatesSyntaxConditions

QueryTemplatesSyntaxConditions::elseIfCode()
QueryTemplatesSyntaxConditions::elseIfNotVar()
Wraps selected tag with PHP "else if" statement checking if $var evaluates to FALSE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::elseIfPHP()
Wraps selected tag with PHP "else if" statement containing $code as condition.
QueryTemplatesSyntaxConditions::elseIfVar()
Wraps selected tag with PHP "else if" statement checking if $var evaluates to true. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::elsePHP()
Wraps selected tag with PHP "else" statement.
QueryTemplatesSyntaxConditions::elseStatement()
TODO description
QueryTemplatesSyntaxConditions::endOnly()
TODO docs
QueryTemplatesSyntaxConditions::ifCode()
TODO doc
QueryTemplatesSyntaxConditions::ifNotVar()
Wraps selected tag with PHP "if" statement checking if $var evaluates to FALSE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::ifPHP()
Wraps selected tag with PHP "if" statement containing $code as condition.
QueryTemplatesSyntaxConditions::ifVar()
Wraps selected tag with PHP "if" statement checking if $var evaluates to TRUE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::onlyIf()
TODO docs
QueryTemplatesSyntaxConditions::onlyIfNot()
TODO docs
QueryTemplatesSyntaxConditions::onlyJS()
TODO Move to jsCode plugin.
QueryTemplatesSyntaxConditions::onlyPHP()
Honors code between onlyPHP and endOnly, only for PHP templates.
QueryTemplatesSyntaxConditions::tagToElseIfNotVar()
Replaces selected tag with PHP "else if" statement checking if $var evaluates to FALSE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::tagToElseIfPHP()
Replaces selected tag with PHP "else if" statement containing $code as condition.
QueryTemplatesSyntaxConditions::tagToElseIfVar()
Replaces selected tag with PHP "else if" statement checking if $var evaluates to TRUE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::tagToElsePHP()
QueryTemplatesSyntaxConditions::tagToElseStatement()
QueryTemplatesSyntaxConditions::tagToIfNotVar()
Replaces selected tag with PHP "if" statement checking if $var evaluates to FALSE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::tagToIfPHP()
Replaces selected tag with PHP "if" statement containing $code as condition.
QueryTemplatesSyntaxConditions::tagToIfVar()
Replaces selected tag with PHP "if" statement checking if $var evaluates to TRUE. $var must be available inside template's scope.
QueryTemplatesSyntaxConditions::_if()
QueryTemplatesSyntaxConditions::_tagToElse()

Class: QueryTemplatesSyntaxCode

QueryTemplatesSyntaxCode::codeToSelector()
Injects raw executable code inside nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxCode::codeToSelectorAfter()
Injects raw executable code after nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxCode::codeToSelectorAppend()
Injects raw executable code at the end of nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxCode::codeToSelectorAttr()
Injects raw executable code inside attribute of nodes matched by selector.
QueryTemplatesSyntaxCode::codeToSelectorBefore()
Injects raw executable code before nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxCode::codeToSelectorPrepend()
Injects raw executable code at the beggining of nodes matched by selector.
QueryTemplatesSyntaxCode::codeToSelectorReplace()
Injects raw executable code replacing nodes matched by selector. Method uses actually matched nodes as root for the query.
QueryTemplatesSyntaxCode::codeToStack()
Injects raw executable code inside actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackAfter()
Injects raw executable code after actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackAppend()
Injects raw executable code at the beggining of actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackAttr()
Injects raw executable code inside attribute of actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackBefore()
Injects raw executable code before actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackPrepend()
Injects raw executable code at the end of actually matched nodes.
QueryTemplatesSyntaxCode::codeToStackReplace()
Injects raw executable code replacing actually matched nodes.
QueryTemplatesSyntaxCode::_codeToSelector()
QueryTemplatesSyntaxCode::_codeToStack()

Class: QueryTemplatesSyntaxValues

QueryTemplatesSyntaxValues::valuesToForm()
Toggles form fields values and selection states according to static values from $values.
QueryTemplatesSyntaxValues::valuesToLoop()
Method loops provided $values on actually selected nodes. Each time new row is inserted, provided callback is triggered with $dataRow, $node and $dataIndex.
QueryTemplatesSyntaxValues::valuesToLoopBefore()
Method loops provided $values on actually selected nodes. Each time new row is inserted, provided callback is triggered with $dataRow, $node and $dataIndex.
QueryTemplatesSyntaxValues::valuesToLoopFirst()
Method loops provided $values on actually selected nodes. Each time new row is inserted, provided callback is triggered with $dataRow, $node and $dataIndex.
QueryTemplatesSyntaxValues::valuesToLoopSeparate()
Method loops provided $values on actually selected nodes. Each time new row is inserted, provided callback is triggered with $dataRow, $node and $dataIndex.
QueryTemplatesSyntaxValues::valuesToStack()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackAfter()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackAppend()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackAttr()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackBefore()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackPrepend()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::valuesToStackReplace()
Injects markup from $values' content (rows or attributes) inside actually selected nodes.
QueryTemplatesSyntaxValues::_valuesToLoop()
QueryTemplatesSyntaxValues::_valuesToStack()

Class: QueryTemplatesSyntaxDOM

QueryTemplatesSyntaxDOM::attrAppend()
QueryTemplatesSyntaxDOM::attrPrepend()
QueryTemplatesSyntaxDOM::stackToMethod()
Returns array being result of running $method on all stack elements.
QueryTemplatesSyntaxDOM::unWrap()
Removes selected element and moves it's children into parent node.

Class: phpQueryObject

phpQueryObject::__construct()
Enter description here...
phpQueryObject::add()
Enter description here...
phpQueryObject::addClass()
Enter description here...
phpQueryObject::addClassPHP()
Enter description here...
phpQueryObject::after()
Enter description here...
phpQueryObject::afterPHP()
Enter description here...
phpQueryObject::ancestors()
Enter description here...
phpQueryObject::andSelf()
Enter description here...
phpQueryObject::append()
Enter description here...
phpQueryObject::appendPHP()
Enter description here...
phpQueryObject::appendTo()
Enter description here...
phpQueryObject::attr()
phpQueryObject::attrEvents()
phpQueryObject::attrPHP()
Enter description here...
phpQueryObject::before()
Enter description here...
phpQueryObject::beforePHP()
Enter description here...
phpQueryObject::bind()
Binds a handler to one or more events (like click) for each matched element.
phpQueryObject::callback()
Run callback on actual object.
phpQueryObject::change()
Enter description here...
phpQueryObject::children()
Enter description here...
phpQueryObject::click()
Enter description here...
phpQueryObject::contents()
Enter description here...
phpQueryObject::contentsUnwrap()
Enter description here...
phpQueryObject::count()
phpQueryObject::css()
Enter description here...
phpQueryObject::current()
phpQueryObject::debug()
phpQueryObject::documentFragment()
phpQueryObject::dump()
Dump htmlOuter and preserve chain. Usefull for debugging.
phpQueryObject::dumpDie()
Dump htmlOuter and stop script execution. Usefull for debugging.
phpQueryObject::dumpLength()
phpQueryObject::dumpTree()
phpQueryObject::dumpWhois()
phpQueryObject::each()
Enter description here...
phpQueryObject::elementsContainsNode()
phpQueryObject::end()
Enter description here...
phpQueryObject::eq()
Enter description here...
phpQueryObject::extend()
Deprecated, use $pq->plugin() instead.
phpQueryObject::filter()
Enter description here...
phpQueryObject::filterCallback()
Enter description here...
phpQueryObject::find()
Enter description here...
phpQueryObject::get()
Return matched DOM nodes.
phpQueryObject::getDocument()
Returns object with stack set to document root.
phpQueryObject::getDocumentID()
Get object's Document ID.
phpQueryObject::getDocumentIDRef()
Saves object's DocumentID to $var by reference.
phpQueryObject::getDOMDocument()
phpQueryObject::getElementSiblings()
phpQueryObject::getNodeAttrs()
phpQueryObject::getNodeXpath()
Returns node's XPath.
phpQueryObject::getString()
Return matched DOM nodes.
phpQueryObject::getStrings()
Return matched DOM nodes.
phpQueryObject::hasClass()
Enter description here...
phpQueryObject::hide()
phpQueryObject::html()
Enter description here...
phpQueryObject::htmlOuter()
Enter description here...
phpQueryObject::index()
Enter description here...
phpQueryObject::insert()
Internal insert method. Don't use it.
phpQueryObject::insertAfter()
Enter description here...
phpQueryObject::insertBefore()
Enter description here...
phpQueryObject::is()
Enter description here...
phpQueryObject::isChar()
Determines if $char is really a char.
phpQueryObject::isHTML()
phpQueryObject::isRegexp()
phpQueryObject::isRoot()
phpQueryObject::isXHTML()
phpQueryObject::isXML()
phpQueryObject::key()
phpQueryObject::length()
Enter description here...
phpQueryObject::load()
Enter description here...
phpQueryObject::map()
Enter description here...
phpQueryObject::markup()
jQuey difference
phpQueryObject::markupEvents()
phpQueryObject::markupOuter()
jQuey difference
phpQueryObject::markupOuterPHP()
TODO doc
phpQueryObject::markupPHP()
TODO doc
phpQueryObject::matchClasses()
Enter description here...
phpQueryObject::merge()
phpQueryObject::newInstance()
Returns new instance of actual class.
phpQueryObject::next()
Double-function method.
phpQueryObject::nextAll()
phpQueryObject::not()
Enter description here...
phpQueryObject::offsetExists()
phpQueryObject::offsetGet()
phpQueryObject::offsetSet()
phpQueryObject::offsetUnset()
phpQueryObject::parent()
Enter description here...
phpQueryObject::parents()
Enter description here...
phpQueryObject::parseSelector()
phpQueryObject::php()
Just like html(), but returns markup with VALID (dangerous) PHP tags.
phpQueryObject::plugin()
Enter description here...
phpQueryObject::prepend()
Enter description here...
phpQueryObject::prependPHP()
Enter description here...
phpQueryObject::prependTo()
Enter description here...
phpQueryObject::prev()
Enter description here...
phpQueryObject::prevAll()
phpQueryObject::pseudoClasses()
phpQueryObject::remove()
Enter description here...
phpQueryObject::removeAttr()
Enter description here...
phpQueryObject::removeClass()
Enter description here...
phpQueryObject::replaceAll()
Enter description here...
phpQueryObject::replaceWith()
Enter description here...
phpQueryObject::replaceWithPHP()
Enter description here...
phpQueryObject::reverse()
Enter description here...
phpQueryObject::rewind()
phpQueryObject::runQuery()
phpQueryObject::serialize()
Enter description here...
phpQueryObject::serializeArray()
Enter description here...
phpQueryObject::show()
phpQueryObject::siblings()
Enter description here...
phpQueryObject::size()
Enter description here...
phpQueryObject::slice()
Enter description here...
phpQueryObject::stack()
Internal stack iterator.
phpQueryObject::stackIsRoot()
phpQueryObject::submit()
Enter description here...
phpQueryObject::switchWith()
Enter description here...
phpQueryObject::text()
Return joined text content.
phpQueryObject::toggleClass()
Enter description here...
phpQueryObject::toReference()
Saves actual object to $var by reference.
phpQueryObject::toRoot()
Enter description here...
phpQueryObject::trigger()
Trigger a type of event on every matched element.
phpQueryObject::triggerHandler()
This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.
phpQueryObject::unbind()
Enter description here...
phpQueryObject::unloadDocument()
Unloads whole document from memory.
phpQueryObject::unQuote()
phpQueryObject::val()
Return form element value.
phpQueryObject::valid()
phpQueryObject::whois()
phpQueryObject::wrap()
Enter description here...
phpQueryObject::wrapAll()
Enter description here...
phpQueryObject::wrapAllOld()
Enter description here...
phpQueryObject::wrapAllPHP()
Enter description here...
phpQueryObject::wrapInner()
Enter description here...
phpQueryObject::wrapInnerPHP()
Enter description here...
phpQueryObject::wrapPHP()
Enter description here...
phpQueryObject::xml()
phpQueryObject::xmlOuter()
phpQueryObject::_clone()
Enter description here...
phpQueryObject::_empty()
Proper name without underscore (just ->empty()) also works.
phpQueryObject::_next()
Safe rename of next().
phpQueryObject::_prev()
Use prev() and next().
phpQueryObject::__call()
phpQueryObject::__get()
phpQueryObject::__loadSuccess()
phpQueryObject::__pseudoClassParam()
phpQueryObject::__toString()
phpQueryObject::___wrapAllCallback()

Class Details

[line 11]
Class extending phpQueryObject with templating methods.



Tags:

author:  Tobiasz Cudnik <tobiasz.cudnik/gmail.com>
link:  http://code.google.com/p/querytemplates/
abstract:  
license:  MIT License


[ Top ]


Documentation generated on Sat, 07 Mar 2009 12:08:12 +0100 by phpDocumentor 1.4.2