From 03aa7169debe596424f87e30e57fc161a17d741f Mon Sep 17 00:00:00 2001 From: Adam Backstrom Date: Thu, 13 Mar 2014 12:10:33 -0400 Subject: [PATCH] Add parse_str() action --- classes.php | 16 ++++++++++++++++ index.php | 1 + 2 files changed, 17 insertions(+) diff --git a/classes.php b/classes.php index 0542aa0..129da24 100644 --- a/classes.php +++ b/classes.php @@ -202,6 +202,22 @@ class ActionDateC extends AbstractAction } } +class ActionParseStr extends AbstractAction +{ + public function setUp() + { + $this->setContainer( new DivContainer ); + $this->setFormatter( new DbugFormatter ); + } + + public function decode() + { + parse_str($this->value, $results); + + return $results; + } +} + interface ContainerInterface { public function wrap( $contents ); diff --git a/index.php b/index.php index 2cdbb9f..96a60d7 100644 --- a/index.php +++ b/index.php @@ -46,6 +46,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) { +