Lines Matching refs:key
58 * @param string $key Property name.
61 public function __get($key) argument
63 $keyType = $this->keyType($key);
64 $keyDataType = $this->dataType($key);
65 if ($keyType && !isset($this->processed[$key])) {
66 if (isset($this->modelData[$key])) {
67 $val = $this->modelData[$key];
77 $this->modelData[$key][$arrayKey] =
81 $this->modelData[$key] = new $keyType($val);
88 $this->modelData[$key] = $arrayObject;
90 $this->processed[$key] = true;
93 return isset($this->modelData[$key]) ? $this->modelData[$key] : null;
105 foreach ($array as $key => $val) {
106 if ($keyType = $this->keyType($key)) {
107 $dataType = $this->dataType($key);
109 $this->$key = array();
112 $this->{$key}[$itemKey] = $itemVal;
114 $this->{$key}[$itemKey] = new $keyType($itemVal);
118 $this->$key = $val;
120 $this->$key = new $keyType($val);
122 unset($array[$key]);
123 } elseif (property_exists($this, $key)) {
124 $this->$key = $val;
125 unset($array[$key]);
126 } elseif (property_exists($this, $camelKey = $this->camelCase($key))) {
156 foreach ($this->modelData as $key => $val) {
159 $object->$key = $this->nullPlaceholderCheck($result);
188 foreach ($value as $key => $a_value) {
191 $key = $this->getMappedName($key);
192 $return[$key] = $this->nullPlaceholderCheck($a_value);
214 private function getMappedName($key) argument
216 if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) {
217 $key = $this->internal_gapi_mappings[$key];
219 return $key;
233 foreach ($keys as $key) {
234 if (is_string($key)) {
291 protected function keyType($key) argument
293 $keyType = $key . "Type";
301 protected function dataType($key) argument
303 $dataType = $key . "DataType";
310 public function __isset($key) argument
312 return isset($this->modelData[$key]);
315 public function __unset($key) argument
317 unset($this->modelData[$key]);