Called for all fields related to the target taxonomy that are in a comment Pod

@param string $field_name
12649
private function update_commentmeta( $field_name ) {

		/** @global wpdb $wpdb */
		global $wpdb;

		// Fix up the unserialized data
		$task = "update_commentmeta_{$field_name}_unserialized";
		if ( ! $this->have_done( $task ) ) {

			$table        = $wpdb->commentmeta;
			$data         = array( 'meta_value' => $this->new_term_id );
			$where        = array(
				'meta_key'   => $field_name,
				'meta_value' => $this->term_id,
			);
			$format       = '%s';
			$where_format = array( '%s', '%s' );
			$wpdb->update( $table, $data, $where, $format, $where_format );

			$this->append_progress( $task );
		}

		// Fix up the serialized data
		$task = "update_commentmeta_{$field_name}_serialized";
		if ( ! $this->have_done( $task ) ) {

			$meta_key           = sprintf( '_pods_%s', $field_name );
			$target_serialized  = sprintf( ';i:%s;', $this->term_id );
			$replace_serialized = sprintf( ';i:%s;', $this->new_term_id );

			$wpdb->query(
				$wpdb->prepare(
					"
				UPDATE
				    {$wpdb->commentmeta}
				SET
					meta_value = REPLACE( meta_value, %s, %s )
				WHERE
				    meta_key = %s
					AND meta_value LIKE '%%%s%%'
				", $target_serialized, $replace_serialized, $meta_key, pods_sanitize_like( $target_serialized )
				)
			);

			$this->append_progress( $task );
		}//end if

	}
266009
public function unhideField($field_name)
    {
        if (($key = array_search($field_name, $this->hiddenFields)) !== false) {
            unset($this->hiddenFields[$key]);
        }
    }
116280
public function setFieldError($field, $name)
    {
        if (!$this->app->compat_42) {
            throw $this->exception('4.3', '_Obsolete');
        }
        $this->errors[$field] = (isset($this->errors[$field]) ? $this->errors[$field] : '').$name;
    }
797151
public function save_taxonomy_track_changed_fields( $term_id, $taxonomy ) {

		$no_conflict = pods_no_conflict_check( 'term' );

		if ( ! $no_conflict ) {
			$pod = $taxonomy;
			$id  = $term_id;

			PodsAPI::handle_changed_fields( $pod, $id, 'reset' );
		}

	}
497192
public function field($field_name, array $attributes = array())
    {
        if (isset($this->fields[$field_name])) {
            $field = $this->fields[$field_name];
            if (count($attributes)) {
                $field->attributes($attributes);
                $field->build();
            }

            return $field;
        }
    }
1215897
def widget_kwargs_for_field(self, field_name):
        
        if self._meta.widgets:
            return self._meta.widgets.get(field_name, {})
        return {}
1223697
public function addField($name, $actual_field = null)
    {
        if ($this->hasElement($name)) {
            if ($name == $this->id_field) {
                return $this->getElement($name);
            }
            throw $this->exception('Field with this name is already defined')
            ->addMoreInfo('field', $name);
        }
        if ($name == 'deleted' && isset($this->app->compat)) {
            /** @type Field_Deleted $f */
            $f = $this->add('Field_Deleted', $name);
            return $f->enum(array('Y', 'N'));
        }

        // $f=parent::addField($name);
        /** @type Field $f */
        $f = $this->add($this->field_class, $name);
        //

        if (!is_null($actual_field)) {
            $f->actual($actual_field);
        }

        return $f;
    }
995033
public function getField($field_name)
    {
        $field = null;
        
        if (isset($this->m_fields[$field_name]))
        {
            $field = $this->m_fields[$field_name];
        }
        else
        {
            $err_msg = '[' . $field_name . '] does not exist in table ' .
                       '[' . $this->m_name . ']';
            
            throw new \Exception($err_msg);
        }
        
        return $field;
    }
512832
function addField( $name ) {
		$this->columns[$this->FieldID( $name )] = $name;

		// Return the field list
		return $this->columns;
	}
399615
public function meta_comment_new( $form_fields ) {

		wp_enqueue_style( 'pods-form' );
		wp_enqueue_script( 'pods' );

		$groups = $this->groups_get( 'comment', 'comment' );

		$id  = null;
		$pod = null;

		$form_fields['pods_meta'] = PodsForm::field( 'pods_meta', wp_create_nonce( 'pods_meta_comment' ), 'hidden' );

		foreach ( $groups as $group ) {
			if ( empty( $group['fields'] ) ) {
				continue;
			}

			if ( null === $pod || ( is_object( $pod ) && $pod->id() != $id ) ) {
				if ( ! is_object( self::$current_pod ) || self::$current_pod->pod != $group['pod']['name'] ) {
					self::$current_pod = pods( $group['pod']['name'], $id, true );
				} elseif ( self::$current_pod->id() != $id ) {
					self::$current_pod->fetch( $id );
				}

				$pod = self::$current_pod;
			}

			foreach ( $group['fields'] as $field ) {

				if ( false === PodsForm::permission( $field['type'], $field['name'], $field, $group['fields'], $pod, $id ) ) {
					if ( pods_var( 'hidden', $field['options'], false ) ) {
						$field['type'] = 'hidden';
					} else {
						continue;
					}
				} elseif ( ! pods_has_permissions( $field['options'] ) && pods_var( 'hidden', $field['options'], false ) ) {
					$field['type'] = 'hidden';
				}

				$value = '';

				if ( ! empty( $pod ) ) {
					$value = $pod->field( array( 'name' => $field['name'], 'in_form' => true ) );
				} elseif ( ! empty( $id ) ) {
					pods_no_conflict_on( 'comment' );

					$value = get_comment_meta( $id, $field['name'], true );

					pods_no_conflict_off( 'comment' );
				}

				ob_start();
				?>
				<p class="comment-form-author comment-form-pods-meta-<?php echo esc_attr( $field['name'] ); ?> pods-field" style="<?php echo esc_attr( 'hidden' == $field['type'] ? 'display:none;' : '' ); ?>">
					<?php
					echo PodsForm::label( 'pods_meta_' . $field['name'], $field['label'], $field['help'], $field );
					echo PodsForm::field( 'pods_meta_' . $field['name'], $value, $field['type'], $field, $pod, $id );
					echo PodsForm::comment( 'pods_meta_' . $field['name'], $field['description'], $field );
					?>
				</p>
				<?php
				$form_fields[ 'pods_meta_' . $field['name'] ] = ob_get_clean();
			}
		}

		$form_fields = apply_filters( 'pods_meta_meta_comment_new', $form_fields );

		return $form_fields;
	}
1199790
function contains($field_name)
    {
        return (in_array($field_name, $this->required) ||
                in_array($field_name, $this->optional));
    }
793010
public function importField($field, $field_name = null)
    {
        $field = $this->model->hasElement($field);
        if (!$field) {
            return;
        }
        /** @type Field $field */
        if (!$field->editable()) {
            return;
        }

        if ($field_name === null) {
            $field_name = $this->_unique($this->owner->elements, $field->short_name);
        }
        $field_type = $this->getFieldType($field);
        $field_caption = $field->caption();

        $this->field_associations[$field_name] = $field;

        if ($field->listData() || $field instanceof Field_Reference) {
            if ($field_type == 'Line') {
                $field_type = 'DropDown';
            }
        }

        $form_field = $this->owner->addField($field_type, $field_name, $field_caption);
        $form_field->set($field->get());

        $field_placeholder = $field->placeholder() ?: $field->emptyText() ?: null;
        if ($field_placeholder) {
            $form_field->setAttr('placeholder', $field_placeholder);
        }

        if ($field->hint()) {
            $form_field->setFieldHint($field->hint());
        }

        if ($field->listData()) {
            /** @type Form_Field_ValueList $form_field */
            $a = $field->listData();
            $form_field->setValueList($a);
        }
        if ($msg = $field->mandatory()) {
            $form_field->validateNotNULL($msg);
        }

        if ($field instanceof Field_Reference || $field_type == 'reference') {
            $form_field->setModel($field->getModel());
        }
        if ($field->theModel) {
            $form_field->setModel($field->theModel);
        }
        if ($form_field instanceof Form_Field_ValueList && !$field->mandatory()) {
            /** @type string $text */
            $text = $field->emptyText();
            $form_field->setEmptyText($text);
        }

        if ($field->onField()) {
            call_user_func($field->onField(), $form_field);
        }

        return $form_field;
    }
33174
def validate_field(self, field_name: str) -> bool:
        
        if field_name in {"@id", "@type"}:
            return True
        result = self.schema.has_field(field_name)
        if not result:
            # todo: how to comply with our error handling policies?
            raise UndefinedFieldError("'{}' should be present in the knowledge graph schema.".format(field_name))
        return result
709253
public function field_object( $field_name ) {
		$value = apply_filters('timber/post/meta_object_field', null, $this->ID, $field_name, $this);
		$value = $this->convert($value);
		return $value;
	}
568665
private function update_setting_meta( $pod_name, $field_name ) {

		/** @global wpdb $wpdb */
		global $wpdb;

		$option_name = "{$pod_name}_{$field_name}";

		// Fix up the unserialized data
		$task = "update_setting_meta_{$pod_name}_{$field_name}_unserialized";
		if ( ! $this->have_done( $task ) ) {

			// UPDATE {$wpdb->options} SET option_value = '{$new_term_id}' WHERE option_name = '{$pod_name}_{$field_name}' AND option_value = '{$term_id}'
			$table        = $wpdb->options;
			$data         = array( 'option_value' => $this->new_term_id );
			$where        = array(
				'option_name'  => $option_name,
				'option_value' => $this->term_id,
			);
			$format       = '%s';
			$where_format = array( '%s', '%s' );
			$wpdb->update( $table, $data, $where, $format, $where_format );

			$this->append_progress( $task );
		}

		// Fix up the serialized data
		$task = "update_setting_meta_{$pod_name}_{$field_name}_serialized";
		if ( ! $this->have_done( $task ) ) {

			$target_serialized  = sprintf( ';i:%s;', $this->term_id );
			$replace_serialized = sprintf( ';i:%s;', $this->new_term_id );

			$wpdb->query(
				$wpdb->prepare(
					"
				UPDATE
					{$wpdb->options}
				SET
					option_value = REPLACE( option_value, %s, %s )
				WHERE
					option_name = %s
					AND option_value LIKE '%%%s%%'
				", $target_serialized, $replace_serialized, $option_name, pods_sanitize_like( $target_serialized )
				)
			);

			$this->append_progress( $task );
		}//end if

	}
1293890
public function addSaveButtons(array &$field, $field_name) {
    $field['#display_value'] = FALSE;
    $field['#buttons']['cancel'] = [
      '#type' => 'link',
      '#title' => $this->t('Cancel'),
      '#url' => Url::fromRoute('acm_customer.view_page', [
        'page' => $this->getPageId(),
      ]),
      '#attributes' => [
        'class' => [
          'form-item__cancel-button',
        ],
      ],
    ];
    $field['#buttons']['save'] = [
      '#type' => 'submit',
      '#value' => $this->t('Save'),
      '#submit' => ['::submitForm'],
      '#attributes' => [
        'class' => [
          'form-item__save-button',
        ],
      ],
    ];
  }
1011858
public function addEditButton(array &$field, $field_name) {
    $field['#buttons']['edit'] = [
      '#type' => 'link',
      '#title' => $this->t('Edit'),
      '#url' => Url::fromRoute('acm_customer.view_page', [
        'page' => $this->getPageId(),
        'action' => 'edit',
        'id' => $field_name,
      ]),
      '#attributes' => [
        'class' => [
          'form-item__edit-button',
        ],
      ],
    ];
  }