ImportOptions.php in GatherContent 8.4
File
src/Import/ImportOptions.php
View source
<?php
namespace Drupal\gathercontent\Import;
class ImportOptions {
public $nodeUpdateMethod = NodeUpdateMethod::ALWAYS_UPDATE;
public $createNewRevision = FALSE;
public $publish = FALSE;
public $newStatus = NULL;
public $parentMenuItem = NULL;
public $operationUuid = NULL;
public function __construct($node_update_method = NodeUpdateMethod::ALWAYS_UPDATE, $publish = FALSE, $create_new_revision = FALSE, $new_status = NULL, $parent_menu_item = NULL, $operation_uuid = NULL) {
$this->nodeUpdateMethod = $node_update_method;
$this->createNewRevision = $create_new_revision;
$this->publish = $publish;
$this->newStatus = filter_var($new_status, FILTER_VALIDATE_INT);
$this->parentMenuItem = $parent_menu_item;
$this->operationUuid = $operation_uuid;
}
public function getNodeUpdateMethod() {
return $this->nodeUpdateMethod;
}
public function setNodeUpdateMethod($nodeUpdateMethod) {
$this->nodeUpdateMethod = $nodeUpdateMethod;
return $this;
}
public function getCreateNewRevision() {
return $this->createNewRevision;
}
public function setCreateNewRevision($createNewRevision) {
$this->createNewRevision = $createNewRevision;
return $this;
}
public function getPublish() {
return $this->publish;
}
public function setPublish($publish) {
$this->publish = $publish;
return $this;
}
public function getNewStatus() {
return $this->newStatus;
}
public function setNewStatus($new_status) {
$this->newStatus = $new_status;
return $this;
}
public function getParentMenuItem() {
return $this->parentMenuItem;
}
public function setParentMenuItem($parent_menu_item) {
$this->parentMenuItem = $parent_menu_item;
return $this;
}
public function getOperationUuid() {
return $this->operationUuid;
}
public function setOperationUuid($operation_uuid) {
$this->operationUuid = $operation_uuid;
return $this;
}
}
Classes
Name |
Description |
ImportOptions |
A class for storing and serializing the import/update options of a node. |