| @@ 148-160 (lines=13) @@ | ||
| 145 | * In the original fight ( child ) return the field that contains data to copy to parent |
|
| 146 | * @return null|string |
|
| 147 | */ |
|
| 148 | public function getValueToUpdate() |
|
| 149 | { |
|
| 150 | if ($this->c1 != null && $this->c2 != null) { |
|
| 151 | return null; |
|
| 152 | } |
|
| 153 | if ($this->c1 != null) { |
|
| 154 | return "c1"; |
|
| 155 | } |
|
| 156 | if ($this->c2 != null) { |
|
| 157 | return "c2"; |
|
| 158 | } |
|
| 159 | return null; |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| 163 | * Check if we are able to fill the parent fight or not |
|
| @@ 141-153 (lines=13) @@ | ||
| 138 | * In the original fight ( child ) return the field that contains data to copy to parent |
|
| 139 | * @return null|string |
|
| 140 | */ |
|
| 141 | public function getValueToUpdate() |
|
| 142 | { |
|
| 143 | if ($this->c1 != null && $this->c2 != null) { |
|
| 144 | return null; |
|
| 145 | } |
|
| 146 | if ($this->c1 != null) { |
|
| 147 | return "c1"; |
|
| 148 | } |
|
| 149 | if ($this->c2 != null) { |
|
| 150 | return "c2"; |
|
| 151 | } |
|
| 152 | return null; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * Check if we are able to fill the parent fight or not |
|