public function WorkflowScheduledTransition::setValues in Workflow 7.2
Helper function for __construct. Used for all children of WorkflowTransition (aka WorkflowScheduledTransition)
Parameters
$entity_type:
$entity:
$field_name:
$old_sid:
$new_sid:
null $uid:
int $stamp:
string $comment:
Overrides WorkflowTransition::setValues
File
- includes/
Entity/ WorkflowScheduledTransition.php, line 26 - Contains workflow\includes\Entity\WorkflowScheduledTransition.
Class
- WorkflowScheduledTransition
- Implements a scheduled transition, as shown on Workflow form.
Code
public function setValues($entity_type, $entity, $field_name, $old_sid, $new_sid, $uid = NULL, $scheduled = REQUEST_TIME, $comment = '') {
// A scheduled transition does not have a timestamp, yet.
$stamp = 0;
parent::setValues($entity_type, $entity, $field_name, $old_sid, $new_sid, $uid, $stamp, $comment);
// Set the scheduled timestamp of state change.
$this->scheduled = $scheduled;
}