code/transform/QueuedExternalContentImporter.php
public function getJobType() {
		$sourceObject = ExternalContent::getDataObjectFor($this->sourceObjectID);
		if (!$sourceObject) {
			$this->addMessage("ERROR: Source object $this->sourceObjectID cannot be found");
			return QueuedJob::QUEUED;
		}

		// go a couple levels deep and see how many items we're looking at
		if (!$this->includeChildren) {
			return QueuedJob::QUEUED;
		}

		$children = $sourceObject->stageChildren();
		if (!$children) {
			return QueuedJob::QUEUED;
		}
		$count = 1;

		foreach ($children as $child) {
			$count++;
			if ($count > 20) {
				$this->totalSteps = $count;
				return QueuedJob::QUEUED;
			}

			$subChildren = $child->stageChildren();
			if ($subChildren) {
				foreach ($subChildren as $sub) {
					$count++;
					if ($count > 20) {
						$this->totalSteps = $count;
						return QueuedJob::QUEUED;
					}
				}
			}
		}
		$this->totalSteps = $count;
		return QueuedJob::QUEUED;
	}
public function getJobType() {
		$sourceObject = ExternalContent::getDataObjectFor($this->sourceObjectID);
		if (!$sourceObject) {
			$this->addMessage("ERROR: Source object $this->sourceObjectID cannot be found");
			return QueuedJob::QUEUED;
		}

		// go a couple levels deep and see how many items we're looking at
		if (!$this->includeChildren) {
			return QueuedJob::QUEUED;
		}

		$children = $sourceObject->stageChildren();
		if (!$children) {
			return QueuedJob::QUEUED;
		}
		$count = 1;

		foreach ($children as $child) {
			$count++;
			if ($count > 20) {
				$this->totalSteps = $count;
				return QueuedJob::QUEUED;
			}

			$subChildren = $child->stageChildren();
			if ($subChildren) {
				foreach ($subChildren as $sub) {
					$count++;
					if ($count > 20) {
						$this->totalSteps = $count;
						return QueuedJob::QUEUED;
					}
				}
			}
		}
		$this->totalSteps = $count;
		return QueuedJob::QUEUED;
	}
public function getJobType ( ) { $ sourceObject = ExternalContent :: getDataObjectFor ( $ this -> sourceObjectID ) ; if ( ! $ sourceObject ) { $ this -> addMessage ( "ERROR: Source object $this->sourceObjectID cannot be found" ) ; return QueuedJob :: QUEUED ; } // go a couple levels deep and see how many items we're looking at if ( ! $ this -> includeChildren ) { return QueuedJob :: QUEUED ; } $ children = $ sourceObject -> stageChildren ( ) ; if ( ! $ children ) { return QueuedJob :: QUEUED ; } $ count = 1 ; foreach ( $ children as $ child ) { $ count ++ ; if ( $ count > 20 ) { $ this -> totalSteps = $ count ; return QueuedJob :: QUEUED ; } $ subChildren = $ child -> stageChildren ( ) ; if ( $ subChildren ) { foreach ( $ subChildren as $ sub ) { $ count ++ ; if ( $ count > 20 ) { $ this -> totalSteps = $ count ; return QueuedJob :: QUEUED ; } } } } $ this -> totalSteps = $ count ; return QueuedJob :: QUEUED ; }
By default jobs should just go into the default processing queue

@return String
By default jobs should just go into the default processing queue