| @@ 61-71 (lines=11) @@ | ||
| 58 | if (is_object($value) && $oKey && $oName) { |
|
| 59 | foreach($value as $v) |
|
| 60 | { |
|
| 61 | if (property_exists($v, $oKey)) |
|
| 62 | { |
|
| 63 | $prop = $v->$oKey; |
|
| 64 | if (is_bool($prop)) |
|
| 65 | { |
|
| 66 | $this->checked = $prop; |
|
| 67 | } else |
|
| 68 | { |
|
| 69 | $this->checked = $prop == $this->value; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | } |
|
| 73 | return $this; |
|
| 74 | } |
|
| @@ 77-89 (lines=13) @@ | ||
| 74 | } |
|
| 75 | ||
| 76 | ||
| 77 | if (is_object($value) && $oKey) { |
|
| 78 | if (property_exists($value, $oKey)) |
|
| 79 | { |
|
| 80 | $prop = $value->$oKey; |
|
| 81 | if (is_bool($prop)) |
|
| 82 | { |
|
| 83 | $this->checked = $prop; |
|
| 84 | } else |
|
| 85 | { |
|
| 86 | $this->checked = $prop == $this->value; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | } |
|
| 90 | ||
| 91 | if (is_bool($value)) { |
|
| 92 | $this->checked = $value; |
|