app = $name; $this->merge = []; return $this; } /** * 获取post临时数据 */ public function get_post_temp_data($name) { if (!isset($this->post_temp_data[$name])) { return []; } return $this->post_temp_data[$name]; } /** * 设置post临时数据 */ public function set_post_temp_data($name, $value) { if (!isset($this->post_temp_data[$name])) { $this->post_temp_data[$name] = []; } $this->post_temp_data[$name][] = $value; } /** * 格式化字段输入表单 */ public function get_field_format() { if ($this->format) { return $this->format; } if (is_file(CONFIGPATH.'field.php')) { $field = require CONFIGPATH.'field.php'; if (IS_ADMIN) { isset($field['admin']) && $field['admin'] && $this->format = $field['admin']; } elseif (IS_MEMBER) { isset($field['member']) && $field['member'] && $this->format = $field['member']; } elseif (isset($field['home']) && $field['home']) { $this->format = $field['home']; } } if (!$this->format) { $this->format = '