ImportOptions.php in GatherContent 8.5
File
src/Import/ImportOptions.php
View source
<?php
namespace Drupal\gathercontent\Import;
class ImportOptions {
public $createNewRevision = FALSE;
public $publish = FALSE;
public $newStatus = NULL;
public $parentMenuItem = NULL;
public function __construct($publish = FALSE, $create_new_revision = FALSE, $new_status = NULL, $parent_menu_item = NULL) {
$this->createNewRevision = $create_new_revision;
$this->publish = $publish;
$this->newStatus = filter_var($new_status, FILTER_VALIDATE_INT);
$this->parentMenuItem = $parent_menu_item;
}
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;
}
}
Classes
Name |
Description |
ImportOptions |
A class for storing and serializing the import/update options of a node. |