Execute
@param IContextProvider $provider
@param object[] $dataPool
@return object
338802
public function Execute( $provider, $dataPool )
	{
		return call_user_func(
			$this->_binaryOper,
			$provider,
			$this->getAbstractNode(0)->Execute( $provider, $dataPool ),
			$this->getAbstractNode(1)->Execute( $provider, $dataPool )
		);
	}
1134134
public function execute(DataSetInterface $dataSet): void
    {
        $merchantRelationshipKey = $dataSet[PriceProductMerchantRelationshipDataSetInterface::MERCHANT_RELATIONSHIP_KEY];
        if (!isset($this->idMerchantRelationshipCache[$merchantRelationshipKey])) {
            $idMerchantRelationship = SpyMerchantRelationshipQuery::create()
                ->select(SpyMerchantRelationshipTableMap::COL_ID_MERCHANT_RELATIONSHIP)
                ->findOneByMerchantRelationshipKey($merchantRelationshipKey);

            if (!$idMerchantRelationship) {
                throw new EntityNotFoundException(sprintf('Could not find Merchant Relationship by key "%s"', $merchantRelationshipKey));
            }

            $this->idMerchantRelationshipCache[$merchantRelationshipKey] = $idMerchantRelationship;
        }

        $dataSet[PriceProductMerchantRelationshipDataSetInterface::ID_MERCHANT_RELATIONSHIP] = $this->idMerchantRelationshipCache[$merchantRelationshipKey];
    }
1335452
public static function newWrapper($url, DataTablesProviderInterface $provider, UserInterface $user = null) {

        $dtWrapper = new DataTablesWrapper();
        $dtWrapper->getMapping()->setPrefix($provider->getPrefix());
        $dtWrapper->setMethod($provider->getMethod());
        $dtWrapper->setProvider($provider);
        $dtWrapper->setUser($user);
        $dtWrapper->setUrl($url);

        return $dtWrapper;
    }
173752
public function execute(DataSetInterface $dataSet)
    {
        $companyEntity = SpyCompanyQuery::create()
            ->filterByKey($dataSet[CompanyDataSet::COMPANY_KEY])
            ->findOneOrCreate();

        $companyEntity->fromArray($dataSet->getArrayCopy());

        $companyEntity->save();
    }
577169
private function createNewDataProvider($provider, PhpNamespace $namespace): ClassType
    {
        $dataProvider = $namespace->addClass($provider . 'DataProvider');
        $dataProvider
            ->setFinal()
            ->setExtends($this->dataProviderExtends)
            ->setImplements(
                [
                    DataProviderInterface::class
                ]
            )
            ->setComment('Auto generated data provider')
        ;

        return $dataProvider;
    }
1240052
public function execute(DataSetInterface $dataSet)
    {
        $iso2Code = $this->getIso2Code($dataSet);
        $iso3Code = $this->getIso3Code($dataSet);

        $idCountry = $this->getIdCountryFromCache($iso2Code, $iso3Code);
        if (!$idCountry) {
            $idCountry = $this->getIdCountryFromDatabase($iso2Code, $iso3Code);
        }

        $dataSet[CompanyUnitAddressDataSet::ID_COUNTRY] = $idCountry;
    }
391677
public function addProvider($providerOrClass)
    {
        // get the provider object
        $prov  = $this->getProviderInstance($providerOrClass);

        // check added or not
        $class = get_class($prov);
        if (isset($this->providers[$class])) {
            throw new LogicException(
                Message::get(
                    Message::EXT_PROVIDER_DUPPED,
                    get_class($prov)
                ),
                Message::EXT_PROVIDER_DUPPED
            );
        } else {
            // add to the pool
            $this->providers[$class] =
                $prov->setContainer($this->getContainer());
        }
    }
522741
public function execute(DataSetInterface $dataSet): void
    {
        $currencyCode = $dataSet[PriceProductMerchantRelationshipDataSetInterface::CURRENCY];
        if (!isset($this->idCurrencyCache[$currencyCode])) {
            $idCurrency = SpyCurrencyQuery::create()
                ->select(SpyCurrencyTableMap::COL_ID_CURRENCY)
                ->findOneByCode($currencyCode);

            if (!$idCurrency) {
                throw new EntityNotFoundException(sprintf('Could not find currency by code "%s"', $currencyCode));
            }

            $this->idCurrencyCache[$currencyCode] = $idCurrency;
        }

        $dataSet[PriceProductMerchantRelationshipDataSetInterface::ID_CURRENCY] = $this->idCurrencyCache[$currencyCode];
    }
1119795
public function execute(DataSetInterface $dataSet)
    {
        $companyUnitAddressEntity = SpyCompanyUnitAddressQuery::create()
            ->filterByKey($dataSet[CompanyUnitAddressDataSet::ADDRESS_KEY])
            ->findOneOrCreate();

        $companyUnitAddressEntity->fromArray($dataSet->getArrayCopy());
        $companyUnitAddressEntity
            ->setFkCompany($dataSet[CompanyUnitAddressDataSet::ID_COMPANY])
            ->setFkCountry($dataSet[CompanyUnitAddressDataSet::ID_COUNTRY]);

        $companyUnitAddressEntity->save();
    }
1177700
public function execute(DataSetInterface $dataSet): void
    {
        $idCompanyBusinessUnit = $this->businessUnitDataImportRepository
            ->getIdCompanyBusinessUnitByKey($dataSet[CompanyBusinessUnitAddressDataSet::COLUMN_BUSINESS_UNIT_KEY]);
        $idCompanyUnitAddress = $this->getIdCompanyUnitAddressByKey($dataSet[CompanyBusinessUnitAddressDataSet::COLUMN_ADDRESS_KEY]);

        $this->createCompanyUnitAddressToCompanyBusinessUnitQuery()
            ->filterByFkCompanyBusinessUnit($idCompanyBusinessUnit)
            ->filterByFKCompanyUnitAddress($idCompanyUnitAddress)
            ->findOneOrCreate()
            ->save();
    }
1367622
public Object execute(final Object dataIn) throws DevFailed {
        xlogger.entry(name);
        Object result;
        try {
            result = behavior.execute(dataIn);
        } catch (final DevFailed e) {
            lastError = e;
            throw e;
        }
        xlogger.exit(name);
        return result;
    }
1314983
public static function Collections( $context, $provider, $collection )
	{
		if ( ! ExtFuncs::validateUri( $collection ) || ! isset( $context->availableCollections[ $collection ] ) )
		{
			throw XPath2Exception::withErrorCodeAndParam( "FODC0004", Resources::FODC0004, $collection );
		}

		return $context->availableCollections[ $collection ];
	}
380494
public function execute(DataSetInterface $dataSet)
    {
        $addressKey = $dataSet[CompanyUnitAddressLabelRelationDataSet::ADDRESS_KEY];
        if (!isset($this->idCompanyUnitAddressCache[$addressKey])) {
            $companyUnitAddressQuery = new SpyCompanyUnitAddressQuery();
            $idCompanyUnitAddress = $companyUnitAddressQuery
                ->select(SpyCompanyUnitAddressTableMap::COL_ID_COMPANY_UNIT_ADDRESS)
                ->findOneByKey($addressKey);

            if (!$idCompanyUnitAddress) {
                throw new CompanyUnitAddressNotFoundException(sprintf('Could not find CompanyUnitAddress with key "%s".', $addressKey));
            }

            $this->idCompanyUnitAddressCache[$addressKey] = $idCompanyUnitAddress;
        }

        $dataSet[CompanyUnitAddressLabelRelationDataSet::ID_COMPANY_UNIT_ADDRESS] = $this->idCompanyUnitAddressCache[$addressKey];
    }
25337
protected function fromExprNodeIteratorParts( $context, $node, $dataPool, $baseIter )
	{
		$this->context = $context;
		$this->node = $node;
		$this->dataPool = $dataPool;
		$this->baseIter = $baseIter;
	}
119641
public function MoveNext( $provider, $dataPool, $curr, &$res )
	{
		if ( ! $curr instanceof XPathItem || $curr->getIsNode() )
			$this->_varRef->Set( $dataPool, $curr );
		else
			// BMS 2018-03-02 Don't think it is necessary to convert the XPath2Item
			//				  to its type at this stage becaUse of the changed made
			//				  to handle XPath2Item more natively
			$this->_varRef->Set( $dataPool, $curr /* ->getTypedValue() */ );

		$res = $this->getAbstractNode(1)->Execute( $provider, $dataPool );
		if ( ! $res instanceof Undefined )
			return true;
		return false;
	}
520347
public static function one(PDFfiller $provider, $id)
    {
        $params = static::query($provider, $id);
        $instance = new static($provider, array_merge($params, ['exists' => true]));
        $instance->cacheFields($params);

        return $instance;
    }
1306438
protected function resolveDataProviderValue($dataProvider)
    {
        preg_match("/(.*)@(.*)/", $dataProvider, $matches);
        if (!isset($matches[1]) and ! isset($matches[2])) {
            return false;
        }
        if (!class_exists($matches[1])) {
            return false;
        }
        try {
            $instance = app($matches[1]);
            $return   = call_user_func_array([$instance, $matches[2]], []);
            if ($return instanceof Builder) {
                return $return->get()->toArray();
            }
            if ($return instanceof Collection) {
                return $return->toArray();
            }
            return $return;
        } catch (Exception $ex) {
            return false;
        }
    }