deprecated/classes/Pods.php
public function publicForm( $fields = null, $label = 'Save Changes', $thankyou_url = null ) {

		if ( Pod::$deprecated_notice ) {
			pods_deprecated( 'Pods::publicForm', '2.0', 'Pods::form' );
		}

		if ( ! empty( $fields ) ) {
			// Just update field name here, form() will handle the rest
			foreach ( $fields as $k => $field ) {
				$name = $k;

				if ( ! is_array( $field ) ) {
					$name  = $field;
					$field = array();
				} elseif ( isset( $field['name'] ) ) {
					$name = $field['name'];
				}

				if ( in_array(
					$name, array(
						'created',
						'modified',
						'author',
					), true
				) && isset( $this->obj->fields[ $name . '2' ] ) ) {
					$name .= '2';
				}

				$field['name'] = $name;

				$fields[ $k ] = $field;
			}//end foreach
		}//end if

		echo $this->obj->form( $fields, $label, $thankyou_url );
	}
public function publicForm( $fields = null, $label = 'Save Changes', $thankyou_url = null ) {

		if ( Pod::$deprecated_notice ) {
			pods_deprecated( 'Pods::publicForm', '2.0', 'Pods::form' );
		}

		if ( ! empty( $fields ) ) {
			// Just update field name here, form() will handle the rest
			foreach ( $fields as $k => $field ) {
				$name = $k;

				if ( ! is_array( $field ) ) {
					$name  = $field;
					$field = array();
				} elseif ( isset( $field['name'] ) ) {
					$name = $field['name'];
				}

				if ( in_array(
					$name, array(
						'created',
						'modified',
						'author',
					), true
				) && isset( $this->obj->fields[ $name . '2' ] ) ) {
					$name .= '2';
				}

				$field['name'] = $name;

				$fields[ $k ] = $field;
			}//end foreach
		}//end if

		echo $this->obj->form( $fields, $label, $thankyou_url );
	}
public function publicForm ( $ fields = null , $ label = 'Save Changes' , $ thankyou_url = null ) { if ( Pod :: $ deprecated_notice ) { pods_deprecated ( 'Pods::publicForm' , '2.0' , 'Pods::form' ) ; } if ( ! empty ( $ fields ) ) { // Just update field name here, form() will handle the rest foreach ( $ fields as $ k => $ field ) { $ name = $ k ; if ( ! is_array ( $ field ) ) { $ name = $ field ; $ field = array ( ) ; } elseif ( isset ( $ field [ 'name' ] ) ) { $ name = $ field [ 'name' ] ; } if ( in_array ( $ name , array ( 'created' , 'modified' , 'author' , ) , true ) && isset ( $ this -> obj -> fields [ $ name . '2' ] ) ) { $ name .= '2' ; } $ field [ 'name' ] = $ name ; $ fields [ $ k ] = $ field ; } //end foreach } //end if echo $ this -> obj -> form ( $ fields , $ label , $ thankyou_url ) ; }
Build public input form

@deprecated 2.0.0

@param null   $fields
@param string $label
@param null   $thankyou_url
Build public input form