symphony/lib/toolkit/fields/field.checkbox.php 1 location
|
@@ 300-313 (lines=14) @@
|
| 297 |
|
return $this->prepareExportValue($data, ExportableField::POSTDATA, $entry_id); |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 301 |
|
{ |
| 302 |
|
$status = $message = null; |
| 303 |
|
$modes = (object)$this->getImportModes(); |
| 304 |
|
$value = $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 305 |
|
|
| 306 |
|
if ($mode === $modes->getValue) { |
| 307 |
|
return $value['value']; |
| 308 |
|
} elseif ($mode === $modes->getPostdata) { |
| 309 |
|
return $value; |
| 310 |
|
} |
| 311 |
|
|
| 312 |
|
return null; |
| 313 |
|
} |
| 314 |
|
|
| 315 |
|
/*------------------------------------------------------------------------- |
| 316 |
|
Export: |
symphony/lib/toolkit/fields/field.input.php 1 location
|
@@ 217-229 (lines=13) @@
|
| 214 |
|
Output: |
| 215 |
|
-------------------------------------------------------------------------*/ |
| 216 |
|
|
| 217 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 218 |
|
{ |
| 219 |
|
$message = $status = null; |
| 220 |
|
$modes = (object)$this->getImportModes(); |
| 221 |
|
|
| 222 |
|
if ($mode === $modes->getValue) { |
| 223 |
|
return $data; |
| 224 |
|
} elseif ($mode === $modes->getPostdata) { |
| 225 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
return null; |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
/*------------------------------------------------------------------------- |
| 232 |
|
Import: |
symphony/lib/toolkit/fields/field.textarea.php 1 location
|
@@ 266-278 (lines=13) @@
|
| 263 |
|
} |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 267 |
|
{ |
| 268 |
|
$message = $status = null; |
| 269 |
|
$modes = (object)$this->getImportModes(); |
| 270 |
|
|
| 271 |
|
if ($mode === $modes->getValue) { |
| 272 |
|
return $data; |
| 273 |
|
} elseif ($mode === $modes->getPostdata) { |
| 274 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
return null; |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
/*------------------------------------------------------------------------- |
| 281 |
|
Import: |
symphony/lib/toolkit/fields/field.upload.php 1 location
|
@@ 483-495 (lines=13) @@
|
| 480 |
|
return $li; |
| 481 |
|
} |
| 482 |
|
|
| 483 |
|
public function prepareImportValue($data, $mode, $entry_id = null) |
| 484 |
|
{ |
| 485 |
|
$message = $status = null; |
| 486 |
|
$modes = (object)$this->getImportModes(); |
| 487 |
|
|
| 488 |
|
if ($mode === $modes->getValue) { |
| 489 |
|
return $data; |
| 490 |
|
} elseif ($mode === $modes->getPostdata) { |
| 491 |
|
return $this->processRawFieldData($data, $status, $message, true, $entry_id); |
| 492 |
|
} |
| 493 |
|
|
| 494 |
|
return null; |
| 495 |
|
} |
| 496 |
|
|
| 497 |
|
public function getImportModes() |
| 498 |
|
{ |