$53 GRAYBYTE WORDPRESS FILE MANAGER $30

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/src/App/Field/

HOME
Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/src/App/Field//Description.php
<?php

namespace Wpae\App\Field;


class Description extends Field
{
    const SECTION = 'basicInformation';

    private $basicInformationData = null;

    private $snippetData;

    public function getValue($snippetData)
    {
        $this->snippetData = $snippetData;
        $this->basicInformationData = $this->feed->getSectionFeedData(self::SECTION);

        if($this->entry->post_type === 'product') {
            return $this->getDescription($this->entry);
        }
        else if($this->entry->post_type === 'product_variation') {

            if($this->basicInformationData['useVariationDescriptionForVariableProducts']) {
                $variation_description = get_post_meta($this->entry->ID, '_variation_description');

                if(!empty($variation_description[0])) {
                    if(!empty($variation_description[0])) {
                        if(empty($variation_description[0])) {
                            $postParent = get_post($this->entry->post_parent);
                            if(is_object($postParent)) {
                                $parentDescription = $this->getDescription($postParent);
                            } else {
                                $parentDescription = '';
                            }
                            return $parentDescription;
                        }
                        return $variation_description[0];
                    } else {
                        $parentDescription = $this->getDescription(get_post($this->entry->post_parent));
                        return $parentDescription;
                    }

                } else {
                    $parentDescription = $this->getDescription(get_post($this->entry->post_parent));

                    return $parentDescription;
                }
            } else {
                return $this->getDescription(get_post($this->entry->post_parent));
            }
        } else {
            throw new \Exception('Unknown export entity type');
        }
    }

    public function getFieldName()
    {
        return 'description';
    }

    /**
     * @param $product
     * @return mixed
     * @throws \Exception
     * @internal param $entry
     * @internal param $basicInformationData
     */
    private function getDescription($product)
    {
        if ($this->basicInformationData['itemDescription'] == 'productDescription') {
            return $product->post_content;
        } else if ($this->basicInformationData['itemDescription'] == 'productShortDescription') {
            return $product->post_excerpt;
        } else if ($this->basicInformationData['itemDescription'] == self::CUSTOM_VALUE_TEXT) {
            return $this->replaceSnippetsInValue($this->basicInformationData['itemDescriptionCV'], $this->snippetData);
        } else {
            throw new \Exception('Unknown field value');
        }
    }
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
AdditionalImageLink.php
1.212 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Adult.php
0.543 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
AdwordsRedirect.php
0.532 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
AgeGroup.php
2.742 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Availability.php
0.994 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
AvailabilityDate.php
0.61 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Brand.php
0.424 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Color.php
1.203 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Condition.php
0.606 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CostOfGoodsSold.php
0.535 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CustomLabel0.php
0.625 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CustomLabel1.php
0.61 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CustomLabel2.php
0.609 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CustomLabel3.php
0.618 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
CustomLabel4.php
0.609 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Description.php
2.821 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
EnergyEfficiencyClass.php
0.745 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ExcludedDestination.php
0.713 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ExpirationDate.php
0.521 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Field.php
5.003 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
FieldFactory.php
1.135 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Gender.php
4.475 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
GoogleProductCategory.php
2.716 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Gtin.php
0.401 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Id.php
0.513 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
IdentifierExists.php
0.556 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ImageLink.php
2.029 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
IsBundle.php
0.33 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ItemGroupId.php
1.253 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Link.php
1.26 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Material.php
1.037 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
MobileLink.php
0.502 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Mpn.php
0.397 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Multipack.php
0.492 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Pattern.php
1.037 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Price.php
1.867 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ProductType.php
1.927 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
PromotionId.php
0.648 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
SalePrice.php
1.919 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
SalePriceEffectiveDate.php
0.637 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Shipping.php
2.636 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingDimensions.php
1.179 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingHeight.php
1.347 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingLabel.php
0.504 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingLength.php
1.352 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingWeight.php
0.911 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
ShippingWidth.php
1.334 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Size.php
1.002 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
SizeSystem.php
0.376 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
SizeType.php
0.745 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Tax.php
0.212 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
Title.php
1.267 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
UnitPricingBaseMeasure.php
0.646 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755
UnitPricingMeasure.php
0.727 KB
30 Jan 2024 5.53 PM
bqrcodec / bqrcodec
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF