Exemplo n.º 1
0
 function processBindingOptions($boundProperty, $options, &$boundValue)
 {
     parent::processBindingOptions($boundProperty, $options, $boundValue);
     switch ($boundProperty) {
         case 'contentValues':
             if ($options[WFBindingSetup::WFBINDINGSETUP_INSERTS_NULL_PLACEHOLDER]) {
                 $defaultValue = $options[WFBindingSetup::WFBINDINGSETUP_NULL_PLACEHOLDER];
                 $boundValue = array_merge(array($defaultValue), $boundValue);
             }
             break;
         case 'contentLabels':
             if ($options[WFBindingSetup::WFBINDINGSETUP_INSERTS_NULL_PLACEHOLDER]) {
                 $defaultLabel = $options[WFBindingSetup::WFBINDINGSETUP_NULL_PLACEHOLDER];
                 $boundValue = array_merge(array($defaultLabel), $boundValue);
             }
             break;
         case 'options':
             if ($options[WFBindingSetup::WFBINDINGSETUP_INSERTS_NULL_PLACEHOLDER]) {
                 $defaultLabel = $options[WFBindingSetup::WFBINDINGSETUP_NULL_PLACEHOLDER];
                 WFLog::log("BEFORE: " . var_export($boundValue, true));
                 $boundValue = array('' => $defaultLabel) + $boundValue;
                 WFLog::log("AFTER: " . var_export($boundValue, true));
             }
             break;
     }
 }