array_push($properties, $cell->getAttribute("Units"));
     array_push($properties, $cell->getAttribute("MaxConstraintUsed"));
     array_push($properties, $cell->getAttribute("MaxConstraint"));
     array_push($properties, $cell->getAttribute("MinConstraintUsed"));
     array_push($properties, $cell->getAttribute("MinConstraint"));
     array_push($properties, $cell->getAttribute("ShowSlider"));
     array_push($properties, $cell->getAttribute("SliderMax"));
     array_push($properties, $cell->getAttribute("SliderMin"));
     break;
 case "Link":
     array_push($properties, "link");
     array_push($properties, $cell->id);
     array_push($properties, sanitizeName($cell->getAttribute("name"), "Link"));
     array_push($properties, cleanNote($cell->getAttribute("Note")));
     array_push($properties, connectionValue(orig($cell->source)));
     array_push($properties, connectionValue(orig($cell->target)));
     break;
     /*case "Display":
     		array_push($properties, "display");
     		array_push($properties, $cell->id);
     		array_push($properties, $cell->getAttribute("name"));
     		array_push($properties, cleanNote($cell->getAttribute("Note")));
     		array_push($properties, $cell->getAttribute("Type"));
     		$p = $cell->getAttribute("Primitives");
     		if($cell->getAttribute("ScatterplotOrder") == "Y Primitive, X Primitive"){
     			$items = split(",", $p);
     			$temp = $items[1];
     			$items[1] = $items[0];
     			$items[0] = $temp;
     			$p = join(",", $items);
     		}
Example #2
0
 public function xhtml()
 {
     global $MERGED_DIFF;
     $this->doc = new DOMDocument();
     $this->root = $this->doc->createElement('div');
     $this->doc->appendChild($this->root);
     $text = '';
     $i = 1;
     foreach ($MERGED_DIFF as $op) {
         if (!is_array($op) && $op->from == SAME_OP) {
             $text .= orig($op);
             continue;
         }
         if ($text) {
             $this->copy($text);
             $text = '';
         }
         $this->diffOpOutput($op, $i++);
     }
     if ($text) {
         $this->copy($text);
     }
     echo $this->doc->saveXML($this->root);
     $form = new Doku_Form(array('id' => 'diff_form'));
     $form->addHidden($this->new_input_name(), '');
     $form->addHidden($this->old_input_name(), '');
     $form->addElement(form_makeButton('submit', $this->action(), 'save', array('id' => 'diffsubmit')));
     echo $form->getForm();
     echo cancel_button();
 }