added method to parse post data

This commit is contained in:
Stefan Puraner
2016-05-20 17:34:22 +02:00
parent dfea2bab26
commit cf272c0e40
4 changed files with 50 additions and 44 deletions
@@ -109,21 +109,6 @@ class Person extends APIv1_Controller
$this->response();
}
}
private function _parseData($person)
{
if(is_array($person))
{
foreach($person as $key=>$value)
{
if($value === "")
{
$person[$key] = null;
}
}
return $person;
}
}
private function _validate($person = NULL)
{