Lines Matching refs:phpQuery

218                     phpQuery::debug("Loading HTML, content type '{$this->contentType}'");
223 phpQuery::debug("Loading XML, content type '{$this->contentType}'");
229 phpQuery::debug("Loading XML, content type '{$this->contentType}'");
232phpQuery::debug("Could not determine document type from content type '{$this->contentType}'");
237 phpQuery::debug("Loading XML, isXML() == true");
240phpQuery::debug('Loading as XML failed, trying to load as HTML, isXHTML == true');
244 phpQuery::debug("Loading HTML, isXML() == false");
263 if (phpQuery::$debug)
264 phpQuery::debug('Full markup load (HTML): '.substr($markup, 0, 250));
279 $charset = phpQuery::$defaultCharset;
290 phpQuery::debug("DOC: $documentCharset REQ: $requestedCharset");
292 phpQuery::debug("CHARSET CONVERT");
300 phpQuery::debug("DETECTED '$docEncoding'");
306 phpQuery::debug("CONVERT $docEncoding => $requestedCharset");
312 phpQuery::debug("TODO: charset conversion without mbstring...");
317phpQuery::debug("Full markup load (HTML), DocumentFragment detected, using charset '$charset'");
321 phpQuery::debug("Full markup load (HTML), appending charset: '$charset'");
324 phpQuery::debug("Full markup load (HTML), documentCreate('$charset')");
326 $return = phpQuery::$debug === 2
337 if (phpQuery::$debug)
338 phpQuery::debug('Full markup load (XML): '.substr($markup, 0, 250));
362phpQuery::debug("Full markup load (XML), appending XHTML charset '$documentCharset'");
375 $charset = phpQuery::$defaultCharset;
383phpQuery::debug("Full markup load (XML), DocumentFragment detected, using charset '$charset'");
389 phpQuery::debug("Full markup load (XML), appending charset '$charset'");
401 $return = phpQuery::$debug === 2
406 $libxmlStatic = phpQuery::$debug === 2
658 …$markup2 = phpQuery::$defaultDoctype.'<html><head><meta http-equiv="Content-Type" content="text/ht…
679 phpQuery::debug('documentFragmentToMarkup');
695 if (phpQuery::$debug)
696 phpQuery::debug('documentFragmentToMarkup: '.substr($markup, 0, 150));
717 + phpQuery::DOMNodeListToArray($node->childNodes)
780 phpQuery::debug($text);
829 $documentID = phpQuery::getDocumentID($document);
837 $pq = phpQuery::getDocument($documentID);
858 phpQuery::debug("Triggering ".($i?"bubbled ":'')."event '{$type}' on "
874 phpQuery::debug("Calling event handler\n");
879 $return = phpQuery::callbackRun($handler['callback'], $params);
908 phpQuery::debug("Binding '$type' event");
909 $documentID = phpQuery::getDocumentID($document);
935 $documentID = phpQuery::getDocumentID($document);
948 foreach(phpQuery::$documents[$documentID]->eventsNodes as $eventNode) {
954 phpQuery::$documents[$documentID]->eventsNodes[] = $node;
955 return phpQuery::$documents[$documentID]->eventsNodes[
956 count(phpQuery::$documents[$documentID]->eventsNodes)-1
960 return isset(phpQuery::$documents[$documentID])
961 ? in_array($type, phpQuery::$documents[$documentID]->eventsGlobal)
1196 if (! isset(phpQuery::$documents[$id] )) {
1201 $this->documentWrapper =& phpQuery::$documents[$id];
1239 phpQuery::$documents[$this->getDocumentID()]['documentFragment'] = $state;
1283 * @see phpQuery::newDocument
1284 * @see phpQuery::newDocumentFile
1297 return phpQuery::getDocument($this->getDocumentID());
1322 phpQuery::unloadDocuments($this->getDocumentID());
1340 return phpQuery::param($this->serializeArray());
1356 $input = phpQuery::pq($input);
1381 if (! phpQuery::$debug )
1410 return extension_loaded('mbstring') && phpQuery::$mbstringSupport
1594 $return[$k] = phpQuery::callbackRun($callback, array($v));
1596 $return = phpQuery::callbackRun($callback, array($return));
1623 $return = phpQuery::callbackRun($callback, array($return));
1652 $return[$k] = phpQuery::callbackRun($callback, array($v));
1654 $return = phpQuery::callbackRun($callback, array($return));
1675 $new->elements = phpQuery::pq($newStack, $this->getDocumentID())->stack();
1762 phpQuery::$debug ?
1765 $phpQueryDebug = phpQuery::$debug;
1766 phpQuery::$debug = false;
1770 phpQuery::$debug = $phpQueryDebug;
1775 if (phpQuery::$debug)
1780 if (phpQuery::$debug) {
1823 $isTag = extension_loaded('mbstring') && phpQuery::$mbstringSupport
1937 phpQuery::debug("Unrecognized token '$s'");
2043 $this->elements = phpQuery::merge(
2186phpQuery::debug($a . "*" . floor($index / $a) . "+$b-1 == " . ($a * floor($index / $a) + $b - 1) .…
2243 phpQuery::debug(array("Is:", $selector));
2277 $result = phpQuery::callbackRun($callback, array($index, $node));
2346 … $val = extension_loaded('mbstring') && phpQuery::$mbstringSupport
2365 … $isMatch = extension_loaded('mbstring') && phpQuery::$mbstringSupport
2436 * @return phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
2446 if (extension_loaded('mbstring') && phpQuery::$mbstringSupport)
2462 phpQuery::ajax($ajax);
2472 $html = phpQuery::newDocument($html)->find($this->_loadSelector);
2476 phpQuery::pq($node, $this->getDocumentID())
2483 * @return phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
2598 * @param String|phpQuery
2616 * @param String|phpQuery
2622 return phpQuery::pq($wrapper, $this->getDocumentID())
2644 * @param String|phpQuery
2659 * @param String|phpQuery
2664 phpQuery::pq($node, $this->getDocumentID())->wrapAll($wrapper);
2670 * @param String|phpQuery
2675 phpQuery::pq($node, $this->getDocumentID())->wrapAllPHP($codeBefore, $codeAfter);
2681 * @param String|phpQuery
2686 phpQuery::pq($node, $this->getDocumentID())->contents()->wrapAll($wrapper);
2692 * @param String|phpQuery
2697 phpQuery::pq($node, $this->getDocumentID())->contents()
2828 return $this->replaceWith(phpQuery::php($code));
2833 * @param String|phpQuery $content
2848 foreach(phpQuery::pq($selector, $this->getDocumentID()) as $node)
2849 phpQuery::pq($node, $this->getDocumentID())
2922 * @return string|phpQuery|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
2950 $return = phpQuery::callbackRun($callback, array($return));
2973 $markup = phpQuery::callbackRun($callback, array($markup));
3004 ? $this->markup(phpQuery::php($code))
3005 : phpQuery::markupToPHP($this->markup());
3014 return phpQuery::markupToPHP($this->markupOuter());
3115 * @param String|phpQuery
3169 if (phpQuery::isMarkup($target)) {
3245 phpQuery::debug("From ".count($insertFrom)."; To ".count($insertTo)." nodes");
3378 $text = phpQuery::callbackRun($callback, array($text));
3390 phpQuery::plugin($class, $file);
3413 if (isset(phpQuery::$extendMethods[$method])) {
3415 return phpQuery::callbackRun(
3416 phpQuery::$extendMethods[$method], $args
3418 } else if (isset(phpQuery::$pluginsMethods[$method])) {
3420 $class = phpQuery::$pluginsMethods[$method];
3536 phpQuery::debug(array('not', $selector));
3538 phpQuery::debug('not');
3585 $found = phpQuery::pq($selector, $this->getDocumentID());
4001 phpQuery::callbackRun($callback, array($v), $paramStructure);
4012 phpQuery::callbackRun($callback, $params);
4046 return phpQuery::data($this->get(0), $key, $value, $this->getDocumentID());
4049 phpQuery::data($node, $key, $value, $this->getDocumentID());
4060 phpQuery::removeData($node, $key, $this->getDocumentID());
4240 print 'DUMP #'.(phpQuery::$dumpCount++).' ';
4241 $debug = phpQuery::$debug;
4242 phpQuery::$debug = false;
4248 print 'DUMP #'.(phpQuery::$dumpCount++).' ';
4249 $debug = phpQuery::$debug;
4250 phpQuery::$debug = false;
4253 phpQuery::$debug = $debug;
4257 print 'DUMP #'.(phpQuery::$dumpCount++).' ';
4258 $debug = phpQuery::$debug;
4259 phpQuery::$debug = false;
4262 phpQuery::$debug = $debug;
4267 ? 'DUMP #'.(phpQuery::$dumpCount++)." \n" : '';
4268 $debug = phpQuery::$debug;
4269 phpQuery::$debug = false;
4272 phpQuery::$debug = $debug;
4394 abstract class phpQuery { class
4505 foreach(phpQuery::$documents as $documentWrapper) {
4543 $phpQuery = $class != 'phpQuery'
4546 $phpQuery->elements = array();
4548 $phpQuery->elements[] = $phpQuery->document->importNode($node, true);
4549 return $phpQuery;
4555 $phpQuery = new phpQueryObject($domId);
4558 $phpQuery->elements = array();
4561 && ! $node->ownerDocument->isSameNode($phpQuery->document);
4562 $phpQuery->elements[] = $sameDocument
4563 ? $phpQuery->document->importNode($node, true)
4566 return $phpQuery;
4572 $phpQuery = new phpQueryObject($domId);
4573 return $phpQuery->newInstance(
4574 $phpQuery->documentWrapper->import($arg1)
4581 $phpQuery = new phpQueryObject($domId);
4584 $phpQuery->elements = $context->elements;
4586 $phpQuery->elements = array();
4588 $phpQuery->elements[] = $node;
4590 $phpQuery->elements = array($context);
4591 return $phpQuery->find($arg1);
4611 * @see phpQuery::selectDocument()
4617 phpQuery::selectDocument($id);
4619 $id = phpQuery::$defaultDocumentID;
4633 $documentID = phpQuery::createDocumentWrapper($markup, $contentType);
4684 $markup = phpQuery::phpToMarkup($markup, self::$defaultCharset);
4863 phpQuery::$documents[$wrapper->id] = $wrapper;
4865 phpQuery::selectDocument($wrapper->id);
4971 * @param mixed $documentID @see phpQuery::getDocumentID() for supported types.
4976 unset(phpQuery::$documents[$id]);
4978 foreach(phpQuery::$documents as $k => $v) {
4979 unset(phpQuery::$documents[$k]);
4986 * @param phpQuery|string $content
5021 * 'document' - document for global events, @see phpQuery::getDocumentID()
5157 phpQuery::callbackRun($options['beforeSend'], array($client));
5161 if (phpQuery::$debug) {
5169 if (phpQuery::$debug) {
5179phpQuery::callbackRun($options['success'], array($data, $response->getStatus(), $options));
5184phpQuery::callbackRun($options['error'], array($client, $response->getStatus(), $response->getMess…
5189 phpQuery::callbackRun($options['complete'], array($client, $response->getStatus()));
5215 * @param array|phpQuery $data
5227 return phpQuery::ajax(array(
5240 return phpQuery::ajax(array(
5254 return phpQuery::ajax(array(
5273 if ($host && ! in_array($host, phpQuery::$ajaxAllowedHosts)) {
5274 phpQuery::$ajaxAllowedHosts[] = $host;
5283 phpQuery::ajaxAllowHost(parse_url($url, PHP_URL_HOST));
5323 foreach(phpQuery::$documents as $id => $document) {
5328 foreach(phpQuery::$documents as $id => $document) {
5334 else if (is_string($source) && isset(phpQuery::$documents[$source]))
5393 phpQuery::callbackRun($callback, array($name, $value), $paramStructure);
5396 phpQuery::callbackRun($callback, array($name, $value), $paramStructure);
5411 $vv = phpQuery::callbackRun($callback, array($v), $paramStructure);
5587 array(phpQuery::$plugins, $method),
5593 foreach(phpQuery::$documents[$documentID]->dataNodes as $dataNode) {
5598 phpQuery::$documents[$documentID]->dataNodes[] = $node;
5603 foreach(phpQuery::$documents[$documentID]->dataNodes as $k => $dataNode) {
5614 $document = phpQuery::$documents[$documentID];
5617 $node->dataID = ++phpQuery::$documents[$documentID]->uuid;
5633 $document = phpQuery::$documents[$documentID];
5658 if (isset(phpQuery::$extendStaticMethods[$method])) {
5660 phpQuery::$extendStaticMethods[$method],
5663 } else if (isset(phpQuery::$pluginsStaticMethods[$method])) {
5664 $class = phpQuery::$pluginsStaticMethods[$method];
5681 * @see phpQuery::pq()
5701 phpQuery::$plugins = new phpQueryPlugins();