From: Vincent Vanwaelscappel Date: Wed, 20 Feb 2019 17:33:09 +0000 (+0100) Subject: wip #2602 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=118a665cb60c4b05060f90d447ceb5ef2907bfd2;p=cubist_util.git wip #2602 @0.25 --- diff --git a/.gitignore b/.gitignore index 723ef36..8925195 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.idea \ No newline at end of file +.idea +vendor +composer.lock \ No newline at end of file diff --git a/composer.json b/composer.json index f3c69ef..a20fedc 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,8 @@ "ext-dom": "*", "ext-simplexml": "*", "ext-json": "*", - "ext-iconv": "*" + "ext-iconv": "*", + "zendframework/zend-filter": "^2.9@dev", + "zendframework/zend-json": "^3.1@dev" } -} \ No newline at end of file +} diff --git a/src/Cubist/Util/Json.php b/src/Cubist/Util/Json.php new file mode 100644 index 0000000..644455a --- /dev/null +++ b/src/Cubist/Util/Json.php @@ -0,0 +1,45 @@ +hasMethod($f)) { return false; } @@ -37,7 +37,7 @@ class WebVideo { } protected static function _getGenericUrl($url) { - $meta = CubeIT_Util_Html::getMicrodata($url); + $meta = Html::getMicrodata($url); $res = ''; foreach ($meta->getElementsByTagName('*') as $m) {