Lines Matching refs:opt
67 $opt = array(
76 list($optstr,$opt['content']) = explode('>',$match,2);
87 $opt['name'] = htmlspecialchars(trim($matches[1], '"\''), ENT_QUOTES);
89 $opt['ports'] = $matches[1];
91 $opt['rows'] = $matches[1];
93 $opt['groups'] = $matches[1];
95 $opt['rotate'] = $matches[1];
97 $opt['switch'] = $matches[1];
100 return $opt;
105 function ethernet_svg($row, $position, $port, $item, $opt, $imagewidth, $imageheight) { argument
118 $fullcaption = "<div class=\'title\'>" . $opt['name'] . " Port $port</div>";
123 $group = floor($position/$opt['groups']);
181 function render($mode, &$renderer, $opt) { argument
184 $content = $opt['content'];
222 $portsPerRow = ceil($opt['ports']/$opt['rows']);
223 $groups = ceil($portsPerRow/$opt['groups']);
225 $imageheight = 20+$opt['rows']*66;
230 if( $opt['rotate'] ){
244 if( $opt['rotate'] ){
257 …"middle" font-size="12" fill="#fff" y="' . $imageheight/2 . '" x="70">' . $opt['name'] . ' </text>…
259 if ($opt['switch']) {
261 if ($opt['switch'] == 1) {
271 for ($row=1; $row <= $opt['rows']; $row++) {
280 …$renderer->doc .= $this->ethernet_svg($row, $position, $port, $items[$port], $opt, $imagewidth, $i…
292 for ($row=1; $row <= $opt['rows']; $row++) {
297 if ($endPort > $opt['ports']) { $endPort = $opt['ports']; }
302 …$renderer->doc .= $this->ethernet_svg($row, $position, $port, $items[$port], $opt, $imagewidth, $i…
307 if( $opt['rotate'] ){