Create a PBM link

@since 1.0.0
@param Icepay_Pbm_Object $pbmObject
@return string
18292
public function createLink(Icepay_Pbm_Object $pbmObject)
    {
        $this->validateSettings();
        
        $linkObj = new StdClass();
        $linkObj->merchantid = $this->getMerchantID();
        $linkObj->timestamp = $this->getTimestamp();
        $linkObj->amount = $pbmObject->getAmount();
        $linkObj->currency = $pbmObject->getCurrency();
        $linkObj->language = $pbmObject->getLanguage();
        $linkObj->orderid = $pbmObject->getOrderID();
        $linkObj->country = $pbmObject->getCountry();
        $linkObj->description = $pbmObject->getDescription();
        $linkObj->reference = $pbmObject->getReference();
        $linkObj->checksum = $this->generateChecksum($linkObj);

        $result = $this->generateURL($linkObj);

        return json_decode($result);
    }
608353
private static function getModelFromDBObject($dbObject)
    {
        $modelName = get_called_class();
        $object = new $modelName();
        foreach ($dbObject as $column => $val) {
            $object->$column = $val;
        }

        return $object;
    }
838687
public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false)
    {
        if ($name != 'list') {
            return parent::generateObjectUrl($name, $object, $parameters, $absolute);
        }

        return parent::generateObjectUrl($name, $object->getForm(), $parameters, $absolute);
    }
1172627
protected function processLogicalOrPhp(PhpConditionDataObject $dataObject)
    {
        return $this->leftNode->getPhpResult($dataObject) || $this->rightNode->getPhpResult($dataObject);
    }
239227
public static function retrieveByPK($pk, PropelPDO $con = null)
    {

        if (null !== ($obj = UserCustomerRelationPeer::getInstanceFromPool((string) $pk))) {
            return $obj;
        }

        if ($con === null) {
            $con = Propel::getConnection(UserCustomerRelationPeer::DATABASE_NAME, Propel::CONNECTION_READ);
        }

        $criteria = new Criteria(UserCustomerRelationPeer::DATABASE_NAME);
        $criteria->add(UserCustomerRelationPeer::ID, $pk);

        $v = UserCustomerRelationPeer::doSelect($criteria, $con);

        return !empty($v) > 0 ? $v[0] : null;
    }
1185987
public function writeUrlElements(QueryResult $entryObjects)
    {
        $urls = new ODataURLCollection();
        if (!empty($entryObjects->results)) {
            $i = 0;
            foreach ($entryObjects->results as $entryObject) {
                if (!$entryObject instanceof QueryResult) {
                    $query = new QueryResult();
                    $query->results = $entryObject;
                } else {
                    $query = $entryObject;
                }
                $urls->urls[$i] = $this->writeUrlElement($query);
                ++$i;
            }

            if ($i > 0 && true === $entryObjects->hasMore) {
                $stackSegment = $this->getRequest()->getTargetResourceSetWrapper()->getName();
                $lastObject = end($entryObjects->results);
                $segment = $this->getNextLinkUri($lastObject);
                $nextLink = new ODataLink();
                $nextLink->name = ODataConstants::ATOM_LINK_NEXT_ATTRIBUTE_STRING;
                $nextLink->url = rtrim($this->absoluteServiceUri, '/') . '/' . $stackSegment . $segment;
                $urls->nextPageLink = $nextLink;
            }
        }

        if ($this->getRequest()->queryType == QueryType::ENTITIES_WITH_COUNT()) {
            $urls->count = $this->getRequest()->getCountValue();
        }

        return $urls;
    }
62148
protected function getDbGateway()
    {
        if (is_null($this->dbGateway)) {
            $this->setDbGateway(oxNew(\OxidEsales\PayPalModule\Model\DbGateways\OrderPaymentCommentDbGateway::class));
        }

        return $this->dbGateway;
    }
406482
public function updateDb($ldapObject, $userObject)
    {
        if ($userObject == null) {
            $entity = $this->getEntity();
        } else {
            $entity = $userObject;
        }
        if (isset($ldapObject['uid']['0'])) {
            $entity->setUsername($ldapObject['uid']['0']);
            $entity->setDisplayName($ldapObject['cn']['0']);
            $entity->setEmail($ldapObject['mail']['0']);
            $entity->setPassword(md5('HandledByLdap'));
            $entity->setRoles(serialize($this->getLdapRoles($ldapObject)));
            if ($userObject == null) {
                $this->insert($entity, $this->tableName, new HydratorInterface());
            } else {
                $this->update($entity, null, $this->tableName, new HydratorInterface());
            }
        }
        return $entity;
    }
1050789
public function getBaseStatsQuery($parentObject)
    {
        $baseQuery = $parentObject->queryChildObjects($this->primaryModel);
        $query = new Query();
        $query->from(['(' . $baseQuery->createCommand()->rawSql . ') innerQuery']);

        return $query;
    }
327207
public static function createObjectUrl($bucket, $object = null) {
    $gs_filename = self::createGcsFilename($bucket, $object);
    return CloudStorageTools::getPublicUrl($gs_filename, true);
  }
250499
public function loadJSONObject($jsonObject)
    {
        if (isset($jsonObject->email)) {
            $this->setEmail($jsonObject->email);
        }
        if (isset($jsonObject->issues)) {
            $this->setIssues($jsonObject->issues);
        }
        if (isset($jsonObject->forum)) {
            $this->setForum($jsonObject->forum);
        }
        if (isset($jsonObject->wiki)) {
            $this->setWiki($jsonObject->wiki);
        }
        if (isset($jsonObject->irc)) {
            $this->setIrc($jsonObject->irc);
        }
        if (isset($jsonObject->source)) {
            $this->setSource($jsonObject->source);
        }
        if (isset($jsonObject->docs)) {
            $this->setDocs($jsonObject->docs);
        }
        if (isset($jsonObject->rss)) {
            $this->setRss($jsonObject->rss);
        }
        if (isset($jsonObject->chat)) {
            $this->setChat($jsonObject->chat);
        }

        return $this;
    }
642551
private function getDb($transaction, $object)
    {
        if($object instanceof \Imi\Model\Model)
        {
            $db = Db::getInstance(ModelManager::getDbPoolName($object));
        }
        else
        {
            $db = Db::getInstance($transaction->dbPoolName);
        }
        return $db;
    }
109459
protected function createLink($source, DocumentHydrator $hydrator): LinkObject
    {
        if (is_string($source)) {
            return new LinkObject($source);
        }

        if (! isset($source->href)) {
            throw new InvalidDocumentException('Link must be a string or an object contains "href" attribute.');
        }

        $link = new LinkObject($source->href);

        $hydrator->hydrateObject($link, $source);

        return $link;
    }
370677
public function requestToCurl(RequestObject $requestObject)
    {
        return sprintf(
            'curl %s %s %s',
            $this->headersToCurl($requestObject->getHeaders()),
            $this->postParametersToCurl($requestObject->getPostParameters()),
            $requestObject->getUri()
        );
    }
1177409
public function generate(ReadBlockInterface $block, array $baseSubQuery)
    {
        $blockPrivate = !$this->displayBlockManager->isPublic($block);
        $blockParameters = $this->displayBlockManager->getBlockParameter($block);
        $subQuery = array_merge($baseSubQuery, $this->generateSubQueryCache($blockPrivate));

        if (!empty($blockParameters)) {
            /** @var SubQueryGeneratorInterface $strategy */
            foreach ($this->strategies as $strategy) {
                foreach ($blockParameters as $blockParameter) {
                    if ($strategy->support($blockParameter)) {
                        $subQuery = array_merge($subQuery, $strategy->generate($blockParameter));
                    }
                }
            }
        }

        return $subQuery;
    }
800690
public static function createAdapterObject($object)
    {
        $wrapperObject = self::create($object, null, function ($method, $arguments, $result) {
            $data['method']    = $method;
            $data['arguments'] = $arguments;

            $appType = php_sapi_name();
            if ($appType == 'cli') {
                $processName = @cli_get_process_title();
                if (strpos($processName, 'msf') !== false) {
                    $appType = 'msf';
                }
            } else {
                $appType = 'web';
            }

            if ($appType != 'msf' && $result instanceof \Generator) {
                $data['result'] = $result->getReturn();
                return $data;
            }

            $data['result'] = $result;
            return $data;
        });

        return $wrapperObject;
    }
670259
public function newObject($entity, $jsonObject)
	{
		$retValue = array();

		if (! is_null($this->_conn)){
			$last_user_id = $this->_conn->insert($entity, array($jsonObject));

			if (! $this->error($this->_conn->error()))
				return $this->findObject($entity, $last_user_id);
		}
		
		return $retValue;
	}