diff --git a/code/workflow/SetPropertyAction.php b/code/workflow/SetPropertyAction.php deleted file mode 100644 index 8660476..0000000 --- a/code/workflow/SetPropertyAction.php +++ /dev/null @@ -1,41 +0,0 @@ - - */ -class SetPropertyAction extends WorkflowAction -{ - private static $db = array( - 'Property' => 'Varchar', - 'Value' => 'Text', - ); - - public function execute(WorkflowInstance $workflow) - { - if (!$target = $workflow->getTarget()) { - return true; - } - - if ($target->hasField($this->Property)) { - $target->setField($this->Property, $this->Value); - } - - $target->write(); - - return true; - } - - public function getCMSFields() - { - $fields = parent::getCMSFields(); - - $fields->addFieldsToTab('Root.Main', array( - TextField::create('Property', 'Property')->setRightTitle('Property to set; if this exists as a setter method, will be called passing the value'), - TextField::create('Value', 'Value') - )); - - return $fields; - } -}