public function load_value( $value, $slug, $post_id ) {
		if ( is_array( $value ) || is_object( $value ) ) {
			$values = $value;
		} else {
			$values = $this->link_fields;

			foreach ( $values as $index => $key ) {
				$values[$key] = papi_data_get(
					$post_id,
					sprintf( '%s_%s', $slug, $key ),
					$this->get_meta_type()
				);
				unset( $values[$index] );
			}
		}

		return (object) $this->prepare_link_array( $values, $slug );
	}
public function load_value( $value, $slug, $post_id ) {
		if ( is_array( $value ) || is_object( $value ) ) {
			$values = $value;
		} else {
			$values = $this->link_fields;

			foreach ( $values as $index => $key ) {
				$values[$key] = papi_data_get(
					$post_id,
					sprintf( '%s_%s', $slug, $key ),
					$this->get_meta_type()
				);
				unset( $values[$index] );
			}
		}

		return (object) $this->prepare_link_array( $values, $slug );
	}
public function load_value ( $ value , $ slug , $ post_id ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { $ values = $ value ; } else { $ values = $ this -> link_fields ; foreach ( $ values as $ index => $ key ) { $ values [ $ key ] = papi_data_get ( $ post_id , sprintf ( '%s_%s' , $ slug , $ key ) , $ this -> get_meta_type ( ) ) ; unset ( $ values [ $ index ] ) ; } } return ( object ) $ this -> prepare_link_array ( $ values , $ slug ) ; }
Load value from database.

@param  mixed  $value
@param  string $slug
@param  int    $post_id

@return array
Load value from database .