webCOMAND

SystemTask::__construct()

Create a new System Task object.  This constructor is not typically called directly.  Instead, System Tasks are typically created through start_bg_task() which will start the corresponding background process, or less often with repo::new_object() to simply create a repository object without a corresponding process.

Prototype

SystemTask __construct(repo $repo, ContentType $content_type = NULL, $id = 0, $is_aggregate = FALSE)

Parameters

  • repo - The repository that this object is bound to/created from.
  • content_type - The content type that this object corresponds to.
  • id - The database ID that this object corresponds to.
  • is_aggregate - Whether or not the object is an aggregate (i.e. the product of an aggregate query, so it potentially contains information across multiple rows).

Example

$task = new SystemTask($repo, $);