├── demo ├── vendor │ ├── electrolinux │ │ └── phpquery │ │ │ ├── .idea │ │ │ ├── .name │ │ │ ├── copyright │ │ │ │ └── profiles_settings.xml │ │ │ ├── encodings.xml │ │ │ ├── vcs.xml │ │ │ ├── inspectionProfiles │ │ │ │ ├── profiles_settings.xml │ │ │ │ └── Project_Default.xml │ │ │ ├── modules.xml │ │ │ ├── php.xml │ │ │ ├── compiler.xml │ │ │ └── phpquery-git.iml │ │ │ ├── test-cases │ │ │ ├── test_ajax_data_1 │ │ │ ├── document-types │ │ │ │ ├── document-fragment-utf8.html │ │ │ │ ├── document-iso88592.html │ │ │ │ ├── document-iso88592.xhtml │ │ │ │ ├── document-iso88592.xml │ │ │ │ ├── document-utf8-nocharset.html │ │ │ │ ├── document-iso88592-nocharset.html │ │ │ │ ├── document-utf8.html │ │ │ │ ├── document-fragment-utf8.xml │ │ │ │ ├── document-utf8.php │ │ │ │ ├── document-fragment-utf8.xhtml │ │ │ │ ├── document-utf8-nocharset.xml │ │ │ │ ├── document-iso88592-nocharset.xml │ │ │ │ ├── document-utf8.xml │ │ │ │ ├── document-iso88592-nocharset.xhtml │ │ │ │ ├── document-utf8-nocharset.xhtml │ │ │ │ └── document-utf8.xhtml │ │ │ ├── run.php │ │ │ ├── test_document.php │ │ │ ├── xpath.php │ │ │ ├── test_insert.php │ │ │ ├── test_attr.php │ │ │ ├── test_replace.php │ │ │ ├── test_scripts.php │ │ │ ├── test_callback.php │ │ │ ├── test_arrayaccess.php │ │ │ ├── test_php.php │ │ │ ├── test_multidoc.php │ │ │ ├── test.html │ │ │ ├── test_5.php │ │ │ ├── test_events.php │ │ │ ├── test_2.php │ │ │ ├── test_wrap.php │ │ │ ├── test_webbrowser.php │ │ │ ├── test_ajax.php │ │ │ ├── test_4.php │ │ │ ├── test_charset.php │ │ │ ├── test_manipulation.php │ │ │ ├── document_types.php │ │ │ └── test_selectors.php │ │ │ ├── api-reference │ │ │ ├── media │ │ │ │ ├── empty.png │ │ │ │ ├── background.png │ │ │ │ └── style.css │ │ │ ├── index.html │ │ │ ├── li_phpQuery.html │ │ │ ├── phpQuery │ │ │ │ ├── _DOMEvent.php.html │ │ │ │ ├── _phpQueryEvents.php.html │ │ │ │ ├── _phpQueryObject.php.html │ │ │ │ ├── _DOMDocumentWrapper.php.html │ │ │ │ ├── _Callback.php.html │ │ │ │ ├── CallbackParam.html │ │ │ │ ├── phpQueryPlugins.html │ │ │ │ ├── CallbackReference.html │ │ │ │ └── _phpQuery.php.html │ │ │ ├── classtrees_phpQuery.html │ │ │ ├── errors.html │ │ │ └── todolist.html │ │ │ ├── phpQuery │ │ │ └── phpQuery │ │ │ │ ├── plugins │ │ │ │ ├── Scripts │ │ │ │ │ ├── print_source.php │ │ │ │ │ ├── __config.example.php │ │ │ │ │ ├── print_websafe.php │ │ │ │ │ ├── example.php │ │ │ │ │ ├── fix_webroot.php │ │ │ │ │ └── google_login.php │ │ │ │ ├── example.php │ │ │ │ └── Scripts.php │ │ │ │ ├── bootstrap.example.php │ │ │ │ ├── compat │ │ │ │ └── mbstring.php │ │ │ │ ├── DOMEvent.php │ │ │ │ ├── Callback.php │ │ │ │ └── phpQueryEvents.php │ │ │ ├── jQueryServer │ │ │ ├── jQueryServer.config.php.example │ │ │ ├── demo │ │ │ │ └── demo.htm │ │ │ ├── jQueryServer.php │ │ │ └── jQueryServer.js │ │ │ ├── composer.json │ │ │ ├── unit-tests │ │ │ ├── test.html │ │ │ └── test.php │ │ │ ├── demo.php │ │ │ ├── cli │ │ │ └── phpquery │ │ │ └── README.md │ ├── autoload.php │ └── composer │ │ ├── autoload_namespaces.php │ │ ├── autoload_psr4.php │ │ ├── LICENSE │ │ ├── installed.json │ │ ├── autoload_real.php │ │ ├── autoload_classmap.php │ │ └── autoload_static.php ├── composer.json ├── auto_cache.php ├── task_callback.php ├── chained_task.php ├── download.php ├── basic.php ├── composer.lock └── _inc.php ├── alipay.jpg ├── wechat.jpg ├── .gitignore ├── php-storm-dictionary.dic └── composer.json /demo/vendor/electrolinux/phpquery/.idea/.name: -------------------------------------------------------------------------------- 1 | phpquery-git -------------------------------------------------------------------------------- /alipay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ares333/php-curl/HEAD/alipay.jpg -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_ajax_data_1: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /wechat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ares333/php-curl/HEAD/wechat.jpg -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/document-types/document-fragment-utf8.html: -------------------------------------------------------------------------------- 1 |
Test: żźć
4 |
5 | This is an example of an XHTML 1.0 Strict
7 | document.
10 |
13 |
bar
foo foo') 10 | ->html(); 11 | die(); 12 | $testResult = 10; 13 | if ($doc->script('example', 'p')->length == $testResult) 14 | print "Test '$testName' PASSED :)"; 15 | else { 16 | print "Test '$testName' FAILED !!! "; 17 | print ""; 18 | var_dump($doc->whois()); 19 | print "\n"; 20 | } 21 | print "\n"; -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/xpath.php: -------------------------------------------------------------------------------- 1 | loadHTMLFile('test.html'); 7 | $X = new DOMXPath($DOM); 8 | print $Query; 9 | whois($X->query($Query)); 10 | 11 | function whois($nodeList) 12 | { 13 | $return = array(); 14 | foreach ($nodeList as $node) { 15 | $return[] = ($node->tagName . ($node->getAttribute('id') ? '#' . $node->getAttribute('id') : '') . ($node->getAttribute('class') ? '.' . join('.', split(' ', $node->getAttribute('class'))) : '')); 16 | } 17 | print "
"; 18 | print_r($return); 19 | print ""; 20 | } 21 | ?> -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 |
test p
"; 12 | $doc['body > p:last']->append($markup); 13 | if ($doc['body > p:last p']->length == 1) 14 | print "Test '{$testName}' PASSED :)"; 15 | else { 16 | print "Test '{$testName}' FAILED !!! "; 17 | print $doc->htmlOuter('htmlspecialchars'); 18 | } 19 | print "\n"; -------------------------------------------------------------------------------- /demo/chained_task.php: -------------------------------------------------------------------------------- 1 | setCurl(); 6 | $curl = $toolkit->getCurl(); 7 | $curl->onInfo = null; 8 | $url = 'http://baidu.com'; 9 | $curl->add(array( 10 | 'opt' => array( 11 | CURLOPT_URL => $url 12 | ) 13 | ), 'cb1'); 14 | echo "add $url\n"; 15 | $curl->start(); 16 | 17 | function cb1($r) 18 | { 19 | echo "finish " . $r['info']['url'] . "\n"; 20 | $url = 'http://bing.com'; 21 | $r['curl']->add( 22 | array( 23 | 'opt' => array( 24 | CURLOPT_URL => $url 25 | ) 26 | ), 'cb2'); 27 | echo "add $url\n"; 28 | } 29 | 30 | function cb2($r) 31 | { 32 | echo "finish " . $r['info']['url'] . "\n"; 33 | } -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "electrolinux/phpquery" 3 | ,"type": "library" 4 | ,"description": "phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library" 5 | ,"version": "0.9.6" 6 | ,"keywords": [] 7 | ,"homepage": "http://code.google.com/p/phpquery/" 8 | ,"license": "MIT" 9 | ,"authors": [ 10 | { 11 | "name": "Tobiasz Cudnik" 12 | ,"email": "tobiasz.cudnik@gmail.com" 13 | ,"homepage": "https://github.com/TobiaszCudnik" 14 | ,"role": "Developer" 15 | } 16 | ,{ 17 | "name": "didier Belot" 18 | ,"role": "Packager" 19 | } 20 | ], 21 | "autoload": { 22 | "classmap": ["phpQuery/"] 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/.idea/phpquery-git.iml: -------------------------------------------------------------------------------- 1 | 2 |7 | this is example title 8 |
"); 9 | $result = pq('p:eq(1)'); 10 | if ($result->hasClass('newTitle')) 11 | print "Test '{$testName}' PASSED :)"; 12 | else 13 | print "Test '{$testName}' FAILED !!! "; 14 | $result->dump(); 15 | print "\n"; 16 | 17 | $testName = 'ReplaceAll'; 18 | $testResult = 3; 19 | phpQuery::newDocumentFile('test.html'); 20 | pq('Test: ���
18 |
19 | This is an example of an XHTML 1.0 Strict
21 | document.
24 |
27 |
Test: żźć
19 |
20 | This is an example of an XHTML 1.0 Strict
22 | document.
25 |
28 |
"; 15 | var_dump($doc->whois()); 16 | print "\n"; 17 | } 18 | print "\n"; 19 | 20 | $testName = 'Scripts/gmail_login'; 21 | $testResult = 1; 22 | $url = 'http://code.google.com/p/phpquery/w/edit/MultiDocumentSupport'; 23 | // phpQuery::ajaxAllowURL($url); 24 | $editor = phpQuery::newDocument('')->script('google_login')->location($url); 25 | if ($editor->find('textarea#content')->length == $testResult) 26 | print "Test '$testName' PASSED :)"; 27 | else { 28 | print "Test '$testName' FAILED !!! "; 29 | print "
"; 30 | var_dump($doc->whois()); 31 | print "\n"; 32 | } 33 | print "\n"; 34 | ?> -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_callback.php: -------------------------------------------------------------------------------- 1 | array( 25 | $this, 26 | 'callback1' 27 | ), 28 | 'newMethod2' => array( 29 | $this, 30 | 'callback2' 31 | ) 32 | ); 33 | phpQuery::extend('phpQueryObject', $newMethods); 34 | $doc = phpQuery::newDocumentXML(""); 35 | $this->assertTrue($doc->newMethod1() == $doc, '$doc->newMethod1 == $doc'); 36 | $this->assertTrue($doc->newMethod2() == "callback2", '$doc->newMethod1 == "callback2"'); 37 | } 38 | } -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_arrayaccess.php: -------------------------------------------------------------------------------- 1 | append('test'); 9 | $testName = 'Array Access get'; 10 | if (trim($testHtml['.just-added']->html()) == 'test') 11 | print "Test '$testName' PASSED :)"; 12 | else { 13 | print "Test '$testName' FAILED !!! "; 14 | print "
"; 15 | print_r($testHtml['.just-added']->whois()); 16 | print "\n"; 17 | } 18 | print "\n"; 19 | 20 | require_once ('../phpQuery/phpQuery.php'); 21 | phpQuery::$debug = true; 22 | $testHtml = phpQuery::newDocumentFile('test.html'); 23 | $testHtml['li:first'] = 'new inner html'; 24 | $testName = 'Array Access set'; 25 | if (trim($testHtml['li:first']->html()) == 'new inner html') 26 | print "Test '$testName' PASSED :)"; 27 | else { 28 | print "Test '$testName' FAILED !!! "; 29 | print "
"; 30 | print_r($testHtml['.just-added']->whois()); 31 | print "\n"; 32 | } 33 | print "\n"; 34 | -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_php.php: -------------------------------------------------------------------------------- 1 | 2 | "> 9 | EOF; 10 | $result = phpQuery::newDocumentPHP(null, 'text/html;charset=utf-8')->appendPHP('print $r') 11 | ->append('') 12 | ->find('a') 13 | ->attrPHP('href', 'print $array[\'key\']; if ("abc\'d\'") {};') 14 | ->end(); 15 | if (trim($result->php()) == $expected) 16 | print "Test '{$testName}' passed :)"; 17 | else 18 | print "Test '{$testName}' FAILED !!!"; 19 | print "\n"; 20 | 21 | $testName = 'PHP file open'; 22 | $result = phpQuery::newDocumentFilePHP('document-types/document-utf8.php'); 23 | var_dump($result->php()); 24 | /* 25 | ->appendPHP('print $r') 26 | ->append('') 27 | ->find('a') 28 | ->attrPHP('href', 'print $array[\'key\']; if ("abc\'d\'") {};') 29 | ->end(); 30 | if (trim($result->php()) == $expected) 31 | print "Test '{$testName}' passed :)"; 32 | else 33 | print "Test '{$testName}' FAILED !!!"; 34 | print "\n"; 35 | */ -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_multidoc.php: -------------------------------------------------------------------------------- 1 | find('p') as $node) 13 | $doc2->find('body')->append(pq($node)); 14 | $testResult = $doc2->find('p'); 15 | if ($testResult->size() == 2 * $doc1->find('p')->size()) 16 | print "Test '{$testName}' PASSED :)"; 17 | else { 18 | print "Test '{$testName}' FAILED !!!
Test: żźć
24 |
25 | This is an example of an XHTML 1.0 Strict
27 | document.
30 |
33 |
This is paragraph of first LI
17 |this is example title
18 |this is example body
19 |This is paragraph of second LI
22 |this is example title 2
23 |this is example body 2
24 |This is paragraph of third LI
27 |There isnt any title
28 |this is example body 3
29 |paragraph after UL
32 |This is paragraph of first LI
17 |this is example title
18 |this is example body
19 |This is paragraph of second LI
22 |this is example title 2
23 |this is example body 2
24 |This is paragraph of third LI
27 |There isnt any title
28 |this is example body 3
29 |paragraph after UL
32 |"; 51 | print_r($result->whois()); 52 | print "\n"; 53 | } 54 | print "\n"; 55 | } 56 | ?> -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_events.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 12 | 13 | 14 | 15 | EOF; 16 | $doc = phpQuery::newDocumentHTML($form); 17 | $inputs = $doc['form > *']; 18 | // creates array from input names 19 | // $results = $inputs->get(null, 20 | // create_function('$node', 'return $node->getAttribute("name");') 21 | // ); 22 | $results = array(); 23 | foreach ($inputs as $node) { 24 | $node = pq($node); 25 | $name = $node->attr('name'); 26 | $results[$name] = false; 27 | $node->change(new CallbackReference($results[$name])); 28 | } 29 | $inputs->not('select,:checkbox,:radio') 30 | ->val('new value') 31 | ->end() 32 | ->filter('select') 33 | ->val('first') 34 | ->end() 35 | ->filter(':checkbox') 36 | ->val(array( 37 | 'foo' 38 | )) 39 | ->end() 40 | ->filter(':radio') 41 | ->val(array( 42 | 'foo' 43 | )) 44 | ->end(); 45 | foreach ($results as $name => $result) { 46 | print $result ? "Test for '$name' PASSED :)
"; 50 | print $result; 51 | print "\n"; 52 | } -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/demo.php: -------------------------------------------------------------------------------- 1 | '); 12 | 13 | // FILL IT 14 | // array syntax works like ->find() here 15 | $doc['div']->append('
Test
hors paragraphe') 49 | * ->contents() 50 | * ->not('[nodeType=1]') 51 | * ->wrap(''); 52 | * var_dump((string)$doc); 53 | */ 54 | // $testResult = 3; 55 | // phpQuery::newDocumentFile('test.html') 56 | // ->find('li:first') 57 | // ->wrapInner('"; 81 | // print_r($result->whois()); 82 | // print "\n"; 83 | // } 84 | // print "\n"; 85 | ?> -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/test-cases/test_ajax.php: -------------------------------------------------------------------------------- 1 | 'http://wikipedia.org/', 14 | // 'success' => 'v87shs79d8fhs9d' 15 | // )); 16 | // function v87shs79d8fhs9d($html) { 17 | // $title = phpQuery::newDocument($html)->find('title'); 18 | // $testName = 'Simple AJAX'; 19 | // if ( strpos(strtolower($title->html()), 'wikipedia') !== false ) 20 | // print "Test '$testName' PASSED :)"; 21 | // else { 22 | // print "Test '$testName' FAILED !!! "; 23 | // print "
"; 24 | // print_r($title->whois()); 25 | // print "\n"; 26 | // } 27 | // print "\n"; 28 | // } 29 | 30 | $testName = 'Load'; 31 | $test = phpQuery::newDocumentFile('test.html')->find('div:first')->load('http://wikipedia.org/ div[lang]'); 32 | if (pq('div[lang]')->size()) 33 | print "Test '$testName' PASSED :)"; 34 | else { 35 | print "Test '$testName' FAILED !!! "; 36 | print "
"; 37 | print "\n"; 38 | } 39 | print "\n"; 40 | 41 | // http://code.google.com/p/phpquery/issues/detail?id=130 42 | $pq = phpQuery::ajax(array( 43 | 'url' => 'http://' . $_SERVER['SERVER_NAME'] . preg_replace('@/[^/]+$@', '/test_ajax_data_1', $_SERVER['REQUEST_URI']), 44 | 'success' => 'a789fhasdui3124', 45 | 'error' => 'jhdbg786213u8dsfg7y' 46 | )); 47 | 48 | function a789fhasdui3124($html) 49 | { 50 | $testName = 'AJAX request text node'; 51 | if ($html == 'hello world') 52 | print "Test '$testName' PASSED :)"; 53 | else { 54 | print "Test '$testName' FAILED !!! "; 55 | } 56 | print "\n"; 57 | } 58 | 59 | function jhdbg786213u8dsfg7y() 60 | { 61 | $testName = 'AJAX request text node'; 62 | print "Test '$testName' FAILED !!! "; 63 | } 64 | 65 | 66 | //$testName = 'gdata plugin'; 67 | //phpQuery::extend('gdata'); 68 | //$xhr = phpQuery::$plugins->gdata('tobiasz.cudnik@gmail.com', 'XXX'); 69 | //$url = 'http://code.google.com/p/phpquery/w/edit/Callbacks'; 70 | //phpQuery::ajax(array('url' => $url, 'success' => 'ksjsdgh892jh23'), $xhr); 71 | //function ksjsdgh892jh23($html) { 72 | // print $html; 73 | // print pq($html)->find('script')->remove()->end(); 74 | // if (pq('div[lang]')->size()) 75 | // print "Test '$testName' PASSED :)"; 76 | // else { 77 | // print "Test '$testName' FAILED !!! "; 78 | // print "
"; 79 | // print "\n"; 80 | // } 81 | // print "\n"; 82 | //} -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/README.md: -------------------------------------------------------------------------------- 1 | ## phpQuery, one more fork! 2 | 3 | My intent is to have it easily integrated in differents projects, so available on packagist. 4 | I've gathered some fix and new features here and there, as will keep looking for new stuff on github about phpQuery 5 | 6 | ### github repos i've integrated: 7 | 8 | * https://github.com/ralph-tice/phpquery (one commit: added WebBrowser->browserDownload) 9 | * https://github.com/aptivate/phpquery (three commits) 10 | * https://github.com/panrafal/phpquery (remove zend) 11 | 12 | ### github repos i've looked at: 13 | 14 | * https://github.com/denis-isaev/phpquery 15 | * https://github.com/fmorrow/pQuery--PHPQuery- (big project so far) 16 | * https://github.com/r-sal/phpquery 17 | * https://github.com/damien-list/phpquery-1 18 | * https://github.com/nev3rm0re/phpquery 19 | * https://github.com/Aurielle/phpquery 20 | * https://github.com/kevee/phpquery (include php-css-parser) 21 | * https://github.com/lucassouza1/phpquery 22 | 23 | ## Extracts from fmorrow README.md: 24 | 25 | ### Whats phpQuery? 26 | To quote the phpQuery *(orignally concieved and developed by Tobiasz Cudnik, available on Google Code and Github)* project documentation: 27 | 28 | >phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library. 29 | > 30 | >Library is written in PHP5 and provides additional Command Line Interface (CLI). 31 | 32 | ### Example usage 33 | 34 | (copied from http://code.google.com/p/phpquery/wiki/Basics) 35 | 36 | Complete working example: 37 | 38 | ```php 39 | html(); 54 | 55 | // And output the result 56 | echo '
' . htmlentities( $title) . '
'; 58 | 59 | ?> 60 | ``` 61 | 62 | ==== 63 | 64 | Source for test.html: 65 | 66 | ```html 67 | 68 | 69 | 70 | 71 |"; 15 | print_r($result->whois()); 16 | print "\n"; 17 | } 18 | print "\n"; 19 | 20 | // SLICE2 21 | $testResult = array( 22 | 'li#testID', 23 | 'li', 24 | 'li#i_have_nested_list', 25 | 'li.nested' 26 | ); 27 | $result = phpQuery::newDocumentFile('test.html')->find('li')->slice(1, - 1); 28 | if ($result->whois() == $testResult) 29 | print "Test 'Slice2' PASSED :)"; 30 | else { 31 | print "Test 'Slice2' FAILED !!! "; 32 | print "
"; 33 | print_r($result->whois()); 34 | print "\n"; 35 | } 36 | print "\n"; 37 | 38 | // Multi-insert 39 | $result = phpQuery::newDocument('
"; 47 | var_dump($result->htmlOuter()); 48 | print "\n"; 49 | } 50 | print "\n"; 51 | 52 | // INDEX 53 | $testResult = 1; 54 | $result = phpQuery::newDocumentFile('test.html')->find('p')->index(pq('p.title:first')); 55 | if ($result == $testResult) 56 | print "Test 'Index' PASSED :)"; 57 | else { 58 | print "Test 'Index' FAILED !!! "; 59 | } 60 | print "\n"; 61 | 62 | // CLONE 63 | $testName = 'Clone'; 64 | $testResult = 3; 65 | $document; 66 | $p = phpQuery::newDocumentFile('test.html')->toReference($document)->find('p:first'); 67 | foreach (array( 68 | 0, 69 | 1, 70 | 2 71 | ) as $i) { 72 | $p->clone() 73 | ->addClass("clone-test") 74 | ->addClass("class-$i") 75 | ->insertBefore($p); 76 | } 77 | if (pq('.clone-test')->size() == $testResult) 78 | print "Test '$testName' PASSED :)"; 79 | else { 80 | print "Test '$testName' FAILED !!! "; 81 | } 82 | print "\n"; 83 | 84 | // SIBLINGS 85 | $testName = 'Next'; 86 | $testResult = 3; 87 | $document; 88 | $result = phpQuery::newDocumentFile('test.html')->find('li:first') 89 | ->next() 90 | ->next() 91 | ->prev() 92 | ->is('#testID'); 93 | if ($result) 94 | print "Test '$testName' PASSED :)"; 95 | else { 96 | print "Test '$testName' FAILED !!! "; 97 | } 98 | print "\n"; 99 | ?> 100 | 101 | 102 | 11 | array ( 12 | 'Ares333\\Curl\\' => 13, 13 | ), 14 | ); 15 | 16 | public static $prefixDirsPsr4 = array ( 17 | 'Ares333\\Curl\\' => 18 | array ( 19 | 0 => __DIR__ . '/../..' . '/../src', 20 | ), 21 | ); 22 | 23 | public static $classMap = array ( 24 | 'Callback' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 25 | 'CallbackBody' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 26 | 'CallbackParam' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 27 | 'CallbackParameterToReference' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 28 | 'CallbackReturnReference' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 29 | 'CallbackReturnValue' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 30 | 'DOMDocumentWrapper' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/DOMDocumentWrapper.php', 31 | 'DOMEvent' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/DOMEvent.php', 32 | 'ICallbackNamed' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/Callback.php', 33 | 'phpQuery' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery.php', 34 | 'phpQueryEvents' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryEvents.php', 35 | 'phpQueryObject' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/phpQueryObject.php', 36 | 'phpQueryObjectPlugin_Scripts' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', 37 | 'phpQueryObjectPlugin_WebBrowser' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', 38 | 'phpQueryObjectPlugin_example' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', 39 | 'phpQueryPlugin_Scripts' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/Scripts.php', 40 | 'phpQueryPlugin_WebBrowser' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/WebBrowser.php', 41 | 'phpQueryPlugin_example' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery/plugins/example.php', 42 | 'phpQueryPlugins' => __DIR__ . '/..' . '/electrolinux/phpquery/phpQuery/phpQuery.php', 43 | ); 44 | 45 | public static function getInitializer(ClassLoader $loader) 46 | { 47 | return \Closure::bind(function () use ($loader) { 48 | $loader->prefixLengthsPsr4 = ComposerStaticInite6b9ef67b3e4b26cfc57513f2e75395d::$prefixLengthsPsr4; 49 | $loader->prefixDirsPsr4 = ComposerStaticInite6b9ef67b3e4b26cfc57513f2e75395d::$prefixDirsPsr4; 50 | $loader->classMap = ComposerStaticInite6b9ef67b3e4b26cfc57513f2e75395d::$classMap; 51 | 52 | }, null, ClassLoader::class); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/api-reference/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: phpQuery ] 21 | [ all elements ] 22 | | 23 |
|
33 |
34 | Packages:35 | Todo List 36 | 37 |phpQuery 38 | Files: 39 |
40 | Callback.php 42 | DOMDocumentWrapper.php DOMEvent.php phpQuery.php phpQueryEvents.php 46 | phpQueryObject.php 47 | 48 | Classes: 49 | 60 | |
61 |
62 |
|
80 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: phpQuery ] 21 | [ all elements ] 22 | | 23 |
|
33 |
34 | Packages:35 | Todo List 36 | 37 |phpQuery 38 | Files: 39 |
40 | Callback.php 42 | DOMDocumentWrapper.php DOMEvent.php phpQuery.php phpQueryEvents.php 46 | phpQueryObject.php 47 | 48 | Classes: 49 | 60 | |
61 |
62 |
|
80 |
"; 86 | //print $result; 87 | //print "\n"; -------------------------------------------------------------------------------- /demo/vendor/electrolinux/phpquery/api-reference/phpQuery/_DOMEvent.php.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
91 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
91 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
91 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: phpQuery ] 21 | [ all elements ] 22 | | 23 |
|
33 |
34 | Packages:35 | Todo List 36 | 37 |phpQuery 38 | 39 | |
40 |
41 |
|
106 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 | 41 |
42 | Callback.php 43 | 44 | DOMDocumentWrapper.php DOMEvent.php 46 | phpQuery.php 47 | 48 | phpQueryEvents.php 50 | phpQueryObject.php 51 | x 52 | 53 | dasdasdsa
55 |
56 | Callback
66 | CallbackParam CallbackReference 59 | DOMDocumentWrapper 60 | DOMEvent phpQuery phpQueryEvents phpQueryObject phpQueryPlugins 65 | |
67 |
68 |
69 |
|
97 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
101 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
127 |
This is paragraph of first LI
13 |News 1 title
14 |News 1 body
15 |This is paragraph of first LI
19 |News 2 title
20 |News 2 body
21 |This is paragraph of first LI
24 |News 3
25 |News 3 body
26 |paragraph after UL
29 |{$result}").'
111 | Éditorial de l\'institution Saint-Pierre.
112 | Hors paragraphe.'; 113 | $doc->find('p')->html($string); 114 | if (pq('img')->length == 1) { 115 | print "Test '{$testName}' PASSED :)"; 116 | print $doc->htmlOuter(); 117 | } else { 118 | print "Test '{$testName}' FAILED !!! "; 119 | print $doc->htmlOuter('htmlentities'); 120 | } 121 | print "\n"; 122 | 123 | $testName = 'Text insertion'; 124 | $doc = phpQuery::newDocument('| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: phpQuery ] 21 | [ all elements ] 22 | | 23 |
|
33 |
34 | Packages:35 | Todo List 36 | 37 |phpQuery 38 | 39 | |
40 |
41 |
|
99 |
This is paragraph of first LI
165 |News 1 title
166 |News 1 body
167 |This is paragraph of first LI
171 |News 2 title
172 |News 2 body
173 |This is paragraph of first LI
176 |News 3
177 |News 3 body
178 |paragraph after UL
181 |{$result}").'| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
216 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: phpQuery ] 21 | [ all elements ] 22 | | 23 |
|
33 |
34 | Packages:35 | Todo List 36 | 37 |phpQuery 38 | 39 | 40 | 41 | |
42 |
43 |
|
225 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
254 |
| phpQuery | 12 |
| [ class tree: phpQuery ] [ index: 21 | phpQuery ] [ all 22 | elements ] 23 | | 24 |
|
34 |
35 | Packages:36 | Todo List 37 | 38 |phpQuery 39 | Files: 40 |
41 | Callback.php 42 | 43 | DOMDocumentWrapper.php DOMEvent.php 45 | phpQuery.php 46 | 47 | phpQueryEvents.php 49 | phpQueryObject.php 50 | Classes: 51 | 62 | |
63 |
64 |
|
292 |