Lines Matching defs:Element

425             $Element = array(
448 $Element['attributes'] = array(
458 'text' => $Element,
982 $Element = array(
990 $Element['attributes'] = array(
995 $Elements []= $Element;
998 $Element = array(
1004 $Block['element']['text'][1]['text'] []= $Element;
1260 $Element = array(
1277 $Element['text'] = $matches[1];
1290 $Element['attributes']['href'] = $matches[1];
1294 $Element['attributes']['title'] = substr($matches[2], 1, - 1);
1303 $definition = strlen($matches[1]) ? $matches[1] : $Element['text'];
1310 $definition = strtolower($Element['text']);
1320 $Element['attributes']['href'] = $Definition['url'];
1321 $Element['attributes']['title'] = $Definition['title'];
1326 'element' => $Element,
1470 protected function element(array $Element)
1474 $Element = $this->sanitiseElement($Element);
1477 $markup = '<'.$Element['name'];
1479 if (isset($Element['attributes']))
1481 foreach ($Element['attributes'] as $name => $value)
1494 if (isset($Element['text']))
1496 $text = $Element['text'];
1500 elseif (isset($Element['rawHtml']))
1502 $text = $Element['rawHtml'];
1503 $allowRawHtmlInSafeMode = isset($Element['allowRawHtmlInSafeMode']) && $Element['allowRawHtmlInSafeMode'];
1511 if (!isset($Element['nonNestables']))
1513 $Element['nonNestables'] = array();
1516 if (isset($Element['handler']))
1518 $markup .= $this->{$Element['handler']}($text, $Element['nonNestables']);
1529 $markup .= '</'.$Element['name'].'>';
1543 foreach ($Elements as $Element)
1545 $markup .= "\n" . $this->element($Element);
1585 protected function sanitiseElement(array $Element)
1593 if (isset($safeUrlNameToAtt[$Element['name']]))
1595 $Element = $this->filterUnsafeUrlInAttribute($Element, $safeUrlNameToAtt[$Element['name']]);
1598 if ( ! empty($Element['attributes']))
1600 foreach ($Element['attributes'] as $att => $val)
1605 unset($Element['attributes'][$att]);
1610 unset($Element['attributes'][$att]);
1615 return $Element;
1618 protected function filterUnsafeUrlInAttribute(array $Element, $attribute)
1622 if (self::striAtStart($Element['attributes'][$attribute], $scheme))
1624 return $Element;
1628 $Element['attributes'][$attribute] = str_replace(':', '%3A', $Element['attributes'][$attribute]);
1630 return $Element;