/**
* Method to initialize member variables used by batch methods and other methods like saveorder()
*
* @return void
*
* @since 3.8.2
*/
public function initBatch()
{
if ($this->batchSet === null) {
$this->batchSet = true;
// Get current user
$this->user = Factory::getUser();
// Get table
$this->table = $this->getTable();
// Get table class name
$tc = explode('\\', \get_class($this->table));
$this->tableClassName = end($tc);
// Get UCM Type data
$this->contentType = new UCMType();
$this->type = $this->contentType->getTypeByTable($this->tableClassName) ?: $this->contentType->getTypeByAlias($this->typeAlias);
}
}