Abstract list working in general, tested with single example
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user