Abstract list working in general, tested with single example

This commit is contained in:
2019-06-03 11:35:07 +02:00
parent dd52d7ca31
commit 904d31843a
5 changed files with 138 additions and 43 deletions

View File

@@ -327,12 +327,15 @@ abstract class AbstractCommonClubsModel
$vals = $this->filterPackData($vals);
$json = json_encode($vals);
return urldecode($json);
return urlencode($json);
}
public function unpack($str)
public function unpack($str, $decode = false)
{
$json = urlencode($str);
if($decode)
$json = urldecode($str);
else
$json = $str;
$data = json_decode($json, true);
$vals = $this->unpackExternalReferencesFromKeys($data);