symphony/lib/toolkit/fields/field.checkbox.php 1 location
|
@@ 246-259 (lines=14) @@
|
| 243 |
|
); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 247 |
|
{ |
| 248 |
|
$status = $message = null; |
| 249 |
|
$modes = (object)$this->getImportModes(); |
| 250 |
|
$value = $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 251 |
|
|
| 252 |
|
if ($mode === $modes->getValue) { |
| 253 |
|
return $value['value']; |
| 254 |
|
} elseif ($mode === $modes->getPostdata) { |
| 255 |
|
return $value; |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
return null; |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
/*------------------------------------------------------------------------- |
| 262 |
|
Export: |
symphony/lib/toolkit/fields/field.input.php 1 location
|
@@ 227-239 (lines=13) @@
|
| 224 |
|
); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 228 |
|
{ |
| 229 |
|
$message = $status = null; |
| 230 |
|
$modes = (object)$this->getImportModes(); |
| 231 |
|
|
| 232 |
|
if ($mode === $modes->getValue) { |
| 233 |
|
return $data; |
| 234 |
|
} elseif ($mode === $modes->getPostdata) { |
| 235 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return null; |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
/*------------------------------------------------------------------------- |
| 242 |
|
Export: |
symphony/lib/toolkit/fields/field.upload.php 1 location
|
@@ 658-670 (lines=13) @@
|
| 655 |
|
); |
| 656 |
|
} |
| 657 |
|
|
| 658 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 659 |
|
{ |
| 660 |
|
$message = $status = null; |
| 661 |
|
$modes = (object)$this->getImportModes(); |
| 662 |
|
|
| 663 |
|
if ($mode === $modes->getValue) { |
| 664 |
|
return $data; |
| 665 |
|
} elseif ($mode === $modes->getPostdata) { |
| 666 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 667 |
|
} |
| 668 |
|
|
| 669 |
|
return null; |
| 670 |
|
} |
| 671 |
|
|
| 672 |
|
/*------------------------------------------------------------------------- |
| 673 |
|
Export: |
symphony/lib/toolkit/fields/field.textarea.php 1 location
|
@@ 287-299 (lines=13) @@
|
| 284 |
|
); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 288 |
|
{ |
| 289 |
|
$message = $status = null; |
| 290 |
|
$modes = (object)$this->getImportModes(); |
| 291 |
|
|
| 292 |
|
if ($mode === $modes->getValue) { |
| 293 |
|
return $data; |
| 294 |
|
} elseif ($mode === $modes->getPostdata) { |
| 295 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
return null; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
/*------------------------------------------------------------------------- |
| 302 |
|
Export: |