Source of file WTTreeDropdownField.php
Size: 0,701 Bytes - Last Modified: 2021-12-23T10:37:33+00:00
/var/www/docs.ssmods.com/process/src/code/WTTreeDropdownField.php
1234567891011121314151617181920212223 | <?php /** * Extends Tree Dropdown Field {@Link TreeDropdownField} so it works as a subfield of another field * Class WTTreeDropdownField */ class WTTreeDropdownField extends TreeDropdownField { /** * Return a Link to this field */ function Link($action = null) { $name = $this->name; if (($pos = stripos($name, '[')) !== false) { $name = substr($name, 0, $pos); $action = substr($this->name, $pos + 1, strlen($this->name) - 1 - ($pos + 1)) . 'Tree'; } return Controller::join_links($this->form->FormAction(), 'field/' . $name, $action); } } |