diff --git a/application/views/helpers/DocDescription.php b/application/views/helpers/DocDescription.php
new file mode 100644
index 00000000..b63d753a
--- /dev/null
+++ b/application/views/helpers/DocDescription.php
@@ -0,0 +1,8 @@
+serviceTypes = $serviceTypes;
+ $output = '';
+ if (count($params)>0) {
+ $output.= '
';
+ foreach ($params as $param) {
+ $output.= $this->formatParam($param);
+ }
+ $output.= '
';
+ }
+ return $output;
+ }
+
+ private function parseType($type)
+ {
+ $output = '';
+ if (array_key_exists($type, $this->serviceTypes)) {
+ $types = $this->serviceTypes[$type];
+ $output.= '';
+ foreach ($types as $param) {
+ $output.= $this->formatParam($param);
+ }
+ $output.= '
';
+ }
+ return $output;
+ }
+
+ private function formatParam($param)
+ {
+ $output = '';
+ $output.= '';
+ $output.= $param['type'] . ' ' . $param['name'];
+ if (isset($param['description']) && !empty($param['description'])) {
+ $output.= ' : '.$param['description'];
+ }
+ if (!in_array($param['type'], array(
+ 'string', 'str',
+ 'boolean', 'bool',
+ 'interger', 'int',
+ 'float', 'double',
+ 'array', 'object', 'mixed'))) {
+ $output.= $this->parseType($param['type']);
+ }
+ $output.= '';
+ return $output;
+ }
+
+}
\ No newline at end of file
diff --git a/application/views/helpers/DocReturn.php b/application/views/helpers/DocReturn.php
new file mode 100644
index 00000000..3511e73e
--- /dev/null
+++ b/application/views/helpers/DocReturn.php
@@ -0,0 +1,45 @@
+serviceTypes = $serviceTypes;
+ return $this->parseType($type);
+ }
+
+ private function parseType($type)
+ {
+ $output = '';
+ if (array_key_exists($type, $this->serviceTypes)) {
+ $types = $this->serviceTypes[$type];
+ $output.= '';
+ foreach ($types as $param) {
+ $output.= $this->formatParam($param);
+ }
+ $output.= '
';
+ }
+ return $output;
+ }
+
+ private function formatParam($param){
+ $output = '';
+ $output.= '';
+ $output.= $param['type'] . ' ' . $param['name'];
+ if (isset($param['description']) && !empty($param['description'])) {
+ $output.= ' : '.$param['description'];
+ }
+ if (!in_array($param['type'], array(
+ 'string', 'str',
+ 'boolean', 'bool',
+ 'interger', 'int',
+ 'float', 'double',
+ 'array', 'object', 'mixed'))) {
+ $output.= $this->parseType($param['type']);
+ }
+ $output.= '';
+ return $output;
+ }
+
+}