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

Class: phpQueryObject

Source Location: /home/bob/workspace/phpQuery/phpQuery/phpQueryObject.php

Class Overview


Class representing phpQuery objects.


Author(s):

Implements interfaces:

  • Iterator (internal interface)
  • Countable (internal interface)
  • ArrayAccess (internal interface)

Variables

Methods


Child classes:

QueryTemplatesSyntaxDOM
Class extending phpQueryObject with templating methods.
QueryTemplatesSource
Class handling template source use.
QueryTemplatesSourceQuery
Class handling template source fetching.

Class Details

[line 13]
Class representing phpQuery objects.



Tags:

method:  phpQueryObject clone(): clone()
method:  phpQueryObject empty(): empty()
method:  phpQueryObject next(): next($selector = null)
method:  phpQueryObject prev(): prev($selector = null)
author:  Tobiasz Cudnik <tobiasz.cudnik/gmail.com>


[ Top ]


Class Variables

$charset =  null

[line 22]



Tags:

access:  public

Type:   mixed


[ Top ]

$current =  null

[line 77]

Iterator interface helper



Tags:

access:  protected

Type:   mixed


[ Top ]

$document =  null

[line 21]

DOMDocument class.



Tags:

access:  public

Type:   DOMDocument


[ Top ]

$documentFragment =  true

[line 62]

Indicated if doument is just a fragment (no <html> tag).

Every document is realy a full document, so even documentFragments can be queried against <html>, but getDocument(id)->htmlOuter() will return only contents of <body>.




Tags:

access:  public

Type:   bool


[ Top ]

$documentID =  null

[line 15]



Tags:

access:  public

Type:   mixed


[ Top ]

$documentWrapper =  null

[line 27]



Tags:

access:  public

Type:   DOMDocumentWrapper


[ Top ]

$elements = array()

[line 39]

Stack of selected elements.



Tags:

TODO:  refactor to ->nodes
access:  public

Type:   array


[ Top ]

$elementsBackup = array()

[line 43]



Tags:

access:  protected

Type:   mixed


[ Top ]

$elementsInterator = array()

[line 67]

Iterator interface helper



Tags:

access:  protected

Type:   mixed


[ Top ]

$previous =  null

[line 47]



Tags:

access:  protected

Type:   mixed


[ Top ]

$root = array()

[line 52]



Tags:

TODO:  deprecate
access:  protected

Type:   mixed


[ Top ]

$valid =  false

[line 72]

Iterator interface helper



Tags:

access:  protected

Type:   mixed


[ Top ]

$xpath =  null

[line 33]

XPath interface.



Tags:

access:  public

Type:   DOMXPath


[ Top ]



Class Methods


static method extend [line 2306]

static unknown_type extend( $class $class, [$file $file = null])

Deprecated, use $pq->plugin() instead.



Tags:

deprecated:  
access:  public


Parameters:

$class   $class  
$file   $file  

[ Top ]

static method unQuote [line 1310]

static unknown_type unQuote( $value $value)



Tags:

TODO:  implement in all methods using passed parameters
access:  protected


Parameters:

$value   $value  

[ Top ]

constructor __construct [line 83]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery __construct( $documentID)

Enter description here...



Tags:

access:  public


Overridden in child classes as:

QueryTemplatesParse::__construct()
QueryTemplatesSource::__construct()
QueryTemplatesSourceQuery::__construct()

Parameters:

   $documentID  

[ Top ]

method add [line 2491]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery add( [string|phpQueryObject $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

string|phpQueryObject   $selector  

[ Top ]

method addClass [line 2806]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery addClass( $className)

Enter description here...



Tags:

access:  public


Parameters:

   $className  

[ Top ]

method addClassPHP [line 2824]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery addClassPHP( $className)

Enter description here...



Tags:

access:  public


Parameters:

   $className  

[ Top ]

method after [line 2027]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery after( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method afterPHP [line 2035]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery afterPHP( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method ancestors [line 1941]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery ancestors( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method andSelf [line 2795]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery andSelf( )

Enter description here...



Tags:

access:  public


[ Top ]

method append [line 1950]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery append( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method appendPHP [line 1958]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery appendPHP( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method appendTo [line 1966]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery appendTo( $seletor)

Enter description here...



Tags:

access:  public


Parameters:

   $seletor  

[ Top ]

method attr [line 2635]

void attr( [ $attr = null], [ $value = null])



Tags:

access:  public


Parameters:

   $attr  
   $value  

[ Top ]

method attrEvents [line 2586]

void attrEvents( $attr, $oldAttr, $oldValue, $node)



Tags:

access:  protected


Parameters:

   $attr  
   $oldAttr  
   $oldValue  
   $node  

[ Top ]

method attrPHP [line 2678]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery attrPHP( $attr, $code)

Enter description here...



Tags:

todo:  check CDATA ???
access:  public


Parameters:

   $attr  
   $code  

[ Top ]

method before [line 2001]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery before( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method beforePHP [line 2009]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery beforePHP( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method bind [line 1424]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery bind( unknown_type $type, unknown_type $data, [unknown_type $callback = null])

Binds a handler to one or more events (like click) for each matched element.

Can also bind custom events.




Tags:

TODO:  support more than event in $type (space-separated)
TODO:  support '!' (exclusive) events
access:  public


Parameters:

unknown_type   $type  
unknown_type   $data   Optional
unknown_type   $callback  

[ Top ]

method callback [line 2932]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery callback( $callback, [ $param1 = null], [ $param2 = null], [ $param3 = null])

Run callback on actual object.



Tags:

access:  public


Parameters:

   $callback  
   $param1  
   $param2  
   $param3  

[ Top ]

method change [line 1453]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery change( [ $callback = null])

Enter description here...



Tags:

access:  public


Parameters:

   $callback  

[ Top ]

method children [line 1917]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery children( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method click [line 1473]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery click( [ $callback = null])

Enter description here...



Tags:

access:  public


Parameters:

   $callback  

[ Top ]

method contents [line 1597]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery contents( )

Enter description here...



Tags:

access:  public


[ Top ]

method contentsUnwrap [line 1616]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery contentsUnwrap( )

Enter description here...

jQuery difference.




Tags:

access:  public


[ Top ]

method count [line 1679]

void count( )



Tags:

access:  public



Implementation of:
Countable::count
[ Top ]

method css [line 1369]

phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery css( )

Enter description here...



Tags:

todo:  
access:  public


[ Top ]

method current [line 2983]

void current( )



Tags:

access:  public


Overridden in child classes as:

QueryTemplatesParse::current()
Iterator override to return extended phpQuery object insted of DOMNode.


Implementation of:
Iterator::current
[ Top ]

method debug [line 275]

void debug( $in)



Tags:

access:  protected


Parameters:

   $in  

[ Top ]

method documentFragment [line 131]

void documentFragment( [ $state = null])



Tags:

access:  public


Parameters:

   $state  

[ Top ]

method dump [line 3138]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery dump( )

Dump htmlOuter and preserve chain. Usefull for debugging.



Tags:

access:  public


[ Top ]

method dumpDie [line 3191]

void dumpDie( )

Dump htmlOuter and stop script execution. Usefull for debugging.



Tags:

access:  public


[ Top ]

method dumpLength [line 3155]

void dumpLength( )



Tags:

access:  public


[ Top ]

method dumpTree [line 3164]

void dumpTree( [ $html = true], [ $title = true])



Tags:

access:  public


Parameters:

   $html  
   $title  

[ Top ]

method dumpWhois [line 3146]

void dumpWhois( )



Tags:

access:  public


[ Top ]

method each [line 2917]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery each( array|string $callback, [ $param1 = null], [ $param2 = null], [ $param3 = null], array $scope, array $arg1, array $arg2)

Enter description here...



Tags:

access:  public


Parameters:

array|string   $callback   Expects $node as first param, $index as second
array   $scope   External variables passed to callback. Use compact('varName1', 'varName2'...) and extract($scope)
array   $arg1   Will ba passed as third and futher args to callback.
array   $arg2   Will ba passed as fourth and futher args to callback, and so on...
   $param1  
   $param2  
   $param3  

[ Top ]

method elementsContainsNode [line 2513]

void elementsContainsNode( $nodeToCheck, [ $elementsStack = null])



Tags:

access:  protected


Parameters:

   $nodeToCheck  
   $elementsStack  

[ Top ]

method end [line 1689]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery end( [ $level = 1])

Enter description here...



Tags:

todo:  $level
access:  public


Parameters:

   $level  

[ Top ]

method eq [line 1652]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery eq( $num)

Enter description here...



Tags:

access:  public


Parameters:

   $num  

[ Top ]

method filter [line 1175]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery filter( $selectors, [ $_skipHistory = false])

Enter description here...



Tags:

link:  http://docs.jquery.com/Traversing/filter
access:  public


Parameters:

   $selectors  
   $_skipHistory  

[ Top ]

method filterCallback [line 1154]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery filterCallback( $callback, [ $_skipHistory = false])

Enter description here...

jQuery difference.

Callback:

  • $index int
  • $node DOMNode




Tags:

link:  http://docs.jquery.com/Traversing/filter
access:  public


Parameters:

   $callback  
   $_skipHistory  

[ Top ]

method find [line 690]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery find( $selectors, [ $context = null], [ $noHistory = false])

Enter description here...



Tags:

access:  public


Parameters:

   $selectors  
   $context  
   $noHistory  

[ Top ]

method get [line 480]

array|DOMElement get( [int $index = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Return matched DOM nodes.



Tags:

return:  Single DOMElement or array of DOMElement.
access:  public


Parameters:

int   $index  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method getDocument [line 190]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery getDocument( )

Returns object with stack set to document root.



Tags:

access:  public


[ Top ]

method getDocumentID [line 205]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery getDocumentID( )

Get object's Document ID.



Tags:

access:  public


[ Top ]

method getDocumentIDRef [line 181]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery getDocumentIDRef( &$documentID, unknown_type $domId)

Saves object's DocumentID to $var by reference.

  1.  $myDocumentId;
  2.  phpQuery::newDocument('<div/>')
  3.      ->getDocumentIDRef($myDocumentId)
  4.      ->find('div')->...




Tags:

see:  phpQuery::newDocument
see:  phpQuery::newDocumentFile
access:  public


Parameters:

unknown_type   $domId  
   &$documentID  

[ Top ]

method getDOMDocument [line 197]

DOMDocument getDOMDocument( )



Tags:

access:  public


[ Top ]

method getElementSiblings [line 2398]

void getElementSiblings( $direction, [ $selector = null], [ $limitToOne = false])



Tags:

access:  protected


Parameters:

   $direction  
   $selector  
   $limitToOne  

[ Top ]

method getNodeAttrs [line 2666]

void getNodeAttrs( $node)



Tags:

access:  protected


Parameters:

   $node  

[ Top ]

method getNodeXpath [line 3060]

string getNodeXpath( [unknown_type $oneNode = null], [ $namespace = null])

Returns node's XPath.



Tags:

TODO:  use native getNodePath is avaible
access:  protected


Parameters:

unknown_type   $oneNode  
   $namespace  

[ Top ]

method getString [line 506]

array|string getString( [int $index = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Return matched DOM nodes.

jQuery difference.




Tags:

return:  Returns string if $index != null
todo:  implement callbacks
todo:  return only arrays ?
todo:  maybe other name...
access:  public


Parameters:

int   $index  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method getStrings [line 533]

array|string getStrings( [int $index = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Return matched DOM nodes.

jQuery difference.




Tags:

return:  Returns string if $index != null
todo:  implement callbacks
todo:  return only arrays ?
todo:  maybe other name...
access:  public


Parameters:

int   $index  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method hasClass [line 2841]

bool hasClass( string $className)

Enter description here...



Tags:

access:  public


Parameters:

string   $className  

[ Top ]

method hide [line 1385]

void hide( )



Tags:

todo:  
access:  public


[ Top ]

method html [line 1823]

string|phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery html( [unknown_type $html = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Enter description here...



Tags:

TODO:  force html result
access:  public


Parameters:

unknown_type   $html  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method htmlOuter [line 1866]

String htmlOuter( [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Enter description here...



Tags:

TODO:  force html result
access:  public


Parameters:

   $callback1  
   $callback2  
   $callback3  

[ Top ]

method index [line 2220]

Int index( $subject)

Enter description here...



Tags:

access:  public


Parameters:

   $subject  

[ Top ]

method insert [line 2055]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery insert( unknown_type $target, unknown_type $type)

Internal insert method. Don't use it.



Tags:

access:  public


Parameters:

unknown_type   $target  
unknown_type   $type  

[ Top ]

method insertAfter [line 2043]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery insertAfter( $seletor)

Enter description here...



Tags:

access:  public


Parameters:

   $seletor  

[ Top ]

method insertBefore [line 2018]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery insertBefore( String|phpQuery $seletor)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $seletor  

[ Top ]

method is [line 1125]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery is( $selector, [ $nodes = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  
   $nodes  

[ Top ]

method isChar [line 304]

bool isChar( string $char)

Determines if $char is really a char.



Tags:

todo:  rewrite me to charcode range ! ;)
access:  protected


Parameters:

string   $char  

[ Top ]

method isHTML [line 218]

void isHTML( )



Tags:

access:  public


[ Top ]

method isRegexp [line 290]

void isRegexp( $pattern)



Tags:

access:  protected


Parameters:

   $pattern  

[ Top ]

method isRoot [line 142]

void isRoot( $node)



Tags:

TODO:  documentWrapper
access:  protected


Parameters:

   $node  

[ Top ]

method isXHTML [line 221]

void isXHTML( )



Tags:

access:  public


[ Top ]

method isXML [line 224]

void isXML( )



Tags:

access:  public


[ Top ]

method key [line 2989]

void key( )



Tags:

access:  public



Implementation of:
Iterator::key
[ Top ]

method length [line 1676]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery length( )

Enter description here...



Tags:

deprecated:  Use length as attribute
access:  public


[ Top ]

method load [line 1322]

phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery load( $url, [ $data = null], [ $callback = null])

Enter description here...



Tags:

link:  http://docs.jquery.com/Ajax/load
todo:  Support $selector
access:  public


Parameters:

   $url  
   $data  
   $callback  

[ Top ]

method map [line 2945]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery map( $callback, [ $param1 = null], [ $param2 = null], [ $param3 = null])

Enter description here...



Tags:

todo:  add $scope and $args as in each() ???
access:  public


Parameters:

   $callback  
   $param1  
   $param2  
   $param3  

[ Top ]

method markup [line 1796]

unknown_type markup( [$markup $markup = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

jQuey difference



Tags:

TODO:  trigger change event for textarea
access:  public


Parameters:

$markup   $markup  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method markupEvents [line 1778]

void markupEvents( $newMarkup, $oldMarkup, $node)



Tags:

access:  protected


Parameters:

   $newMarkup  
   $oldMarkup  
   $node  

[ Top ]

method markupOuter [line 1809]

unknown_type markupOuter( [$markup $callback1 = null], [ $callback2 = null], [ $callback3 = null])

jQuey difference



Tags:

access:  public


Parameters:

$markup   $callback1  
   $callback2  
   $callback3  

[ Top ]

method markupOuterPHP [line 1909]

unknown_type markupOuterPHP( $code 0)

TODO doc



Tags:

access:  public


Parameters:

$code   0  

[ Top ]

method markupPHP [line 1899]

unknown_type markupPHP( [$code $code = null])

TODO doc



Tags:

access:  public


Parameters:

$code   $code  

[ Top ]

method matchClasses [line 588]

boolean matchClasses( unknown_type $class, unknown_type $node)

Enter description here...

In the future, when PHP will support XLS 2.0, then we would do that this way: contains(tokenize(@class, '\s'), "something")




Tags:

access:  protected


Parameters:

unknown_type   $class  
unknown_type   $node  

[ Top ]

method merge [line 2503]

void merge( )



Tags:

access:  protected


[ Top ]

method newInstance [line 559]

void newInstance( [array $newStack = null])

Returns new instance of actual class.



Tags:

access:  public


Parameters:

array   $newStack   Optional. Will replace old stack with new and move old one to history.c

[ Top ]

method next [line 3003]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery next( [ $cssSelector = null])

Double-function method.

First: main iterator interface method. Second: Returning next sibling, alias for _next().

Proper functionality is choosed automagicaly.




Tags:

see:  phpQueryObject::_next()
access:  public



Implementation of:
Iterator::next

Parameters:

   $cssSelector  

[ Top ]

method nextAll [line 2390]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery nextAll( [ $selector = null])



Tags:

todo:  FIXME: returns source elements insted of next siblings
access:  public


Parameters:

   $selector  

[ Top ]

method not [line 2444]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery not( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method offsetExists [line 3028]

void offsetExists( $offset)



Tags:

access:  public



Implementation of:
ArrayAccess::offsetExists

Parameters:

   $offset  

[ Top ]

method offsetGet [line 3034]

void offsetGet( $offset)



Tags:

access:  public



Implementation of:
ArrayAccess::offsetGet

Parameters:

   $offset  

[ Top ]

method offsetSet [line 3040]

void offsetSet( $offset, $value)



Tags:

access:  public



Implementation of:
ArrayAccess::offsetSet

Parameters:

   $offset  
   $value  

[ Top ]

method offsetUnset [line 3047]

void offsetUnset( $offset)



Tags:

access:  public



Implementation of:
ArrayAccess::offsetUnset

Parameters:

   $offset  

[ Top ]

method parent [line 2529]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery parent( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method parents [line 2546]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery parents( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method parseSelector [line 312]

void parseSelector( $query)



Tags:

access:  protected


Parameters:

   $query  

[ Top ]

method php [line 1891]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery php( [ $code = null])

Just like html(), but returns markup with VALID (dangerous) PHP tags.



Tags:

todo:  support returning markup with PHP tags when called without param
access:  public


Parameters:

   $code  

[ Top ]

method plugin [line 2294]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery plugin( $class, [ $file = null])

Enter description here...



Tags:

access:  public


Parameters:

   $class  
   $file  

[ Top ]

method prepend [line 1975]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery prepend( $content)

Enter description here...



Tags:

access:  public


Parameters:

   $content  

[ Top ]

method prependPHP [line 1984]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery prependPHP( $content)

Enter description here...



Tags:

todo:  accept many arguments, which are joined, arrays maybe also
access:  public


Parameters:

   $content  

[ Top ]

method prependTo [line 1992]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery prependTo( $seletor)

Enter description here...



Tags:

access:  public


Parameters:

   $seletor  

[ Top ]

method prev [line 2370]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery prev( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method prevAll [line 2380]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery prevAll( [ $selector = null])



Tags:

todo:  
access:  public


Parameters:

   $selector  

[ Top ]

method pseudoClasses [line 851]

void pseudoClasses( $class)



Tags:

todo:  create API for classes with pseudoselectors
access:  protected


Parameters:

   $class  

[ Top ]

method remove [line 1757]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery remove( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method removeAttr [line 2709]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery removeAttr( $attr)

Enter description here...



Tags:

access:  public


Parameters:

   $attr  

[ Top ]

method removeClass [line 2854]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery removeClass( $className)

Enter description here...



Tags:

access:  public


Parameters:

   $className  

[ Top ]

method replaceAll [line 1744]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery replaceAll( String $selector)

Enter description here...



Tags:

todo:  this works ?
access:  public


Parameters:

String   $selector  

[ Top ]

method replaceWith [line 1733]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery replaceWith( String|phpQuery $content)

Enter description here...



Tags:



Parameters:

String|phpQuery   $content  

[ Top ]

method replaceWithPHP [line 1722]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery replaceWithPHP( $code)

Enter description here...



Tags:

access:  public


Parameters:

   $code  

[ Top ]

method reverse [line 2262]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery reverse( )

Enter description here...



Tags:

access:  public


[ Top ]

method rewind [line 2968]

void rewind( )



Tags:

access:  public



Implementation of:
Iterator::rewind
[ Top ]

method runQuery [line 618]

void runQuery( $XQuery, [ $selector = null], [ $compare = null])



Tags:

access:  protected


Parameters:

   $XQuery  
   $selector  
   $compare  

[ Top ]

method serialize [line 233]

string serialize( )

Enter description here...



Tags:

link:  http://docs.jquery.com/Ajax/serialize
access:  public


[ Top ]

method serializeArray [line 243]

array serializeArray( [ $submit = null])

Enter description here...



Tags:

link:  http://docs.jquery.com/Ajax/serializeArray
access:  public


Parameters:

   $submit  

[ Top ]

method show [line 1377]

void show( )



Tags:

todo:  
access:  public


[ Top ]

method siblings [line 2426]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery siblings( [ $selector = null])

Enter description here...



Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method size [line 1666]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery size( )

Enter description here...



Tags:

access:  public


[ Top ]

method slice [line 2241]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery slice( unknown_type $start, [unknown_type $end = null])

Enter description here...



Tags:

access:  public


Parameters:

unknown_type   $start  
unknown_type   $end  

[ Top ]

method stack [line 2574]

void stack( [ $nodeTypes = null])

Internal stack iterator.



Tags:

access:  public


Parameters:

   $nodeTypes  

[ Top ]

method stackIsRoot [line 151]

void stackIsRoot( )



Tags:

access:  protected


[ Top ]

method submit [line 1463]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery submit( [ $callback = null])

Enter description here...



Tags:

access:  public


Parameters:

   $callback  

[ Top ]

method switchWith [line 1636]

void switchWith( $markup)

Enter description here...

jQuery difference.




Tags:

access:  public


Parameters:

   $markup  

[ Top ]

method text [line 2272]

String text( [ $text = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])

Return joined text content.



Tags:

access:  public


Parameters:

   $text  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method toggleClass [line 2873]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery toggleClass( $className)

Enter description here...



Tags:

access:  public


Parameters:

   $className  

[ Top ]

method toReference [line 128]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery toReference( &$var, phpQueryObject $var)

Saves actual object to $var by reference.

Useful when need to break chain.




Tags:

access:  public


Parameters:

phpQueryObject   $var  
   &$var  

[ Top ]

method toRoot [line 162]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery toRoot( )

Enter description here...

NON JQUERY METHOD

Watch out, it doesn't creates new instance, can be reverted with end().




Tags:

access:  public


[ Top ]

method trigger [line 1397]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery trigger( unknown_type $type, [unknown_type $data = array()])

Trigger a type of event on every matched element.



Tags:

TODO:  support more than event in $type (space-separated)
access:  public


Parameters:

unknown_type   $type  
unknown_type   $data  

[ Top ]

method triggerHandler [line 1410]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery triggerHandler( unknown_type $type, [unknown_type $data = array()])

This particular method triggers all bound event handlers on an element (for a specific event type) WITHOUT executing the browsers default actions.



Tags:

TODO:  
access:  public


Parameters:

unknown_type   $type  
unknown_type   $data  

[ Top ]

method unbind [line 1443]

unknown unbind( [unknown_type $type = null], [unknown_type $callback = null])

Enter description here...



Tags:

TODO:  support more than event in $type (space-separated)
TODO:  namespace events
access:  public


Parameters:

unknown_type   $type  
unknown_type   $callback  

[ Top ]

method unloadDocument [line 215]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery unloadDocument( )

Unloads whole document from memory.

CAUTION! None further operations will be possible on this document. All objects refering to it will be useless.




Tags:

access:  public


[ Top ]

method val [line 2728]

String val( [ $val = null])

Return form element value.



Tags:

return:  Fields value.
access:  public


Parameters:

   $val  

[ Top ]

method valid [line 3020]

void valid( )



Tags:

access:  public



Implementation of:
Iterator::valid
[ Top ]

method whois [line 3095]

void whois( [ $oneNode = null])



Tags:

access:  public


Parameters:

   $oneNode  

[ Top ]

method wrap [line 1548]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrap( String|phpQuery $wrapper)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $wrapper  

[ Top ]

method wrapAll [line 1503]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapAll( String|phpQuery $wrapper)

Enter description here...

TODO testme...




Tags:

access:  public


Parameters:

String|phpQuery   $wrapper  

[ Top ]

method wrapAllOld [line 1484]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapAllOld( String|phpQuery $wrapper)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $wrapper  

[ Top ]

method wrapAllPHP [line 1532]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapAllPHP( String|phpQuery $codeBefore, $codeAfter)

Enter description here...

NON JQUERY METHOD




Tags:

access:  public


Parameters:

String|phpQuery   $codeBefore  
   $codeAfter  

[ Top ]

method wrapInner [line 1572]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapInner( String|phpQuery $wrapper)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $wrapper  

[ Top ]

method wrapInnerPHP [line 1584]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapInnerPHP( String|phpQuery $codeBefore, $codeAfter)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $codeBefore  
   $codeAfter  

[ Top ]

method wrapPHP [line 1560]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery wrapPHP( String|phpQuery $codeBefore, $codeAfter)

Enter description here...



Tags:

access:  public


Parameters:

String|phpQuery   $codeBefore  
   $codeAfter  

[ Top ]

method xml [line 1856]

void xml( [ $xml = null], [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])



Tags:

TODO:  force xml result
access:  public


Parameters:

   $xml  
   $callback1  
   $callback2  
   $callback3  

[ Top ]

method xmlOuter [line 1878]

void xmlOuter( [ $callback1 = null], [ $callback2 = null], [ $callback3 = null])



Tags:

TODO:  force xml result
access:  public


Parameters:

   $callback1  
   $callback2  
   $callback3  

[ Top ]

method _clone [line 1705]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery _clone( )

Enter description here...

Normal use ->clone() .




Tags:

access:  public


[ Top ]

method _empty [line 2900]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery _empty( )

Proper name without underscore (just ->empty()) also works.

Removes all child nodes from the set of matched elements.

Example: pq("p")._empty()

HTML: <p>Hello, <span>Person</span> <a href="#">and person</a></p>

Result: [ <p></p> ]




Tags:

access:  public


[ Top ]

method _next [line 2350]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery _next( [ $selector = null])

Safe rename of next().

Use it ONLY when need to call next() on an iterated object (in same time). Normaly there is no need to do such thing ;)




Tags:

access:  public


Parameters:

   $selector  

[ Top ]

method _prev [line 2362]

phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery _prev( [ $selector = null])

Use prev() and next().



Tags:

deprecated:  
access:  public


Parameters:

   $selector  

[ Top ]

method __call [line 2316]

unknown_type __call( $method $method, $args $args)



Tags:

access:  public


Parameters:

$method   $method  
$args   $args  

[ Top ]

method __get [line 112]

unknown_type __get( $attr $attr)



Tags:

access:  public


Parameters:

$attr   $attr  

[ Top ]

method __loadSuccess [line 1353]

unknown_type __loadSuccess( $html $html)



Tags:

access:  public


Parameters:

$html   $html  

[ Top ]

method __pseudoClassParam [line 1117]

void __pseudoClassParam( $paramsString)



Tags:

access:  protected


Parameters:

   $paramsString  

[ Top ]

method __toString [line 1882]

void __toString( )



Tags:

access:  public


Overridden in child classes as:

QueryTemplatesParse::__toString()
QueryTemplatesSource::__toString()

[ Top ]

method ___wrapAllCallback [line 1518]

unknown_type ___wrapAllCallback( $node $node)



Tags:

access:  public


Parameters:

$node   $node  

[ Top ]


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