Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions Src/Sunra/PhpSimple/HtmlDomParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@

namespace Sunra\PhpSimple;

require 'simplehtmldom_1_5'.DIRECTORY_SEPARATOR.'simple_html_dom.php';
define('SIMPLEHTMLDOM_VERSION', '1_8_1');
require __DIR__.DIRECTORY_SEPARATOR.'simplehtmldom_'.SIMPLEHTMLDOM_VERSION.DIRECTORY_SEPARATOR.'simple_html_dom.php';

class HtmlDomParser {

/**
* @return \simplehtmldom_1_5\simple_html_dom
* @return \simplehtmldom_{SIMPLEHTMLDOM_VERSION}\simple_html_dom
*/
static public function file_get_html() {
return call_user_func_array ( '\simplehtmldom_1_5\file_get_html' , func_get_args() );
return call_user_func_array ( '\file_get_html' , func_get_args() );
}

/**
* get html dom from string
* @return \simplehtmldom_1_5\simple_html_dom
* @return \simplehtmldom_{SIMPLEHTMLDOM_VERSION}\simple_html_dom
*/
static public function str_get_html() {
return call_user_func_array ( '\simplehtmldom_1_5\str_get_html' , func_get_args() );
return call_user_func_array ( '\str_get_html' , func_get_args() );
}
}
}

891 changes: 0 additions & 891 deletions Src/Sunra/PhpSimple/simplehtmldom_1_5/app/google.htm

This file was deleted.

144 changes: 0 additions & 144 deletions Src/Sunra/PhpSimple/simplehtmldom_1_5/app/index.php

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading