Lines Matching defs:name

438      * @param string $link The link name
450 * @param string $name name for the link
452 public function locallink($hash, $name = null)
454 if (is_array($name)) {
455 $this->_firstimage($name['src']);
456 if ($name['type'] == 'internalmedia') {
457 $this->_recordMediaUsage($name['src']);
466 * @param string|array|null $name name for the link, array for media file
468 public function internallink($id, $name = null)
472 if (is_array($name)) {
473 $this->_firstimage($name['src']);
474 if ($name['type'] == 'internalmedia') {
475 $this->_recordMediaUsage($name['src']);
498 $name = $this->_getLinkTitle($name, $default, $id);
499 $this->doc .= $name;
507 * @param string|array|null $name name for the link, array for media file
509 public function externallink($url, $name = null)
511 if (is_array($name)) {
512 $this->_firstimage($name['src']);
513 if ($name['type'] == 'internalmedia') {
514 $this->_recordMediaUsage($name['src']);
519 $this->doc .= $this->_getLinkTitle($name, '<' . $url . '>');
529 * @param string|array $name name for the link, array for media file
533 public function interwikilink($match, $name, $wikiName, $wikiUri)
535 if (is_array($name)) {
536 $this->_firstimage($name['src']);
537 if ($name['type'] == 'internalmedia') {
538 $this->_recordMediaUsage($name['src']);
544 $name = $this->_getLinkTitle($name, $wikiUri);
545 $this->doc .= $name;
553 * @param string|array $name name for the link, array for media file
555 public function windowssharelink($url, $name = null)
557 if (is_array($name)) {
558 $this->_firstimage($name['src']);
559 if ($name['type'] == 'internalmedia') {
560 $this->_recordMediaUsage($name['src']);
565 if ($name) {
566 $this->doc .= $name;
579 * @param string|array $name name for the link, array for media file
581 public function emaillink($address, $name = null)
583 if (is_array($name)) {
584 $this->_firstimage($name['src']);
585 if ($name['type'] == 'internalmedia') {
586 $this->_recordMediaUsage($name['src']);
591 if ($name) {
592 $this->doc .= $name;
671 * Removes any Namespace from the given name but keeps
674 * @param string $name
680 public function _simpleTitle($name)
684 if (is_array($name)) {
693 $name = preg_replace('!.*' . $nssep . '!', '', $name);
694 //if there is a hash we use the anchor name only
695 $name = preg_replace('!.*#!', '', $name);
696 return $name;