protected function updateLocalObject(\DataObject $localObject, \ArrayData $remoteObject) { parent::updateLocalObject($localObject, $remoteObject); if ($this->isRemoteObjectPublished($remoteObject)) { // Publish imported pages $localObject->publish('Stage', 'Live'); } }
public function __construct(\LegacyImportTask $task, $parameters, $helpers = array()) { $this->strategy = self::STRATEGY_TRUNCATE; parent::__construct($task, $parameters, $helpers); }
public function __construct(LegacyImportTask $task, $parameters, $helpers = array()) { $this->targetClass = 'Comment'; parent::__construct($task, $parameters, $helpers); }
public function __construct(LegacyImportTask $task, $parameters, $helpers = array()) { $this->targetClass = 'File'; $this->idColumns = array('Filename'); parent::__construct($task, $parameters, $helpers); }