Lines Matching defs:name

431      * @param string $link The link name
443 * @param string $name name for the link
445 public function locallink($hash, $name = null)
447 if (is_array($name)) {
448 $this->_firstimage($name['src']);
449 if ($name['type'] == 'internalmedia') {
450 $this->_recordMediaUsage($name['src']);
459 * @param string|array|null $name name for the link, array for media file
461 public function internallink($id, $name = null)
465 if (is_array($name)) {
466 $this->_firstimage($name['src']);
467 if ($name['type'] == 'internalmedia') {
468 $this->_recordMediaUsage($name['src']);
490 $name = $this->_getLinkTitle($name, $default, $id);
491 $this->doc .= $name;
499 * @param string|array|null $name name for the link, array for media file
501 public function externallink($url, $name = null)
503 if (is_array($name)) {
504 $this->_firstimage($name['src']);
505 if ($name['type'] == 'internalmedia') {
506 $this->_recordMediaUsage($name['src']);
511 $this->doc .= $this->_getLinkTitle($name, '<'.$url.'>');
521 * @param string|array $name name for the link, array for media file
525 public function interwikilink($match, $name, $wikiName, $wikiUri)
527 if (is_array($name)) {
528 $this->_firstimage($name['src']);
529 if ($name['type'] == 'internalmedia') {
530 $this->_recordMediaUsage($name['src']);
536 $name = $this->_getLinkTitle($name, $wikiUri);
537 $this->doc .= $name;
545 * @param string|array $name name for the link, array for media file
547 public function windowssharelink($url, $name = null)
549 if (is_array($name)) {
550 $this->_firstimage($name['src']);
551 if ($name['type'] == 'internalmedia') {
552 $this->_recordMediaUsage($name['src']);
557 if ($name) {
558 $this->doc .= $name;
571 * @param string|array $name name for the link, array for media file
573 public function emaillink($address, $name = null)
575 if (is_array($name)) {
576 $this->_firstimage($name['src']);
577 if ($name['type'] == 'internalmedia') {
578 $this->_recordMediaUsage($name['src']);
583 if ($name) {
584 $this->doc .= $name;
651 * Removes any Namespace from the given name but keeps
656 * @param string $name
660 public function _simpleTitle($name)
664 if (is_array($name)) {
673 $name = preg_replace('!.*'.$nssep.'!', '', $name);
674 //if there is a hash we use the anchor name only
675 $name = preg_replace('!.*#!', '', $name);
676 return $name;