diff --git a/README b/README index 982bc286d7aeb4f86a3914e680ea2509c05da0ab..4b47ecf11e55cf05aaa2808db0e3e3f5b95c9ab6 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ lodspeakr - Linked Open Data Simple Publishing Kit author: Alvaro Graves (alvaro@graves.cl) -version: 20120316 +version: 20120318 Simplest Installation --------------------- diff --git a/lib/Haanga/lib/Haanga/Extension/Filter/Explode.php b/lib/Haanga/lib/Haanga/Extension/Filter/Explode.php new file mode 100644 index 0000000000000000000000000000000000000000..7e6deae3c607a0bf519281e00e71abd01867bc9c --- /dev/null +++ b/lib/Haanga/lib/Haanga/Extension/Filter/Explode.php @@ -0,0 +1,13 @@ +<?php + +class Haanga_Extension_Filter_Explode +{ + static function generator($compiler, $args) + { + if (count($args) != 2) { + $compiler->Error("Explode only needs two parameter"); + } + + return hexec('explode', $args[1], $args[0]); + } +} diff --git a/lib/Haanga/lib/Haanga/Extension/Filter/Path.php b/lib/Haanga/lib/Haanga/Extension/Filter/Path.php new file mode 100644 index 0000000000000000000000000000000000000000..a47d2bb55bd8a7905e97961d209c4a4eb4a3e2fd --- /dev/null +++ b/lib/Haanga/lib/Haanga/Extension/Filter/Path.php @@ -0,0 +1,9 @@ +<?php + +class Haanga_Extension_Filter_Path +{ + static function generator($cmp, $args) + { + return hexec('parse_url', $args[0], hconst('PHP_URL_PATH')); + } +} diff --git a/lib/Haanga/lib/Haanga/Extension/Filter/Pop.php b/lib/Haanga/lib/Haanga/Extension/Filter/Pop.php new file mode 100644 index 0000000000000000000000000000000000000000..5d3914a415d0ed10eded2a564030ccb15d786581 --- /dev/null +++ b/lib/Haanga/lib/Haanga/Extension/Filter/Pop.php @@ -0,0 +1,13 @@ +<?php + +class Haanga_Extension_Filter_Pop +{ + static function generator($compiler, $args) + { + if (count($args) != 1) { + $compiler->Error("Pop only needs two parameter"); + } + + return hexec('array_pop', $args[0]); + } +}