function getField() { $field_obj = new HTMLHidden(); $field_obj->addParams($this->params); $field = $field_obj->getField(); return $field; }
function getField() { $value = $this->getParam('value'); $field = $value . "\n"; $field_obj = new HTMLHidden(); $field_obj->addParams($this->params); $field .= $field_obj->getField(); $field .= "\n"; $join_table = $this->getParam('join_table'); if (isset($join_table['key_field'])) { $row_data = $this->getParam('row_data'); $join_table_params = array('name' => $join_table['key_field'], 'value' => $row_data[$join_table['key_field']]); $field_obj = new HTMLHidden(); $field_obj->addParams($join_table_params); $field .= $field_obj->getField(); } return $field; }
function getField() { $value = $this->getParam('value'); $key_field_value = $this->getParam('key_field_value'); $external_link = $this->getParam('external_link'); switch ($this->params['mode']) { case 'list': $is_link = $this->getParam('is_link'); $link = $this->getParam('link'); // var_dump($key_field_value); exit; if ($is_link && $link && $key_field_value) { $link = str_replace('*', $key_field_value, $link); $link = $this->getURLString($link); $field = '<a href="' . $link . '">' . $value . '</a>' . "\n"; } elseif ($external_link) { $external_link = str_replace('*', $value, $external_link); $external_link = $this->getURLString($external_link); $field = '<a href="' . $external_link . '">' . $value . '</a>' . "\n"; } else { $field = (string) $value; } break; case 'single': if ($external_link) { $external_link = str_replace('*', $value, $external_link); $external_link = $this->getURLString($external_link); $field = '<a href="' . $external_link . '">' . $value . '</a>' . "\n"; } else { $field = $value . "\n"; } $this->params['value'] = $value; $field_obj = new HTMLHidden(); $field_obj->addParams($this->params); $field .= $field_obj->getField(); break; } return $field; }