Type
class Type extends ConcreteObject (View source)
Properties
$error | from ConcreteObject |
Methods
Get the ID of this workflow type.
Get the handle of this workflow type.
Get the name of this workflow type.
Get the ID of the package that created this workflow type.
Get the handle of the package that created this workflow type.
Gets all workflows belonging to this type, sorted by their display name.
Delete this workflow type and all workflows belonging to this type.
Gets a Workflow Type by handle.
Get the list of the currently installed workflow types, sorted by their name.
Get the list of the currently installed workflow types that were created by a package, sorted by their name.
Details
loadError($error)
No description
isError()
No description
getError()
No description
setPropertiesFromArray($arr)
No description
static
camelcase($file)
No description
static
uncamelcase($string)
No description
int
getWorkflowTypeID()
Get the ID of this workflow type.
string
getWorkflowTypeHandle()
Get the handle of this workflow type.
string
getWorkflowTypeName()
Get the name of this workflow type.
int
getPackageID()
Get the ID of the package that created this workflow type.
string|bool
getPackageHandle()
Get the handle of the package that created this workflow type.
Workflow[]
getWorkflows()
Gets all workflows belonging to this type, sorted by their display name.
delete()
Delete this workflow type and all workflows belonging to this type.
static Type
add(string $wftHandle, string $wftName, Package|Package|null|bool $pkg = false)
Add a new workflow type.
static Type|null
getByID(int $wftID)
Get a workflow type given its ID.
static Type|null
getByHandle($wftHandle)
Gets a Workflow Type by handle.
static Type[]
getList()
Get the list of the currently installed workflow types, sorted by their name.
static Type[]
getListByPackage(Package|Package $pkg)
Get the list of the currently installed workflow types that were created by a package, sorted by their name.
static
exportList(SimpleXMLElement $xml)
Export the currently installed workflow types to XML.