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