public function Link($action = null) { if ($this->multiRecordAction) { return $this->form->FormAction() . '/field/' . $this->multiRecordAction . '/' . $action; } return parent::Link($action); }
public function Link($action = null) { $cModField = ContentModuleField::curr(); $link = ''; //pass the id so $OtherID is always parsed if ($cModField) { $name = $this->contentModuleFieldName ? $this->contentModuleFieldName : $this->getName(); $link = $cModField->Link('modulefield'); $query = ''; if (stripos($link, '?') !== false) { $parts = explode('?', $link); $link = $parts[0]; $query = '?' . $parts[1]; } $link = Controller::join_links($link, $name, $action, $query); } else { $link = parent::Link($action); } return $link; }
/** * @param string $action * @return string */ public function Link($action = null) { return Controller::join_links($this->parent->Link(), '/select/', $action); }