Updated Identity Support from SDK Core

- Moved PPModels required for Identity Support
This commit is contained in:
japatel
2014-10-14 14:15:41 -05:00
parent 0cb302326a
commit dc2ac0fd63
36 changed files with 2652 additions and 587 deletions

View File

@@ -158,7 +158,7 @@ class PPModel
/** @var self $o */
$o = new $clazz();
$o->fromArray($v);
$this->setValue($k, $o);
$this->assignValue($k, $o);
} else {
$arr = array();
foreach ($v as $nk => $nv) {
@@ -170,7 +170,7 @@ class PPModel
$arr[$nk] = $nv;
}
}
$this->setValue($k, $arr);
$this->assignValue($k, $arr);
}
} else {
$this->$k = $v;
@@ -179,7 +179,7 @@ class PPModel
return $this;
}
private function setValue($key, $value)
private function assignValue($key, $value)
{
if (ModelAccessorValidator::validate($this, $this->convertToCamelCase($key))) {
$setter = "set" . $this->convertToCamelCase($key);