예제 #1
0
 /**
  * Override parent method so that action type can be set from X2Flow create action 
  */
 public function getEditableFieldNames($suppressAttributeLabels = true)
 {
     $editableFieldNames = parent::getEditableFieldNames($suppressAttributeLabels);
     if ($this->scenario === 'X2FlowCreateAction') {
         if ($suppressAttributeLabels) {
             $editableFieldNames[] = 'type';
         } else {
             $editableFieldNames['type'] = $this->getAttributeLabel('type');
         }
     }
     return $editableFieldNames;
 }