id
int32
0
241k
repo
stringlengths
6
63
path
stringlengths
5
140
func_name
stringlengths
3
151
original_string
stringlengths
84
13k
language
stringclasses
1 value
code
stringlengths
84
13k
code_tokens
list
docstring
stringlengths
3
47.2k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
91
247
31,600
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.GetDeleteURL
public function GetDeleteURL($bUseFullUrl = false) { $aParameter = array(TdbShopArticleReview::URL_PARAM_REVIEW_ID => $this->id); $sReportLink = TTools::GetExecuteMethodOnCurrentModuleURL('DeleteReview', $aParameter, $bUseFullUrl); return $sReportLink; }
php
public function GetDeleteURL($bUseFullUrl = false) { $aParameter = array(TdbShopArticleReview::URL_PARAM_REVIEW_ID => $this->id); $sReportLink = TTools::GetExecuteMethodOnCurrentModuleURL('DeleteReview', $aParameter, $bUseFullUrl); return $sReportLink; }
[ "public", "function", "GetDeleteURL", "(", "$", "bUseFullUrl", "=", "false", ")", "{", "$", "aParameter", "=", "array", "(", "TdbShopArticleReview", "::", "URL_PARAM_REVIEW_ID", "=>", "$", "this", "->", "id", ")", ";", "$", "sReportLink", "=", "TTools", "::"...
Returns the URL to delete a review. @param bool $bUseFullUrl @return string
[ "Returns", "the", "URL", "to", "delete", "a", "review", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L125-L131
31,601
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.SendReviewCommentNotification
public function SendReviewCommentNotification($oComment) { if ($this->AllowSendAuthorReviewCommentNotification()) { $sAuthorEmail = $this->GetSendReviewCommentNotificationEmail(); if (TTools::IsValidEMail($sAuthorEmail)) { $oMail = TDataMailProfile::GetProfile('review...
php
public function SendReviewCommentNotification($oComment) { if ($this->AllowSendAuthorReviewCommentNotification()) { $sAuthorEmail = $this->GetSendReviewCommentNotificationEmail(); if (TTools::IsValidEMail($sAuthorEmail)) { $oMail = TDataMailProfile::GetProfile('review...
[ "public", "function", "SendReviewCommentNotification", "(", "$", "oComment", ")", "{", "if", "(", "$", "this", "->", "AllowSendAuthorReviewCommentNotification", "(", ")", ")", "{", "$", "sAuthorEmail", "=", "$", "this", "->", "GetSendReviewCommentNotificationEmail", ...
Send comment notification to review owner. Send comment notification to owner only if owner set the option for the review. @param TdbPkgComment $oComment
[ "Send", "comment", "notification", "to", "review", "owner", ".", "Send", "comment", "notification", "to", "owner", "only", "if", "owner", "set", "the", "option", "for", "the", "review", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L161-L178
31,602
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.GetSendReviewCommentNotificationEmail
protected function GetSendReviewCommentNotificationEmail() { $sSendReviewCommentNotificationEmail = ''; if (!empty($this->fieldAuthorEmail)) { $sSendReviewCommentNotificationEmail = $this->fieldAuthorEmail; } elseif (!empty($this->fieldDataExtranetUserId)) { $oAuthor ...
php
protected function GetSendReviewCommentNotificationEmail() { $sSendReviewCommentNotificationEmail = ''; if (!empty($this->fieldAuthorEmail)) { $sSendReviewCommentNotificationEmail = $this->fieldAuthorEmail; } elseif (!empty($this->fieldDataExtranetUserId)) { $oAuthor ...
[ "protected", "function", "GetSendReviewCommentNotificationEmail", "(", ")", "{", "$", "sSendReviewCommentNotificationEmail", "=", "''", ";", "if", "(", "!", "empty", "(", "$", "this", "->", "fieldAuthorEmail", ")", ")", "{", "$", "sSendReviewCommentNotificationEmail",...
Get owner email for comment notification. @return string|null
[ "Get", "owner", "email", "for", "comment", "notification", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L185-L198
31,603
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.AllowSendAuthorReviewCommentNotification
protected function AllowSendAuthorReviewCommentNotification() { $bAllowSendAuthorCommentNotification = false; if ($this->fieldSendCommentNotification) { if (!empty($this->fieldAuthorEmail) || !empty($this->fieldDataExtranetUserId)) { $bAllowSendAuthorCommentNotification =...
php
protected function AllowSendAuthorReviewCommentNotification() { $bAllowSendAuthorCommentNotification = false; if ($this->fieldSendCommentNotification) { if (!empty($this->fieldAuthorEmail) || !empty($this->fieldDataExtranetUserId)) { $bAllowSendAuthorCommentNotification =...
[ "protected", "function", "AllowSendAuthorReviewCommentNotification", "(", ")", "{", "$", "bAllowSendAuthorCommentNotification", "=", "false", ";", "if", "(", "$", "this", "->", "fieldSendCommentNotification", ")", "{", "if", "(", "!", "empty", "(", "$", "this", "-...
Checks if its allowed to send comment notification to owner. @return bool
[ "Checks", "if", "its", "allowed", "to", "send", "comment", "notification", "to", "owner", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L205-L215
31,604
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.SaveActionIdToComment
protected function SaveActionIdToComment() { $sActionId = TTools::GetUUID(); $this->sqlData['action_id'] = $sActionId; $this->AllowEditByAll(true); $this->Save(); $this->AllowEditByAll(false); }
php
protected function SaveActionIdToComment() { $sActionId = TTools::GetUUID(); $this->sqlData['action_id'] = $sActionId; $this->AllowEditByAll(true); $this->Save(); $this->AllowEditByAll(false); }
[ "protected", "function", "SaveActionIdToComment", "(", ")", "{", "$", "sActionId", "=", "TTools", "::", "GetUUID", "(", ")", ";", "$", "this", "->", "sqlData", "[", "'action_id'", "]", "=", "$", "sActionId", ";", "$", "this", "->", "AllowEditByAll", "(", ...
Add new unique action id to the comment. Action id was needed to run an action like unlock or delete via post.
[ "Add", "new", "unique", "action", "id", "to", "the", "comment", ".", "Action", "id", "was", "needed", "to", "run", "an", "action", "like", "unlock", "or", "delete", "via", "post", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L221-L228
31,605
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.GetDeleteWithActionIdURL
protected function GetDeleteWithActionIdURL($bUseFullUrl = false) { $sDeleteURL = ''; if (!empty($this->sqlData['action_id'])) { $aParameter = array(TdbShopArticleReview::URL_PARAM_ACTION_ID => $this->sqlData['action_id']); $sDeleteURL = TTools::GetExecuteMethodOnCurrentModul...
php
protected function GetDeleteWithActionIdURL($bUseFullUrl = false) { $sDeleteURL = ''; if (!empty($this->sqlData['action_id'])) { $aParameter = array(TdbShopArticleReview::URL_PARAM_ACTION_ID => $this->sqlData['action_id']); $sDeleteURL = TTools::GetExecuteMethodOnCurrentModul...
[ "protected", "function", "GetDeleteWithActionIdURL", "(", "$", "bUseFullUrl", "=", "false", ")", "{", "$", "sDeleteURL", "=", "''", ";", "if", "(", "!", "empty", "(", "$", "this", "->", "sqlData", "[", "'action_id'", "]", ")", ")", "{", "$", "aParameter"...
Get URL to delete review with unique action id. @param bool $bUseFullUrl @return string
[ "Get", "URL", "to", "delete", "review", "with", "unique", "action", "id", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L237-L246
31,606
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.GetUnlockURL
protected function GetUnlockURL($bUseFullUrl = false) { $sUnlockURL = ''; if (!empty($this->sqlData['action_id'])) { $aParameter = array(TdbShopArticleReview::URL_PARAM_ACTION_ID => $this->sqlData['action_id']); $sUnlockURL = TTools::GetExecuteMethodOnCurrentModuleURL('Unlock...
php
protected function GetUnlockURL($bUseFullUrl = false) { $sUnlockURL = ''; if (!empty($this->sqlData['action_id'])) { $aParameter = array(TdbShopArticleReview::URL_PARAM_ACTION_ID => $this->sqlData['action_id']); $sUnlockURL = TTools::GetExecuteMethodOnCurrentModuleURL('Unlock...
[ "protected", "function", "GetUnlockURL", "(", "$", "bUseFullUrl", "=", "false", ")", "{", "$", "sUnlockURL", "=", "''", ";", "if", "(", "!", "empty", "(", "$", "this", "->", "sqlData", "[", "'action_id'", "]", ")", ")", "{", "$", "aParameter", "=", "...
Get URL to unlock a review with unique action id. @param bool $bUseFullUrl @return string
[ "Get", "URL", "to", "unlock", "a", "review", "with", "unique", "action", "id", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L255-L264
31,607
chameleon-system/chameleon-shop
src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php
TPkgShopArticleReviewShopArticleReview.GetCacheTrigger
protected function GetCacheTrigger($id, $aCallTimeVars = array()) { $aCacheTrigger = parent::GetCacheTrigger($id, $aCallTimeVars); if (array_key_exists('oPkgCommentModuleConfig', $aCallTimeVars) && !is_null($aCallTimeVars['oPkgCommentModuleConfig'])) { $aCallTimeVars['oPkgCommentModuleCo...
php
protected function GetCacheTrigger($id, $aCallTimeVars = array()) { $aCacheTrigger = parent::GetCacheTrigger($id, $aCallTimeVars); if (array_key_exists('oPkgCommentModuleConfig', $aCallTimeVars) && !is_null($aCallTimeVars['oPkgCommentModuleConfig'])) { $aCallTimeVars['oPkgCommentModuleCo...
[ "protected", "function", "GetCacheTrigger", "(", "$", "id", ",", "$", "aCallTimeVars", "=", "array", "(", ")", ")", "{", "$", "aCacheTrigger", "=", "parent", "::", "GetCacheTrigger", "(", "$", "id", ",", "$", "aCallTimeVars", ")", ";", "if", "(", "array_...
Get cache trigger for comments. @param $id @param array $aCallTimeVars @return array
[ "Get", "cache", "trigger", "for", "comments", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopArticleReviewBundle/objects/db/TPkgShopArticleReviewShopArticleReview.class.php#L274-L283
31,608
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopUserNoticeList.class.php
TShopUserNoticeList.GetRemoveFromNoticeListLink
public function GetRemoveFromNoticeListLink() { $oShop = TdbShop::GetInstance(); $aParams = array('module_fnc['.$oShop->GetBasketModuleSpotName().']' => 'RemoveFromNoticeList', MTShopBasketCore::URL_ITEM_ID => $this->fieldShopArticleId); return $this->getActivePageService()->getLinkToActive...
php
public function GetRemoveFromNoticeListLink() { $oShop = TdbShop::GetInstance(); $aParams = array('module_fnc['.$oShop->GetBasketModuleSpotName().']' => 'RemoveFromNoticeList', MTShopBasketCore::URL_ITEM_ID => $this->fieldShopArticleId); return $this->getActivePageService()->getLinkToActive...
[ "public", "function", "GetRemoveFromNoticeListLink", "(", ")", "{", "$", "oShop", "=", "TdbShop", "::", "GetInstance", "(", ")", ";", "$", "aParams", "=", "array", "(", "'module_fnc['", ".", "$", "oShop", "->", "GetBasketModuleSpotName", "(", ")", ".", "']'"...
return link that can be used to remove the item from the notice list. @return string
[ "return", "link", "that", "can", "be", "used", "to", "remove", "the", "item", "from", "the", "notice", "list", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopUserNoticeList.class.php#L21-L27
31,609
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/TShopAuskunftAPI.class.php
TShopAuskunftAPI.ReadFromURI
public function ReadFromURI($sURL) { $sBuf = ''; $fp = @fopen($sURL, 'r'); if (!$fp) { echo "<!-- shopauskunft - no connection! -->\n"; } else { stream_set_timeout($fp, 5); while (!feof($fp)) { $sBuf .= fread($fp, 128); ...
php
public function ReadFromURI($sURL) { $sBuf = ''; $fp = @fopen($sURL, 'r'); if (!$fp) { echo "<!-- shopauskunft - no connection! -->\n"; } else { stream_set_timeout($fp, 5); while (!feof($fp)) { $sBuf .= fread($fp, 128); ...
[ "public", "function", "ReadFromURI", "(", "$", "sURL", ")", "{", "$", "sBuf", "=", "''", ";", "$", "fp", "=", "@", "fopen", "(", "$", "sURL", ",", "'r'", ")", ";", "if", "(", "!", "$", "fp", ")", "{", "echo", "\"<!-- shopauskunft - no connection! -->...
Get content from URL. @param $sURL @return string
[ "Get", "content", "from", "URL", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/TShopAuskunftAPI.class.php#L58-L73
31,610
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.Init
public function Init() { $basket = $this->getShopService()->getActiveBasket(); $basket->aCompletedOrderStepList[$this->fieldSystemname] = false; $this->CheckBasketContents(); if (false === $this->AllowAccessToStep(true)) { $this->JumpToStep($this->GetPreviousStep()); ...
php
public function Init() { $basket = $this->getShopService()->getActiveBasket(); $basket->aCompletedOrderStepList[$this->fieldSystemname] = false; $this->CheckBasketContents(); if (false === $this->AllowAccessToStep(true)) { $this->JumpToStep($this->GetPreviousStep()); ...
[ "public", "function", "Init", "(", ")", "{", "$", "basket", "=", "$", "this", "->", "getShopService", "(", ")", "->", "getActiveBasket", "(", ")", ";", "$", "basket", "->", "aCompletedOrderStepList", "[", "$", "this", "->", "fieldSystemname", "]", "=", "...
Called from the init method of the calling module. Visitor permissions for the requested step may be checked and the user redirected.
[ "Called", "from", "the", "init", "method", "of", "the", "calling", "module", ".", "Visitor", "permissions", "for", "the", "requested", "step", "may", "be", "checked", "and", "the", "user", "redirected", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L38-L50
31,611
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.CheckBasketContents
protected function CheckBasketContents() { if ('basket' !== $this->fieldSystemname) { $oBasket = $this->getShopService()->getActiveBasket(); if ($oBasket->dTotalNumberOfArticles <= 0) { $oBasketStep = TdbShopOrderStep::GetStep('basket'); $this->JumpToS...
php
protected function CheckBasketContents() { if ('basket' !== $this->fieldSystemname) { $oBasket = $this->getShopService()->getActiveBasket(); if ($oBasket->dTotalNumberOfArticles <= 0) { $oBasketStep = TdbShopOrderStep::GetStep('basket'); $this->JumpToS...
[ "protected", "function", "CheckBasketContents", "(", ")", "{", "if", "(", "'basket'", "!==", "$", "this", "->", "fieldSystemname", ")", "{", "$", "oBasket", "=", "$", "this", "->", "getShopService", "(", ")", "->", "getActiveBasket", "(", ")", ";", "if", ...
Redirects back to the basket if basket is currently empty.
[ "Redirects", "back", "to", "the", "basket", "if", "basket", "is", "currently", "empty", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L87-L96
31,612
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.GetStepURL
public function GetStepURL($bDisableAccessCheck = true, $bForcePortalLink = false, $aAdditionalParameter = array()) { $sOrderPage = ''; if ($bDisableAccessCheck || $this->AllowAccessToStep()) { if ($bForcePortalLink) { $sOrderPage = $this->getOrderStepPageService()->getLi...
php
public function GetStepURL($bDisableAccessCheck = true, $bForcePortalLink = false, $aAdditionalParameter = array()) { $sOrderPage = ''; if ($bDisableAccessCheck || $this->AllowAccessToStep()) { if ($bForcePortalLink) { $sOrderPage = $this->getOrderStepPageService()->getLi...
[ "public", "function", "GetStepURL", "(", "$", "bDisableAccessCheck", "=", "true", ",", "$", "bForcePortalLink", "=", "false", ",", "$", "aAdditionalParameter", "=", "array", "(", ")", ")", "{", "$", "sOrderPage", "=", "''", ";", "if", "(", "$", "bDisableAc...
Returns the URL to this step. @param bool $bDisableAccessCheck If false, there will be an access check for the step. If this access check fails, the returned URL will be empty. @param bool $bForcePortalLink - set to true if you want to include the domain @param array $aAdditionalParameter @return string
[ "Returns", "the", "URL", "to", "this", "step", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L229-L241
31,613
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.GetStepURLReturnStepViaAjax
public function GetStepURLReturnStepViaAjax($bDisableAccessCheck = true, $bForcePortalLink = false, $aAdditionalParameter = array()) { $oGlobal = TGlobal::instance(); $aAdditionalParameter['module_fnc'] = array($oGlobal->GetExecutingModulePointer()->sModuleSpotName => 'ExecuteAjaxCall'); $aA...
php
public function GetStepURLReturnStepViaAjax($bDisableAccessCheck = true, $bForcePortalLink = false, $aAdditionalParameter = array()) { $oGlobal = TGlobal::instance(); $aAdditionalParameter['module_fnc'] = array($oGlobal->GetExecutingModulePointer()->sModuleSpotName => 'ExecuteAjaxCall'); $aA...
[ "public", "function", "GetStepURLReturnStepViaAjax", "(", "$", "bDisableAccessCheck", "=", "true", ",", "$", "bForcePortalLink", "=", "false", ",", "$", "aAdditionalParameter", "=", "array", "(", ")", ")", "{", "$", "oGlobal", "=", "TGlobal", "::", "instance", ...
Returns the URL required to load a step via ajax. @param bool $bDisableAccessCheck @param bool $bForcePortalLink @return string
[ "Returns", "the", "URL", "required", "to", "load", "a", "step", "via", "ajax", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L251-L259
31,614
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.ExecuteStep
public function ExecuteStep() { if ($this->ProcessStep()) { $this->ProcessStepSuccessHook(); $oBasket = TShopBasket::GetInstance(); $oBasket->aCompletedOrderStepList[$this->fieldSystemname] = true; $oNextStep = $this->GetNextStep(); $this->JumpToSt...
php
public function ExecuteStep() { if ($this->ProcessStep()) { $this->ProcessStepSuccessHook(); $oBasket = TShopBasket::GetInstance(); $oBasket->aCompletedOrderStepList[$this->fieldSystemname] = true; $oNextStep = $this->GetNextStep(); $this->JumpToSt...
[ "public", "function", "ExecuteStep", "(", ")", "{", "if", "(", "$", "this", "->", "ProcessStep", "(", ")", ")", "{", "$", "this", "->", "ProcessStepSuccessHook", "(", ")", ";", "$", "oBasket", "=", "TShopBasket", "::", "GetInstance", "(", ")", ";", "$"...
Executes the current step. Redirects to the next step in line if no errors occur.
[ "Executes", "the", "current", "step", ".", "Redirects", "to", "the", "next", "step", "in", "line", "if", "no", "errors", "occur", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L280-L289
31,615
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php
TShopOrderStep.Render
public function Render($sSpotName = null, $aCallTimeVars = array()) { $oView = new TViewParser(); $oView->AddVar('oShop', $this->getShopService()->getActiveShop()); $oView->AddVar('oStep', $this); $oStepNext = $this->GetNextStep(); $oStepPrevious = $this->GetPreviousStep();...
php
public function Render($sSpotName = null, $aCallTimeVars = array()) { $oView = new TViewParser(); $oView->AddVar('oShop', $this->getShopService()->getActiveShop()); $oView->AddVar('oStep', $this); $oStepNext = $this->GetNextStep(); $oStepPrevious = $this->GetPreviousStep();...
[ "public", "function", "Render", "(", "$", "sSpotName", "=", "null", ",", "$", "aCallTimeVars", "=", "array", "(", ")", ")", "{", "$", "oView", "=", "new", "TViewParser", "(", ")", ";", "$", "oView", "->", "AddVar", "(", "'oShop'", ",", "$", "this", ...
Renders the requested step. @param array $aCallTimeVars - place any custom vars that you want to pass through the call here @return string
[ "Renders", "the", "requested", "step", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopOrderStep.class.php#L435-L459
31,616
chameleon-system/chameleon-shop
src/ShopListFilterBundle/objects/db/ListfilterItems/TPkgShopListfilterItemLevelTree.class.php
TPkgShopListfilterItemLevelTree.GetRenderedCategoryTree
public function GetRenderedCategoryTree() { $aFilterCategories = $this->GetOptions(); $oTree = TShopCategoryTree::GetCategoryTree(); $oTree->ResetCounter(); foreach ($aFilterCategories as $sCategoryId => $sCategoryCount) { $oTree->AddItemCount($sCategoryId, $sCategoryCoun...
php
public function GetRenderedCategoryTree() { $aFilterCategories = $this->GetOptions(); $oTree = TShopCategoryTree::GetCategoryTree(); $oTree->ResetCounter(); foreach ($aFilterCategories as $sCategoryId => $sCategoryCount) { $oTree->AddItemCount($sCategoryId, $sCategoryCoun...
[ "public", "function", "GetRenderedCategoryTree", "(", ")", "{", "$", "aFilterCategories", "=", "$", "this", "->", "GetOptions", "(", ")", ";", "$", "oTree", "=", "TShopCategoryTree", "::", "GetCategoryTree", "(", ")", ";", "$", "oTree", "->", "ResetCounter", ...
Get the complete rendered filter as html. @return string
[ "Get", "the", "complete", "rendered", "filter", "as", "html", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopListFilterBundle/objects/db/ListfilterItems/TPkgShopListfilterItemLevelTree.class.php#L34-L48
31,617
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TCMSWizardStep/TCMSWizardStepShopTellAFriend.class.php
TCMSWizardStepShopTellAFriend.ValidateUserData
protected function ValidateUserData() { $bIsValid = true; $oMsgManager = TCMSMessageManager::GetInstance(); // check user data $sCaptchaValue = $this->GetCaptchaValue(); if (empty($sCaptchaValue) || $sCaptchaValue != $this->aUserInput['captcha']) { $bIsValid = f...
php
protected function ValidateUserData() { $bIsValid = true; $oMsgManager = TCMSMessageManager::GetInstance(); // check user data $sCaptchaValue = $this->GetCaptchaValue(); if (empty($sCaptchaValue) || $sCaptchaValue != $this->aUserInput['captcha']) { $bIsValid = f...
[ "protected", "function", "ValidateUserData", "(", ")", "{", "$", "bIsValid", "=", "true", ";", "$", "oMsgManager", "=", "TCMSMessageManager", "::", "GetInstance", "(", ")", ";", "// check user data", "$", "sCaptchaValue", "=", "$", "this", "->", "GetCaptchaValue...
validate the user input. @return bool
[ "validate", "the", "user", "input", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TCMSWizardStep/TCMSWizardStepShopTellAFriend.class.php#L183-L205
31,618
chameleon-system/chameleon-shop
src/ShopBundle/mappers/article/TPkgShopMapper_ArticleRatingOverview.class.php
TPkgShopMapper_ArticleRatingOverview.GetRatingOverview
protected function GetRatingOverview($oReviewModuleConfiguration, $oArticle, IMapperCacheTriggerRestricted $oCacheTriggerManager, $bCachingEnabled) { $aRatingOverview = array(); for ($i = $oReviewModuleConfiguration->fieldRatingCount; $i > 0; --$i) { $aRatingOverview['r_'.$i] = array(); ...
php
protected function GetRatingOverview($oReviewModuleConfiguration, $oArticle, IMapperCacheTriggerRestricted $oCacheTriggerManager, $bCachingEnabled) { $aRatingOverview = array(); for ($i = $oReviewModuleConfiguration->fieldRatingCount; $i > 0; --$i) { $aRatingOverview['r_'.$i] = array(); ...
[ "protected", "function", "GetRatingOverview", "(", "$", "oReviewModuleConfiguration", ",", "$", "oArticle", ",", "IMapperCacheTriggerRestricted", "$", "oCacheTriggerManager", ",", "$", "bCachingEnabled", ")", "{", "$", "aRatingOverview", "=", "array", "(", ")", ";", ...
Get array for each rating count holding the count of rated reviews. @param TdbPkgShopArticleReviewModuleShopArticleReviewConfiguration $oReviewModuleConfiguration @param TdbShopArticle $oArticle @param \IMapperCacheTriggerRestricted $oCacheTrigg...
[ "Get", "array", "for", "each", "rating", "count", "holding", "the", "count", "of", "rated", "reviews", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/mappers/article/TPkgShopMapper_ArticleRatingOverview.class.php#L38-L58
31,619
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php
TPkgShopRating_CronJob_SendRatingMails.GetConfigValues
protected function GetConfigValues() { $oShopConfig = TdbShop::GetInstance(1); $this->Shopreviewmail_MailDelay = $oShopConfig->fieldShopreviewmailMailDelay; $this->Shopreviewmail_PercentOfCustomers = $oShopConfig->fieldShopreviewmailPercentOfCustomers; $this->Shopreviewmail_SendForEa...
php
protected function GetConfigValues() { $oShopConfig = TdbShop::GetInstance(1); $this->Shopreviewmail_MailDelay = $oShopConfig->fieldShopreviewmailMailDelay; $this->Shopreviewmail_PercentOfCustomers = $oShopConfig->fieldShopreviewmailPercentOfCustomers; $this->Shopreviewmail_SendForEa...
[ "protected", "function", "GetConfigValues", "(", ")", "{", "$", "oShopConfig", "=", "TdbShop", "::", "GetInstance", "(", "1", ")", ";", "$", "this", "->", "Shopreviewmail_MailDelay", "=", "$", "oShopConfig", "->", "fieldShopreviewmailMailDelay", ";", "$", "this"...
Read rating-mail-config.
[ "Read", "rating", "-", "mail", "-", "config", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php#L69-L75
31,620
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php
TPkgShopRating_CronJob_SendRatingMails.GetShippingDateLowerBound
public function GetShippingDateLowerBound() { $iAgeInDays = $this->Shopreviewmail_MailDelay; $iNow = time(); $hour = date('G', $iNow); $minute = date('i', $iNow); if ('0' == substr($minute, 0, 1)) { $minute = substr($minute, 1); } $second = date('s...
php
public function GetShippingDateLowerBound() { $iAgeInDays = $this->Shopreviewmail_MailDelay; $iNow = time(); $hour = date('G', $iNow); $minute = date('i', $iNow); if ('0' == substr($minute, 0, 1)) { $minute = substr($minute, 1); } $second = date('s...
[ "public", "function", "GetShippingDateLowerBound", "(", ")", "{", "$", "iAgeInDays", "=", "$", "this", "->", "Shopreviewmail_MailDelay", ";", "$", "iNow", "=", "time", "(", ")", ";", "$", "hour", "=", "date", "(", "'G'", ",", "$", "iNow", ")", ";", "$"...
return the shipping date past which a review notification should be send. @return int (unix time stamp)
[ "return", "the", "shipping", "date", "past", "which", "a", "review", "notification", "should", "be", "send", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php#L125-L141
31,621
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php
TPkgShopRating_CronJob_SendRatingMails.SendShopReviewMail
public function SendShopReviewMail($aOrder) { $bMailWasSend = false; $oUser = TdbDataExtranetUser::GetNewInstance(); $oUser->Load($aOrder['data_extranet_user_id']); if ($this->AllowSendingMailForOrder($oUser, $aOrder)) { $oRatingService = $this->GetSuitableRatingService...
php
public function SendShopReviewMail($aOrder) { $bMailWasSend = false; $oUser = TdbDataExtranetUser::GetNewInstance(); $oUser->Load($aOrder['data_extranet_user_id']); if ($this->AllowSendingMailForOrder($oUser, $aOrder)) { $oRatingService = $this->GetSuitableRatingService...
[ "public", "function", "SendShopReviewMail", "(", "$", "aOrder", ")", "{", "$", "bMailWasSend", "=", "false", ";", "$", "oUser", "=", "TdbDataExtranetUser", "::", "GetNewInstance", "(", ")", ";", "$", "oUser", "->", "Load", "(", "$", "aOrder", "[", "'data_e...
send the shop review mail and log the action in es_shop_review returns true if the mail was send. note that the method checks if the customer is allowed to receiven a mail for the given order. @param array $aOrder - the order data @return bool
[ "send", "the", "shop", "review", "mail", "and", "log", "the", "action", "in", "es_shop_review", "returns", "true", "if", "the", "mail", "was", "send", ".", "note", "that", "the", "method", "checks", "if", "the", "customer", "is", "allowed", "to", "receiven...
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php#L200-L234
31,622
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php
TPkgShopRating_CronJob_SendRatingMails.CleanupAffiliateCode
protected function CleanupAffiliateCode($sAffiliateCode) { $sRet = ''; $sAffiliateCode = trim($sAffiliateCode); if (!empty($sAffiliateCode)) { //get all rating services $sQuery = " SELECT * FROM `pkg_shop_rating_service` W...
php
protected function CleanupAffiliateCode($sAffiliateCode) { $sRet = ''; $sAffiliateCode = trim($sAffiliateCode); if (!empty($sAffiliateCode)) { //get all rating services $sQuery = " SELECT * FROM `pkg_shop_rating_service` W...
[ "protected", "function", "CleanupAffiliateCode", "(", "$", "sAffiliateCode", ")", "{", "$", "sRet", "=", "''", ";", "$", "sAffiliateCode", "=", "trim", "(", "$", "sAffiliateCode", ")", ";", "if", "(", "!", "empty", "(", "$", "sAffiliateCode", ")", ")", "...
Try to cleanup incomming shop_order.affiliate_code. @param $sAffiliateCode @return string
[ "Try", "to", "cleanup", "incomming", "shop_order", ".", "affiliate_code", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php#L243-L270
31,623
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php
TPkgShopRating_CronJob_SendRatingMails.GetMaxNumberOfShopReviewMailsToSend
public function GetMaxNumberOfShopReviewMailsToSend($iSendForShippingDateNewerThan) { if ($this->bDebug) { echo '<br><br>'; } $query = "SELECT * FROM `shop_order` WHERE `shop_order`.`pkg_shop_rating_service_order_completely_shipped` > '0000-00-...
php
public function GetMaxNumberOfShopReviewMailsToSend($iSendForShippingDateNewerThan) { if ($this->bDebug) { echo '<br><br>'; } $query = "SELECT * FROM `shop_order` WHERE `shop_order`.`pkg_shop_rating_service_order_completely_shipped` > '0000-00-...
[ "public", "function", "GetMaxNumberOfShopReviewMailsToSend", "(", "$", "iSendForShippingDateNewerThan", ")", "{", "if", "(", "$", "this", "->", "bDebug", ")", "{", "echo", "'<br><br>'", ";", "}", "$", "query", "=", "\"SELECT *\n FROM `shop_order`\n ...
returns the number of review mails that should be send out. this is relevant if only a specified percentages of all orders should get a mail. @param $iSendForShippingDateNewerThan @return int
[ "returns", "the", "number", "of", "review", "mails", "that", "should", "be", "send", "out", ".", "this", "is", "relevant", "if", "only", "a", "specified", "percentages", "of", "all", "orders", "should", "get", "a", "mail", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/cronjobs/TPkgShopRating_CronJob_SendRatingMails.class.php#L323-L395
31,624
comporu/compo-core
src/Compo/Sonata/DashboardBundle/Admin/BlockAdmin.php
BlockAdmin.toString
public function toString($object) { if (!\is_object($object)) { return ''; } if (method_exists($object, 'getName') && null !== $object->getName()) { return (string) $object->getName(); } return parent::toString($object); }
php
public function toString($object) { if (!\is_object($object)) { return ''; } if (method_exists($object, 'getName') && null !== $object->getName()) { return (string) $object->getName(); } return parent::toString($object); }
[ "public", "function", "toString", "(", "$", "object", ")", "{", "if", "(", "!", "\\", "is_object", "(", "$", "object", ")", ")", "{", "return", "''", ";", "}", "if", "(", "method_exists", "(", "$", "object", ",", "'getName'", ")", "&&", "null", "!=...
Override needed to make the dashboard composer cleaner. {@inheritdoc}
[ "Override", "needed", "to", "make", "the", "dashboard", "composer", "cleaner", "." ]
ebaa9fe8a4b831506c78fdf637da6b4deadec1e2
https://github.com/comporu/compo-core/blob/ebaa9fe8a4b831506c78fdf637da6b4deadec1e2/src/Compo/Sonata/DashboardBundle/Admin/BlockAdmin.php#L281-L291
31,625
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleStringFields
public static function setSimpleStringFields( array $fields, ClassMetadataBuilder $builder, $default = null, bool $isUnique = false ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default va...
php
public static function setSimpleStringFields( array $fields, ClassMetadataBuilder $builder, $default = null, bool $isUnique = false ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default va...
[ "public", "static", "function", "setSimpleStringFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ",", "bool", "$", "isUnique", "=", "false", ")", ":", "void", "{", "if", "(", "null", "!=="...
Set bog standard string fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default @param bool $isUnique In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "string", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L243-L271
31,626
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleFloatFields
public static function setSimpleFloatFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_float($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ....
php
public static function setSimpleFloatFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_float($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ....
[ "public", "static", "function", "setSimpleFloatFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ")", ":", "void", "{", "if", "(", "null", "!==", "$", "default", "&&", "!", "\\", "is_float"...
Set bog standard float fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "float", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L340-L365
31,627
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleDecimalFields
public static function setSimpleDecimalFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ...
php
public static function setSimpleDecimalFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ...
[ "public", "static", "function", "setSimpleDecimalFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ")", ":", "void", "{", "if", "(", "null", "!==", "$", "default", "&&", "!", "\\", "is_stri...
Set bog standard decimal fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "decimal", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L376-L409
31,628
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleDatetimeFields
public static function setSimpleDatetimeFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default) { throw new \InvalidArgumentException('DateTime currently only support null as a default value'); } foreach ($fie...
php
public static function setSimpleDatetimeFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default) { throw new \InvalidArgumentException('DateTime currently only support null as a default value'); } foreach ($fie...
[ "public", "static", "function", "setSimpleDatetimeFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ")", ":", "void", "{", "if", "(", "null", "!==", "$", "default", ")", "{", "throw", "new"...
Set bog standard dateTime fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "dateTime", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L420-L442
31,629
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleIntegerFields
public static function setSimpleIntegerFields( array $fields, ClassMetadataBuilder $builder, $default = null, bool $isUnique = false ): void { if (null !== $default && !\is_int($default)) { throw new \InvalidArgumentException( 'Invalid default valu...
php
public static function setSimpleIntegerFields( array $fields, ClassMetadataBuilder $builder, $default = null, bool $isUnique = false ): void { if (null !== $default && !\is_int($default)) { throw new \InvalidArgumentException( 'Invalid default valu...
[ "public", "static", "function", "setSimpleIntegerFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ",", "bool", "$", "isUnique", "=", "false", ")", ":", "void", "{", "if", "(", "null", "!==...
Set bog standard integer fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default @param bool $isUnique In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "integer", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L454-L481
31,630
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleBooleanFields
public static function setSimpleBooleanFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_bool($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ...
php
public static function setSimpleBooleanFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_bool($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ...
[ "public", "static", "function", "setSimpleBooleanFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ")", ":", "void", "{", "if", "(", "null", "!==", "$", "default", "&&", "!", "\\", "is_bool...
Set bog standard boolean fields quickly in bulk @param array $fields @param ClassMetadataBuilder $builder @param mixed $default In this case the boolean argument is simply data @SuppressWarnings(PHPMD.BooleanArgumentFlag)
[ "Set", "bog", "standard", "boolean", "fields", "quickly", "in", "bulk" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L492-L517
31,631
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleJsonFields
public static function setSimpleJsonFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ....
php
public static function setSimpleJsonFields( array $fields, ClassMetadataBuilder $builder, $default = null ): void { if (null !== $default && !\is_string($default)) { throw new \InvalidArgumentException( 'Invalid default value ' . $default ....
[ "public", "static", "function", "setSimpleJsonFields", "(", "array", "$", "fields", ",", "ClassMetadataBuilder", "$", "builder", ",", "$", "default", "=", "null", ")", ":", "void", "{", "if", "(", "null", "!==", "$", "default", "&&", "!", "\\", "is_string"...
Create JSON fields Will use real JSON in the DB engine if it is supported This should be used for any structured data, arrays, lists, simple objects @param array $fields @param ClassMetadataBuilder $builder @param null $default
[ "Create", "JSON", "fields" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L530-L555
31,632
edmondscommerce/doctrine-static-meta
src/MappingHelper.php
MappingHelper.setSimpleFields
public static function setSimpleFields( array $fieldToType, ClassMetadataBuilder $builder ): void { foreach ($fieldToType as $field => $type) { $method = "setSimple$type" . 'fields'; static::$method([$field], $builder); } }
php
public static function setSimpleFields( array $fieldToType, ClassMetadataBuilder $builder ): void { foreach ($fieldToType as $field => $type) { $method = "setSimple$type" . 'fields'; static::$method([$field], $builder); } }
[ "public", "static", "function", "setSimpleFields", "(", "array", "$", "fieldToType", ",", "ClassMetadataBuilder", "$", "builder", ")", ":", "void", "{", "foreach", "(", "$", "fieldToType", "as", "$", "field", "=>", "$", "type", ")", "{", "$", "method", "="...
Bulk create multiple fields of different simple types Always creates nullable fields, if you want to set a default, you must call the type based method @param array $fieldToType [ 'fieldName'=>'fieldSimpleType' ] @param ClassMetadataBuilder $builder
[ "Bulk", "create", "multiple", "fields", "of", "different", "simple", "types" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/MappingHelper.php#L567-L575
31,633
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php
TPkgShopRatingService.GetInstanceFromSystemName
public static function GetInstanceFromSystemName($sSystemName) { $sQuery = "SELECT * FROM `pkg_shop_rating_service` WHERE `system_name` = '".MySqlLegacySupport::getInstance()->real_escape_string($sSystemName)."'"; $aData = MySqlLegacySupport::getInstance()->fetch_assoc(MySqlLegacySupport::getInstanc...
php
public static function GetInstanceFromSystemName($sSystemName) { $sQuery = "SELECT * FROM `pkg_shop_rating_service` WHERE `system_name` = '".MySqlLegacySupport::getInstance()->real_escape_string($sSystemName)."'"; $aData = MySqlLegacySupport::getInstance()->fetch_assoc(MySqlLegacySupport::getInstanc...
[ "public", "static", "function", "GetInstanceFromSystemName", "(", "$", "sSystemName", ")", "{", "$", "sQuery", "=", "\"SELECT * FROM `pkg_shop_rating_service` WHERE `system_name` = '\"", ".", "MySqlLegacySupport", "::", "getInstance", "(", ")", "->", "real_escape_string", "...
return the rating service via system name. @static @param string $sSystemName @return TdbPkgShopRatingService
[ "return", "the", "rating", "service", "via", "system", "name", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php#L23-L34
31,634
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php
TPkgShopRatingService.GetNewInstance
public static function GetNewInstance($sData = null, $sLanguage = null) { $oObject = parent::GetNewInstance($sData, $sLanguage); if ($oObject && !empty($oObject->fieldClass)) { $aData = $oObject->sqlData; $sClassName = $aData['class']; $oObject = new $sClassName(...
php
public static function GetNewInstance($sData = null, $sLanguage = null) { $oObject = parent::GetNewInstance($sData, $sLanguage); if ($oObject && !empty($oObject->fieldClass)) { $aData = $oObject->sqlData; $sClassName = $aData['class']; $oObject = new $sClassName(...
[ "public", "static", "function", "GetNewInstance", "(", "$", "sData", "=", "null", ",", "$", "sLanguage", "=", "null", ")", "{", "$", "oObject", "=", "parent", "::", "GetNewInstance", "(", "$", "sData", ",", "$", "sLanguage", ")", ";", "if", "(", "$", ...
Return new instance of "row-object". factory creates a new instance and returns it. @param string|array $sData - either the id of the object to load, or the row with which the instance should be initialized @param string $sLanguage - init with the language passed @return TdbPkgShopRatingService
[ "Return", "new", "instance", "of", "row", "-", "object", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php#L45-L58
31,635
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php
TPkgShopRatingService.Render
public function Render($sViewName = 'RatingService_standard', $sViewSubType = 'pkgShopRatingService/views', $sViewType = 'Customer', $sSpotName = null, $aCallTimeVars = array()) { $sHTML = ''; $oView = new TViewParser(); /** @var $oView TViewParser */ //create view name for this "ac...
php
public function Render($sViewName = 'RatingService_standard', $sViewSubType = 'pkgShopRatingService/views', $sViewType = 'Customer', $sSpotName = null, $aCallTimeVars = array()) { $sHTML = ''; $oView = new TViewParser(); /** @var $oView TViewParser */ //create view name for this "ac...
[ "public", "function", "Render", "(", "$", "sViewName", "=", "'RatingService_standard'", ",", "$", "sViewSubType", "=", "'pkgShopRatingService/views'", ",", "$", "sViewType", "=", "'Customer'", ",", "$", "sSpotName", "=", "null", ",", "$", "aCallTimeVars", "=", "...
Render rating-widget for active rating-service. @param string $sViewName @param string $sViewSubType @param string $sViewType @param null $sSpotName @param array $aCallTimeVars @return string
[ "Render", "rating", "-", "widget", "for", "active", "rating", "-", "service", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php#L71-L91
31,636
chameleon-system/chameleon-shop
src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php
TPkgShopRatingService.UpdateMainScroeValue
protected function UpdateMainScroeValue() { $bRet = false; $sQuery = " SELECT AVG( `score` ) AS main_score FROM `pkg_shop_rating_service_rating` WHERE `pkg_shop_rating_service_id` = '".$this->id."' "; $rs = MySqlLegacySupport::getInstance()->query($sQuery); if ($rs) { $oA...
php
protected function UpdateMainScroeValue() { $bRet = false; $sQuery = " SELECT AVG( `score` ) AS main_score FROM `pkg_shop_rating_service_rating` WHERE `pkg_shop_rating_service_id` = '".$this->id."' "; $rs = MySqlLegacySupport::getInstance()->query($sQuery); if ($rs) { $oA...
[ "protected", "function", "UpdateMainScroeValue", "(", ")", "{", "$", "bRet", "=", "false", ";", "$", "sQuery", "=", "\" SELECT AVG( `score` ) AS main_score FROM `pkg_shop_rating_service_rating` WHERE `pkg_shop_rating_service_id` = '\"", ".", "$", "this", "->", "id", ".", "\...
Update main score value of rating service - calculated from `pkg_shop_rating_service_rating`.`score`. @return bool
[ "Update", "main", "score", "value", "of", "rating", "service", "-", "calculated", "from", "pkg_shop_rating_service_rating", ".", "score", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopRatingServiceBundle/objects/db/TPkgShopRatingService.class.php#L108-L125
31,637
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.SetUserMode
public static function SetUserMode($sMode) { $aAllowedModes = array('register', 'user', 'guest'); if (false == in_array($sMode, $aAllowedModes)) { trigger_error('invalid mode requested. please use one of '.implode(', ', $aAllowedModes), E_USER_ERROR); } $_SESSION['tw_orde...
php
public static function SetUserMode($sMode) { $aAllowedModes = array('register', 'user', 'guest'); if (false == in_array($sMode, $aAllowedModes)) { trigger_error('invalid mode requested. please use one of '.implode(', ', $aAllowedModes), E_USER_ERROR); } $_SESSION['tw_orde...
[ "public", "static", "function", "SetUserMode", "(", "$", "sMode", ")", "{", "$", "aAllowedModes", "=", "array", "(", "'register'", ",", "'user'", ",", "'guest'", ")", ";", "if", "(", "false", "==", "in_array", "(", "$", "sMode", ",", "$", "aAllowedModes"...
Set a user mode. @static @param string $sMode - must be one of register, user, or guest
[ "Set", "a", "user", "mode", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L126-L133
31,638
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.GetUserMode
public static function GetUserMode() { $umode = 'register'; if (array_key_exists('tw_order_umode', $_SESSION)) { $umode = $_SESSION['tw_order_umode']; } if ('user' != $umode) { // check if the user is signed in... if so, we change the mode to user ...
php
public static function GetUserMode() { $umode = 'register'; if (array_key_exists('tw_order_umode', $_SESSION)) { $umode = $_SESSION['tw_order_umode']; } if ('user' != $umode) { // check if the user is signed in... if so, we change the mode to user ...
[ "public", "static", "function", "GetUserMode", "(", ")", "{", "$", "umode", "=", "'register'", ";", "if", "(", "array_key_exists", "(", "'tw_order_umode'", ",", "$", "_SESSION", ")", ")", "{", "$", "umode", "=", "$", "_SESSION", "[", "'tw_order_umode'", "]...
return the current registration mode... if the user is logged in the mode will be forced to user. @return string
[ "return", "the", "current", "registration", "mode", "...", "if", "the", "user", "is", "logged", "in", "the", "mode", "will", "be", "forced", "to", "user", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L140-L156
31,639
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.Init
public function Init() { parent::Init(); $this->bUserDataSubmission = false; $this->InitUserData(); // primary address should be initialized first if (TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) { $this->InitShip...
php
public function Init() { parent::Init(); $this->bUserDataSubmission = false; $this->InitUserData(); // primary address should be initialized first if (TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) { $this->InitShip...
[ "public", "function", "Init", "(", ")", "{", "parent", "::", "Init", "(", ")", ";", "$", "this", "->", "bUserDataSubmission", "=", "false", ";", "$", "this", "->", "InitUserData", "(", ")", ";", "// primary address should be initialized first", "if", "(", "T...
we use the method to populate the state and user data.
[ "we", "use", "the", "method", "to", "populate", "the", "state", "and", "user", "data", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L161-L180
31,640
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.InitUserData
protected function InitUserData() { $userData = $this->getInputFilterUtil()->getFilteredPostInput('aUser'); if (null === $userData) { $oUser = self::getExtranetUserProvider()->getActiveUser(); $this->SetUserData($oUser->sqlData); } else { $this->SetUserDat...
php
protected function InitUserData() { $userData = $this->getInputFilterUtil()->getFilteredPostInput('aUser'); if (null === $userData) { $oUser = self::getExtranetUserProvider()->getActiveUser(); $this->SetUserData($oUser->sqlData); } else { $this->SetUserDat...
[ "protected", "function", "InitUserData", "(", ")", "{", "$", "userData", "=", "$", "this", "->", "getInputFilterUtil", "(", ")", "->", "getFilteredPostInput", "(", "'aUser'", ")", ";", "if", "(", "null", "===", "$", "userData", ")", "{", "$", "oUser", "=...
initialize user data and set the state of UserDataSubmission to true if submitted if no data was submitted the user data will be loaded by the data of the user object.
[ "initialize", "user", "data", "and", "set", "the", "state", "of", "UserDataSubmission", "to", "true", "if", "submitted", "if", "no", "data", "was", "submitted", "the", "user", "data", "will", "be", "loaded", "by", "the", "data", "of", "the", "user", "objec...
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L186-L196
31,641
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.InitShippingAddress
protected function InitShippingAddress() { $inputFilterUtil = $this->getInputFilterUtil(); $shippingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING); if (null !== $shippingAddressData) { $this->SetShippingAddressData($shipp...
php
protected function InitShippingAddress() { $inputFilterUtil = $this->getInputFilterUtil(); $shippingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING); if (null !== $shippingAddressData) { $this->SetShippingAddressData($shipp...
[ "protected", "function", "InitShippingAddress", "(", ")", "{", "$", "inputFilterUtil", "=", "$", "this", "->", "getInputFilterUtil", "(", ")", ";", "$", "shippingAddressData", "=", "$", "inputFilterUtil", "->", "getFilteredPostInput", "(", "TdbDataExtranetUserAddress"...
initialize shipping address data and set the state of UserDataSubmission to true if data was submitted if no data was submitted the shipping address data will be loaded by shipping address of user.
[ "initialize", "shipping", "address", "data", "and", "set", "the", "state", "of", "UserDataSubmission", "to", "true", "if", "data", "was", "submitted", "if", "no", "data", "was", "submitted", "the", "shipping", "address", "data", "will", "be", "loaded", "by", ...
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L202-L223
31,642
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.InitBillingAddress
protected function InitBillingAddress() { $inputFilterUtil = $this->getInputFilterUtil(); $billingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING); if (null !== $billingAddressData) { $this->SetBillingAddressData($billingAdd...
php
protected function InitBillingAddress() { $inputFilterUtil = $this->getInputFilterUtil(); $billingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING); if (null !== $billingAddressData) { $this->SetBillingAddressData($billingAdd...
[ "protected", "function", "InitBillingAddress", "(", ")", "{", "$", "inputFilterUtil", "=", "$", "this", "->", "getInputFilterUtil", "(", ")", ";", "$", "billingAddressData", "=", "$", "inputFilterUtil", "->", "getFilteredPostInput", "(", "TdbDataExtranetUserAddress", ...
initialize billing address data and set the state of UserDataSubmission to true if data was submitted if no data was submitted the billing address data will be loaded by billing address of user.
[ "initialize", "billing", "address", "data", "and", "set", "the", "state", "of", "UserDataSubmission", "to", "true", "if", "data", "was", "submitted", "if", "no", "data", "was", "submitted", "the", "billing", "address", "data", "will", "be", "loaded", "by", "...
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L229-L250
31,643
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.ValidateUser
protected function ValidateUser($aUserData) { $bValid = false; $oActiveUser = self::getExtranetUserProvider()->getActiveUser(); if ($oActiveUser && is_array($oActiveUser->sqlData) && array_key_exists('customer_number', $oActiveUser->sqlData)) { $aUserData['customer_number'] = $oA...
php
protected function ValidateUser($aUserData) { $bValid = false; $oActiveUser = self::getExtranetUserProvider()->getActiveUser(); if ($oActiveUser && is_array($oActiveUser->sqlData) && array_key_exists('customer_number', $oActiveUser->sqlData)) { $aUserData['customer_number'] = $oA...
[ "protected", "function", "ValidateUser", "(", "$", "aUserData", ")", "{", "$", "bValid", "=", "false", ";", "$", "oActiveUser", "=", "self", "::", "getExtranetUserProvider", "(", ")", "->", "getActiveUser", "(", ")", ";", "if", "(", "$", "oActiveUser", "&&...
validate the user base data. registration request will also validate user name and password. @param array $aUserData @return bool
[ "validate", "the", "user", "base", "data", ".", "registration", "request", "will", "also", "validate", "user", "name", "and", "password", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L480-L502
31,644
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.ValidateShippingAddress
protected function ValidateShippingAddress($aAddress) { $oAddress = TdbDataExtranetUserAddress::GetNewInstance($aAddress); return $oAddress->ValidateData(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING); }
php
protected function ValidateShippingAddress($aAddress) { $oAddress = TdbDataExtranetUserAddress::GetNewInstance($aAddress); return $oAddress->ValidateData(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING); }
[ "protected", "function", "ValidateShippingAddress", "(", "$", "aAddress", ")", "{", "$", "oAddress", "=", "TdbDataExtranetUserAddress", "::", "GetNewInstance", "(", "$", "aAddress", ")", ";", "return", "$", "oAddress", "->", "ValidateData", "(", "TdbDataExtranetUser...
validate shipping address. @param array $aAddress @return bool
[ "validate", "shipping", "address", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L523-L528
31,645
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.GetShipToBillingAddress
protected function GetShipToBillingAddress() { if (array_key_exists('bShipToBillingAddress', $this->aUserData)) { return $this->aUserData['bShipToBillingAddress']; } if (array_key_exists('shopstepuserdata_bShipToBillingAddress', $_SESSION)) { return $_SESSION['shopste...
php
protected function GetShipToBillingAddress() { if (array_key_exists('bShipToBillingAddress', $this->aUserData)) { return $this->aUserData['bShipToBillingAddress']; } if (array_key_exists('shopstepuserdata_bShipToBillingAddress', $_SESSION)) { return $_SESSION['shopste...
[ "protected", "function", "GetShipToBillingAddress", "(", ")", "{", "if", "(", "array_key_exists", "(", "'bShipToBillingAddress'", ",", "$", "this", "->", "aUserData", ")", ")", "{", "return", "$", "this", "->", "aUserData", "[", "'bShipToBillingAddress'", "]", "...
return 1 if the user wants to ship to the billing address, else 0. @return int
[ "return", "1", "if", "the", "user", "wants", "to", "ship", "to", "the", "billing", "address", "else", "0", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L648-L660
31,646
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
TShopStepUserDataV2EndPoint.GetShippingAddressData
protected function GetShippingAddressData($sReturnThisParameterOnly = null) { $aReturnVal = false; if (array_key_exists('aShipping', $this->aUserData)) { $aAddress = $this->aUserData['aShipping']; if (array_key_exists('id', $aAddress) && !array_key_exists('selectedAddressId',...
php
protected function GetShippingAddressData($sReturnThisParameterOnly = null) { $aReturnVal = false; if (array_key_exists('aShipping', $this->aUserData)) { $aAddress = $this->aUserData['aShipping']; if (array_key_exists('id', $aAddress) && !array_key_exists('selectedAddressId',...
[ "protected", "function", "GetShippingAddressData", "(", "$", "sReturnThisParameterOnly", "=", "null", ")", "{", "$", "aReturnVal", "=", "false", ";", "if", "(", "array_key_exists", "(", "'aShipping'", ",", "$", "this", "->", "aUserData", ")", ")", "{", "$", ...
return shipping address data from user post. @param string $sReturnThisParameterOnly - if set, then only that field of the address is returned. if that field is not found, we return false @return array|bool
[ "return", "shipping", "address", "data", "from", "user", "post", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php#L750-L779
31,647
edmondscommerce/doctrine-static-meta
src/CodeGeneration/Generator/Field/FieldGenerator.php
FieldGenerator.generateField
public function generateField( string $fieldFqn, string $fieldType, ?string $phpType = null, $defaultValue = null, bool $isUnique = false ): string { $this->validateArguments($fieldFqn, $fieldType, $phpType); $this->setupClassProperties($fieldFqn, $fieldType, ...
php
public function generateField( string $fieldFqn, string $fieldType, ?string $phpType = null, $defaultValue = null, bool $isUnique = false ): string { $this->validateArguments($fieldFqn, $fieldType, $phpType); $this->setupClassProperties($fieldFqn, $fieldType, ...
[ "public", "function", "generateField", "(", "string", "$", "fieldFqn", ",", "string", "$", "fieldType", ",", "?", "string", "$", "phpType", "=", "null", ",", "$", "defaultValue", "=", "null", ",", "bool", "$", "isUnique", "=", "false", ")", ":", "string"...
Generate a new Field based on a property name and Doctrine Type or Archetype field FQN @see MappingHelper::ALL_DBAL_TYPES for the full list of Dbal Types @param string $fieldFqn @param string $fieldType @param null|string $phpType @param mixed $defaultValue @param bool $isUnique @return strin...
[ "Generate", "a", "new", "Field", "based", "on", "a", "property", "name", "and", "Doctrine", "Type", "or", "Archetype", "field", "FQN" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/CodeGeneration/Generator/Field/FieldGenerator.php#L181-L202
31,648
edmondscommerce/doctrine-static-meta
src/CodeGeneration/Generator/Field/FieldGenerator.php
FieldGenerator.traitFqnLooksLikeField
protected function traitFqnLooksLikeField(string $traitFqn): bool { try { $reflection = new \ts\Reflection\ReflectionClass($traitFqn); } catch (\ReflectionException $e) { throw new \InvalidArgumentException( 'invalid traitFqn ' . $traitFqn . ' does not seem to...
php
protected function traitFqnLooksLikeField(string $traitFqn): bool { try { $reflection = new \ts\Reflection\ReflectionClass($traitFqn); } catch (\ReflectionException $e) { throw new \InvalidArgumentException( 'invalid traitFqn ' . $traitFqn . ' does not seem to...
[ "protected", "function", "traitFqnLooksLikeField", "(", "string", "$", "traitFqn", ")", ":", "bool", "{", "try", "{", "$", "reflection", "=", "new", "\\", "ts", "\\", "Reflection", "\\", "ReflectionClass", "(", "$", "traitFqn", ")", ";", "}", "catch", "(",...
Does the specified trait FQN look like a field trait? @param string $traitFqn @return bool @throws \ReflectionException
[ "Does", "the", "specified", "trait", "FQN", "look", "like", "a", "field", "trait?" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/CodeGeneration/Generator/Field/FieldGenerator.php#L252-L271
31,649
edmondscommerce/doctrine-static-meta
src/CodeGeneration/Generator/Field/FieldGenerator.php
FieldGenerator.setupClassProperties
protected function setupClassProperties( string $fieldFqn, string $fieldType, ?string $phpType, $defaultValue, bool $isUnique ): void { $this->isArchetype = false; $this->fieldType = \strtolower($fieldType); if (true !== \in_array($this->fieldType, M...
php
protected function setupClassProperties( string $fieldFqn, string $fieldType, ?string $phpType, $defaultValue, bool $isUnique ): void { $this->isArchetype = false; $this->fieldType = \strtolower($fieldType); if (true !== \in_array($this->fieldType, M...
[ "protected", "function", "setupClassProperties", "(", "string", "$", "fieldFqn", ",", "string", "$", "fieldType", ",", "?", "string", "$", "phpType", ",", "$", "defaultValue", ",", "bool", "$", "isUnique", ")", ":", "void", "{", "$", "this", "->", "isArche...
Defining the properties for the field to be generated @param string $fieldFqn @param string $fieldType @param null|string $phpType @param mixed $defaultValue @param bool $isUnique @throws DoctrineStaticMetaException @SuppressWarnings(PHPMD.StaticAccess) @SuppressWarnings(PHPMD.BooleanArgumentFl...
[ "Defining", "the", "properties", "for", "the", "field", "to", "be", "generated" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/CodeGeneration/Generator/Field/FieldGenerator.php#L286-L345
31,650
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.GetCurrentFilter
protected function GetCurrentFilter() { static $aFilter = 'x'; if ('x' == $aFilter) { $oShop = TdbShop::GetInstance(); $aFilter = $oShop->GetActiveFilter(); } return $aFilter; }
php
protected function GetCurrentFilter() { static $aFilter = 'x'; if ('x' == $aFilter) { $oShop = TdbShop::GetInstance(); $aFilter = $oShop->GetActiveFilter(); } return $aFilter; }
[ "protected", "function", "GetCurrentFilter", "(", ")", "{", "static", "$", "aFilter", "=", "'x'", ";", "if", "(", "'x'", "==", "$", "aFilter", ")", "{", "$", "oShop", "=", "TdbShop", "::", "GetInstance", "(", ")", ";", "$", "aFilter", "=", "$", "oSho...
return current filter. @return array
[ "return", "current", "filter", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L60-L69
31,651
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.GetSearchLink
public function GetSearchLink($aFilterAddition = array(), $aExcludeFilterKeys = array()) { $sLink = ''; $aParams = array(); if (is_array($this->aSearchTerms) && count($this->aSearchTerms) > 0) { $aParams[TShopModuleArticlelistFilterSearch::PARAM_QUERY.'[0]'] = $this->sSearchTer...
php
public function GetSearchLink($aFilterAddition = array(), $aExcludeFilterKeys = array()) { $sLink = ''; $aParams = array(); if (is_array($this->aSearchTerms) && count($this->aSearchTerms) > 0) { $aParams[TShopModuleArticlelistFilterSearch::PARAM_QUERY.'[0]'] = $this->sSearchTer...
[ "public", "function", "GetSearchLink", "(", "$", "aFilterAddition", "=", "array", "(", ")", ",", "$", "aExcludeFilterKeys", "=", "array", "(", ")", ")", "{", "$", "sLink", "=", "''", ";", "$", "aParams", "=", "array", "(", ")", ";", "if", "(", "is_ar...
return a search query based on the current filter. @param array $aExcludeFilterKeys - any filter keys (same as in $this->aFilter) you place in here will be excluded from the link @return string
[ "return", "a", "search", "query", "based", "on", "the", "current", "filter", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L79-L118
31,652
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.GetSearchResultCategoryHits
public function GetSearchResultCategoryHits($sFilters = '') { $aHits = array(); if (!empty($this->fieldCategoryHits) && empty($sFilters)) { $aHits = unserialize($this->fieldCategoryHits); } else { $aCategoryCount = array(); $sRestrcition = ''; ...
php
public function GetSearchResultCategoryHits($sFilters = '') { $aHits = array(); if (!empty($this->fieldCategoryHits) && empty($sFilters)) { $aHits = unserialize($this->fieldCategoryHits); } else { $aCategoryCount = array(); $sRestrcition = ''; ...
[ "public", "function", "GetSearchResultCategoryHits", "(", "$", "sFilters", "=", "''", ")", "{", "$", "aHits", "=", "array", "(", ")", ";", "if", "(", "!", "empty", "(", "$", "this", "->", "fieldCategoryHits", ")", "&&", "empty", "(", "$", "sFilters", "...
return array with categorie ids and number of hits for that category. @return array
[ "return", "array", "with", "categorie", "ids", "and", "number", "of", "hits", "for", "that", "category", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L295-L355
31,653
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.GetNumberOfHits
public function GetNumberOfHits() { if ($this->fieldNumberOfRecordsFound < 0) { $query = "SELECT COUNT(*) AS recs FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."'"; if ($row = MySqlLegacySupport::getIn...
php
public function GetNumberOfHits() { if ($this->fieldNumberOfRecordsFound < 0) { $query = "SELECT COUNT(*) AS recs FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."'"; if ($row = MySqlLegacySupport::getIn...
[ "public", "function", "GetNumberOfHits", "(", ")", "{", "if", "(", "$", "this", "->", "fieldNumberOfRecordsFound", "<", "0", ")", "{", "$", "query", "=", "\"SELECT COUNT(*) AS recs FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '\"", ".", "MySqlLegacySupport",...
return number of records found. @return int
[ "return", "number", "of", "records", "found", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L362-L375
31,654
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.CacheIsStale
public function CacheIsStale() { $cachAge = strtotime($this->fieldLastUsedDate); $bIsStale = ((time() - $cachAge) > TdbShopSearchCache::MAX_CACHE_AGE_IN_SECONDS); return $bIsStale; }
php
public function CacheIsStale() { $cachAge = strtotime($this->fieldLastUsedDate); $bIsStale = ((time() - $cachAge) > TdbShopSearchCache::MAX_CACHE_AGE_IN_SECONDS); return $bIsStale; }
[ "public", "function", "CacheIsStale", "(", ")", "{", "$", "cachAge", "=", "strtotime", "(", "$", "this", "->", "fieldLastUsedDate", ")", ";", "$", "bIsStale", "=", "(", "(", "time", "(", ")", "-", "$", "cachAge", ")", ">", "TdbShopSearchCache", "::", "...
return true if the cache has become stale - will remove stale cache entries. @return bool
[ "return", "true", "if", "the", "cache", "has", "become", "stale", "-", "will", "remove", "stale", "cache", "entries", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L382-L388
31,655
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchCache.class.php
TShopSearchCache.ClearCache
public function ClearCache() { $query = "DELETE FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."' "; MySqlLegacySupport::getInstance()->query($query); $query = "DELETE FROM `shop_search_cache` WHERE `id` = '".M...
php
public function ClearCache() { $query = "DELETE FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '".MySqlLegacySupport::getInstance()->real_escape_string($this->id)."' "; MySqlLegacySupport::getInstance()->query($query); $query = "DELETE FROM `shop_search_cache` WHERE `id` = '".M...
[ "public", "function", "ClearCache", "(", ")", "{", "$", "query", "=", "\"DELETE FROM `shop_search_cache_item` WHERE `shop_search_cache_id` = '\"", ".", "MySqlLegacySupport", "::", "getInstance", "(", ")", "->", "real_escape_string", "(", "$", "this", "->", "id", ")", ...
clear cache item.
[ "clear", "cache", "item", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchCache.class.php#L393-L401
31,656
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchQuery.class.php
TShopSearchQuery.CreateIndexTick
public function CreateIndexTick($iNumberOfRowsToProcess) { $iRealNumberProcessed = 0; $oFields = &TdbShopSearchFieldWeightList::GetListForShopSearchQueryId($this->id); if (CMS_SHOP_INDEX_LOAD_DELAY_MILLISECONDS > 0) { usleep(CMS_SHOP_INDEX_LOAD_DELAY_MILLISECONDS * 1000); ...
php
public function CreateIndexTick($iNumberOfRowsToProcess) { $iRealNumberProcessed = 0; $oFields = &TdbShopSearchFieldWeightList::GetListForShopSearchQueryId($this->id); if (CMS_SHOP_INDEX_LOAD_DELAY_MILLISECONDS > 0) { usleep(CMS_SHOP_INDEX_LOAD_DELAY_MILLISECONDS * 1000); ...
[ "public", "function", "CreateIndexTick", "(", "$", "iNumberOfRowsToProcess", ")", "{", "$", "iRealNumberProcessed", "=", "0", ";", "$", "oFields", "=", "&", "TdbShopSearchFieldWeightList", "::", "GetListForShopSearchQueryId", "(", "$", "this", "->", "id", ")", ";"...
creates index for the number of rows requested. returns the real number of rows processed. @param int $iNumberOfRowsToProcess - if set to -1 we will process all rows @return int
[ "creates", "index", "for", "the", "number", "of", "rows", "requested", ".", "returns", "the", "real", "number", "of", "rows", "processed", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchQuery.class.php#L122-L158
31,657
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchQuery.class.php
TShopSearchQuery.NumberOfRecordsLeftToIndex
public function NumberOfRecordsLeftToIndex() { $iCount = 0; if ($this->fieldIndexRunning) { $sIndexTableName = $this->GetIndexRawTableName(); $query = "SHOW TABLES LIKE '".MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName)."'"; $tRes = MySqlLe...
php
public function NumberOfRecordsLeftToIndex() { $iCount = 0; if ($this->fieldIndexRunning) { $sIndexTableName = $this->GetIndexRawTableName(); $query = "SHOW TABLES LIKE '".MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName)."'"; $tRes = MySqlLe...
[ "public", "function", "NumberOfRecordsLeftToIndex", "(", ")", "{", "$", "iCount", "=", "0", ";", "if", "(", "$", "this", "->", "fieldIndexRunning", ")", "{", "$", "sIndexTableName", "=", "$", "this", "->", "GetIndexRawTableName", "(", ")", ";", "$", "query...
returns the number of records that still need to be indext for the query will stop the index if no entries are left to index. @return int
[ "returns", "the", "number", "of", "records", "that", "still", "need", "to", "be", "indext", "for", "the", "query", "will", "stop", "the", "index", "if", "no", "entries", "are", "left", "to", "index", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchQuery.class.php#L166-L186
31,658
chameleon-system/chameleon-shop
src/SearchBundle/objects/db/TShopSearchQuery.class.php
TShopSearchQuery.StopIndex
public function StopIndex() { $sIndexTableName = $this->GetIndexRawTableName(); if (TCMSRecord::TableExists($sIndexTableName)) { $query = 'DROP TABLE `'.MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName).'`'; MySqlLegacySupport::getInstance()->query($quer...
php
public function StopIndex() { $sIndexTableName = $this->GetIndexRawTableName(); if (TCMSRecord::TableExists($sIndexTableName)) { $query = 'DROP TABLE `'.MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName).'`'; MySqlLegacySupport::getInstance()->query($quer...
[ "public", "function", "StopIndex", "(", ")", "{", "$", "sIndexTableName", "=", "$", "this", "->", "GetIndexRawTableName", "(", ")", ";", "if", "(", "TCMSRecord", "::", "TableExists", "(", "$", "sIndexTableName", ")", ")", "{", "$", "query", "=", "'DROP TAB...
stop the current index operation.
[ "stop", "the", "current", "index", "operation", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/SearchBundle/objects/db/TShopSearchQuery.class.php#L191-L205
31,659
edmondscommerce/doctrine-static-meta
src/Entity/Validation/EntityDataValidatorFactory.php
EntityDataValidatorFactory.buildEntityDataValidator
public function buildEntityDataValidator(): EntityDataValidatorInterface { $builder = Validation::createValidatorBuilder(); $builder->addMethodMapping(self::METHOD_LOAD_VALIDATOR_META_DATA); $builder->setMetadataCache($this->doctrineCache); $builder->setConstraintValidatorFactory($th...
php
public function buildEntityDataValidator(): EntityDataValidatorInterface { $builder = Validation::createValidatorBuilder(); $builder->addMethodMapping(self::METHOD_LOAD_VALIDATOR_META_DATA); $builder->setMetadataCache($this->doctrineCache); $builder->setConstraintValidatorFactory($th...
[ "public", "function", "buildEntityDataValidator", "(", ")", ":", "EntityDataValidatorInterface", "{", "$", "builder", "=", "Validation", "::", "createValidatorBuilder", "(", ")", ";", "$", "builder", "->", "addMethodMapping", "(", "self", "::", "METHOD_LOAD_VALIDATOR_...
Build an EntityDataValidatorInterface @return EntityDataValidatorInterface @SuppressWarnings(PHPMD.StaticAccess)
[ "Build", "an", "EntityDataValidatorInterface" ]
c5b1caab0b2e3a84c34082af96529a274f0c3d7e
https://github.com/edmondscommerce/doctrine-static-meta/blob/c5b1caab0b2e3a84c34082af96529a274f0c3d7e/src/Entity/Validation/EntityDataValidatorFactory.php#L63-L73
31,660
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderItem.class.php
TShopOrderItem.PostInsertHook
protected function PostInsertHook() { parent::PostInsertHook(); $oArticle = &$this->GetFieldShopArticle(); if (!is_null($oArticle)) { $bNewAmountIsDelta = true; $bUpdateSaleCounter = true; $oArticle->UpdateStock(-1 * $this->fieldOrderAmount, $bNewAmountIsD...
php
protected function PostInsertHook() { parent::PostInsertHook(); $oArticle = &$this->GetFieldShopArticle(); if (!is_null($oArticle)) { $bNewAmountIsDelta = true; $bUpdateSaleCounter = true; $oArticle->UpdateStock(-1 * $this->fieldOrderAmount, $bNewAmountIsD...
[ "protected", "function", "PostInsertHook", "(", ")", "{", "parent", "::", "PostInsertHook", "(", ")", ";", "$", "oArticle", "=", "&", "$", "this", "->", "GetFieldShopArticle", "(", ")", ";", "if", "(", "!", "is_null", "(", "$", "oArticle", ")", ")", "{...
use the method to up the sales count for the article.
[ "use", "the", "method", "to", "up", "the", "sales", "count", "for", "the", "article", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderItem.class.php#L112-L121
31,661
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopOrderItem.class.php
TShopOrderItem.isDownload
public function isDownload() { $db = \ChameleonSystem\CoreBundle\ServiceLocator::get('database_connection'); $query = 'select COUNT(*) AS matches FROM `shop_order_item_download_cms_document_mlt` WHERE `source_id` = :shopOrderItemId'; $result = $db->fetchAssoc($query, array...
php
public function isDownload() { $db = \ChameleonSystem\CoreBundle\ServiceLocator::get('database_connection'); $query = 'select COUNT(*) AS matches FROM `shop_order_item_download_cms_document_mlt` WHERE `source_id` = :shopOrderItemId'; $result = $db->fetchAssoc($query, array...
[ "public", "function", "isDownload", "(", ")", "{", "$", "db", "=", "\\", "ChameleonSystem", "\\", "CoreBundle", "\\", "ServiceLocator", "::", "get", "(", "'database_connection'", ")", ";", "$", "query", "=", "'select COUNT(*) AS matches FROM `shop_order_item_download_...
return true if this is a download product. @return bool
[ "return", "true", "if", "this", "is", "a", "download", "product", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopOrderItem.class.php#L162-L170
31,662
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.ClearBasket
protected function ClearBasket() { $oBasket = TShopBasket::GetInstance(); if ($oBasket->iTotalNumberOfUniqueArticles > 0) { $oBasket->ClearBasket(); $aParams = $this->global->GetUserData(); if (array_key_exists('basket', $aParams) && is_array($aParams['basket'])) ...
php
protected function ClearBasket() { $oBasket = TShopBasket::GetInstance(); if ($oBasket->iTotalNumberOfUniqueArticles > 0) { $oBasket->ClearBasket(); $aParams = $this->global->GetUserData(); if (array_key_exists('basket', $aParams) && is_array($aParams['basket'])) ...
[ "protected", "function", "ClearBasket", "(", ")", "{", "$", "oBasket", "=", "TShopBasket", "::", "GetInstance", "(", ")", ";", "if", "(", "$", "oBasket", "->", "iTotalNumberOfUniqueArticles", ">", "0", ")", "{", "$", "oBasket", "->", "ClearBasket", "(", ")...
clear all products from the basket and redirect to active page.
[ "clear", "all", "products", "from", "the", "basket", "and", "redirect", "to", "active", "page", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L89-L103
31,663
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.JumpToBasketPage
public function JumpToBasketPage() { $bJumpAsFarAsPossible = false; if ('1' === $this->getInputFilterUtil()->getFilteredInput('bJumpAsFarAsPossible')) { $bJumpAsFarAsPossible = true; } // save calling url to session $sCallingURL = $this->getCallingUrl(); ...
php
public function JumpToBasketPage() { $bJumpAsFarAsPossible = false; if ('1' === $this->getInputFilterUtil()->getFilteredInput('bJumpAsFarAsPossible')) { $bJumpAsFarAsPossible = true; } // save calling url to session $sCallingURL = $this->getCallingUrl(); ...
[ "public", "function", "JumpToBasketPage", "(", ")", "{", "$", "bJumpAsFarAsPossible", "=", "false", ";", "if", "(", "'1'", "===", "$", "this", "->", "getInputFilterUtil", "(", ")", "->", "getFilteredInput", "(", "'bJumpAsFarAsPossible'", ")", ")", "{", "$", ...
call the method to jump to the basket detail page. it will store the calling URL in the session, so that it becomes possible to jump back to this page from the basket. @throws RouteNotFoundException
[ "call", "the", "method", "to", "jump", "to", "the", "basket", "detail", "page", ".", "it", "will", "store", "the", "calling", "URL", "in", "the", "session", "so", "that", "it", "becomes", "possible", "to", "jump", "back", "to", "this", "page", "from", ...
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L155-L205
31,664
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.getCallingUrl
protected function getCallingUrl() { $oGlobal = TGlobal::instance(); $sCallingURL = $oGlobal->GetUserData('sourceurl'); if (true === empty($sCallingURL)) { //the method will most likely be called on a basket page, in this case, ignore it... $activePageService = $this-...
php
protected function getCallingUrl() { $oGlobal = TGlobal::instance(); $sCallingURL = $oGlobal->GetUserData('sourceurl'); if (true === empty($sCallingURL)) { //the method will most likely be called on a basket page, in this case, ignore it... $activePageService = $this-...
[ "protected", "function", "getCallingUrl", "(", ")", "{", "$", "oGlobal", "=", "TGlobal", "::", "instance", "(", ")", ";", "$", "sCallingURL", "=", "$", "oGlobal", "->", "GetUserData", "(", "'sourceurl'", ")", ";", "if", "(", "true", "===", "empty", "(", ...
returns the url to the current page. @return string
[ "returns", "the", "url", "to", "the", "current", "page", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L212-L245
31,665
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.RemoveFromNoticeList
public function RemoveFromNoticeList($aArticleIdsToMove = null, $sMessageHandler = null, $bIsInteralCall = false, $bIsAjaxCall = false) { $oGlobal = TGlobal::instance(); $aRequestData = $oGlobal->GetUserData(self::URL_REQUEST_PARAMETER); if (is_null($aArticleIdsToMove) && array_key_exists(se...
php
public function RemoveFromNoticeList($aArticleIdsToMove = null, $sMessageHandler = null, $bIsInteralCall = false, $bIsAjaxCall = false) { $oGlobal = TGlobal::instance(); $aRequestData = $oGlobal->GetUserData(self::URL_REQUEST_PARAMETER); if (is_null($aArticleIdsToMove) && array_key_exists(se...
[ "public", "function", "RemoveFromNoticeList", "(", "$", "aArticleIdsToMove", "=", "null", ",", "$", "sMessageHandler", "=", "null", ",", "$", "bIsInteralCall", "=", "false", ",", "$", "bIsAjaxCall", "=", "false", ")", "{", "$", "oGlobal", "=", "TGlobal", "::...
remove item from notice list. @param array $aArticleIdsToMove @param string $sMessageHandler @param bool $bIsInteralCall
[ "remove", "item", "from", "notice", "list", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L364-L412
31,666
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.TransferToNoticeList
public function TransferToNoticeList($iArticleId = null, $iAmount = null, $sMessageHandler = null, $bIsInternalCall = false) { $this->RemoveFromBasket($iArticleId, $sMessageHandler, true); $this->AddToNoticeList($iArticleId, $iAmount, $sMessageHandler, $bIsInternalCall); }
php
public function TransferToNoticeList($iArticleId = null, $iAmount = null, $sMessageHandler = null, $bIsInternalCall = false) { $this->RemoveFromBasket($iArticleId, $sMessageHandler, true); $this->AddToNoticeList($iArticleId, $iAmount, $sMessageHandler, $bIsInternalCall); }
[ "public", "function", "TransferToNoticeList", "(", "$", "iArticleId", "=", "null", ",", "$", "iAmount", "=", "null", ",", "$", "sMessageHandler", "=", "null", ",", "$", "bIsInternalCall", "=", "false", ")", "{", "$", "this", "->", "RemoveFromBasket", "(", ...
moves or copies one or more articles from the basket to the notice list. products to be moved must be passed. @param int $iArticleId - if you pass null, it will attempt to fetch the item id from post @param int $iAmount - amount to add @param string $sMessageHandler - info passed to this handler - u...
[ "moves", "or", "copies", "one", "or", "more", "articles", "from", "the", "basket", "to", "the", "notice", "list", ".", "products", "to", "be", "moved", "must", "be", "passed", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L422-L426
31,667
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.AddToNoticeList
public function AddToNoticeList($iArticleId = null, $iAmount = null, $sMessageHandler = null, $bIsInternalCall = false) { $oGlobal = TGlobal::instance(); $aRequestData = $oGlobal->GetUserData(self::URL_REQUEST_PARAMETER); if (is_null($iArticleId) && array_key_exists(self::URL_ITEM_ID_NAME, $...
php
public function AddToNoticeList($iArticleId = null, $iAmount = null, $sMessageHandler = null, $bIsInternalCall = false) { $oGlobal = TGlobal::instance(); $aRequestData = $oGlobal->GetUserData(self::URL_REQUEST_PARAMETER); if (is_null($iArticleId) && array_key_exists(self::URL_ITEM_ID_NAME, $...
[ "public", "function", "AddToNoticeList", "(", "$", "iArticleId", "=", "null", ",", "$", "iAmount", "=", "null", ",", "$", "sMessageHandler", "=", "null", ",", "$", "bIsInternalCall", "=", "false", ")", "{", "$", "oGlobal", "=", "TGlobal", "::", "instance",...
insert an item into the notice list. @param int $iArticleId - if you pass null, it will attempt to fetch the item id from post @param int $iAmount - amount to add @param string $sMessageHandler - info passed to this handler - uses the default message consumer for the shop if non passed (can also be ...
[ "insert", "an", "item", "into", "the", "notice", "list", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L436-L498
31,668
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.getValidVoucher
protected function getValidVoucher($sShopVoucherCode) { $oValidVoucher = null; /** @var $oVoucher TdbShopVoucher */ $oVoucher = TdbShopVoucher::GetNewInstance(); if (strlen($sShopVoucherCode) >= 3) { if ($oVoucher->LoadFromFields(array('code' => $sShopVoucherCode, 'is_us...
php
protected function getValidVoucher($sShopVoucherCode) { $oValidVoucher = null; /** @var $oVoucher TdbShopVoucher */ $oVoucher = TdbShopVoucher::GetNewInstance(); if (strlen($sShopVoucherCode) >= 3) { if ($oVoucher->LoadFromFields(array('code' => $sShopVoucherCode, 'is_us...
[ "protected", "function", "getValidVoucher", "(", "$", "sShopVoucherCode", ")", "{", "$", "oValidVoucher", "=", "null", ";", "/** @var $oVoucher TdbShopVoucher */", "$", "oVoucher", "=", "TdbShopVoucher", "::", "GetNewInstance", "(", ")", ";", "if", "(", "strlen", ...
validates the voucher code and tries to load the voucher record. @param $sShopVoucherCode @return TdbShopVoucher|null
[ "validates", "the", "voucher", "code", "and", "tries", "to", "load", "the", "voucher", "record", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L560-L573
31,669
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint.RedirectAfterEvent
protected function RedirectAfterEvent($iRequestRedirectNodeId) { if (is_null($iRequestRedirectNodeId)) { $this->RedirectToCallingPage(); } else { $checkoutSystemPage = $this->getSystemPageService()->getSystemPage('checkout'); if (null !== $checkoutSystemPage && $c...
php
protected function RedirectAfterEvent($iRequestRedirectNodeId) { if (is_null($iRequestRedirectNodeId)) { $this->RedirectToCallingPage(); } else { $checkoutSystemPage = $this->getSystemPageService()->getSystemPage('checkout'); if (null !== $checkoutSystemPage && $c...
[ "protected", "function", "RedirectAfterEvent", "(", "$", "iRequestRedirectNodeId", ")", "{", "if", "(", "is_null", "(", "$", "iRequestRedirectNodeId", ")", ")", "{", "$", "this", "->", "RedirectToCallingPage", "(", ")", ";", "}", "else", "{", "$", "checkoutSys...
redirects the user to the requested node after performing some action. @param string|int $iRequestRedirectNodeId
[ "redirects", "the", "user", "to", "the", "requested", "node", "after", "performing", "some", "action", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L1005-L1023
31,670
chameleon-system/chameleon-shop
src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php
MTShopBasketCoreEndpoint._AllowCache
public function _AllowCache() { if (0 != TShopBasket::GetInstance()->iTotalNumberOfUniqueArticles) { return false; } if (true === $this->cacheDisabledBecauseBasketHasMessages()) { return false; } return true; }
php
public function _AllowCache() { if (0 != TShopBasket::GetInstance()->iTotalNumberOfUniqueArticles) { return false; } if (true === $this->cacheDisabledBecauseBasketHasMessages()) { return false; } return true; }
[ "public", "function", "_AllowCache", "(", ")", "{", "if", "(", "0", "!=", "TShopBasket", "::", "GetInstance", "(", ")", "->", "iTotalNumberOfUniqueArticles", ")", "{", "return", "false", ";", "}", "if", "(", "true", "===", "$", "this", "->", "cacheDisabled...
if this function returns true, then the result of the execute function will be cached. @deprecated - use a mapper instead (see getMapper) @return bool
[ "if", "this", "function", "returns", "true", "then", "the", "result", "of", "the", "execute", "function", "will", "be", "cached", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/WebModules/MTShopBasketCore/MTShopBasketCoreEndpoint.class.php#L1050-L1061
31,671
CVO-Technologies/cakephp-github
src/Webservice/EventsWebservice.php
EventsWebservice._stream
protected function _stream($url, array $queryParameters) { while (true) { $this->_lastTime = time(); $options = []; if ($this->_lastEtag) { $options['headers']['If-None-Match'] = $this->_lastEtag; } /* @var Response $response */ ...
php
protected function _stream($url, array $queryParameters) { while (true) { $this->_lastTime = time(); $options = []; if ($this->_lastEtag) { $options['headers']['If-None-Match'] = $this->_lastEtag; } /* @var Response $response */ ...
[ "protected", "function", "_stream", "(", "$", "url", ",", "array", "$", "queryParameters", ")", "{", "while", "(", "true", ")", "{", "$", "this", "->", "_lastTime", "=", "time", "(", ")", ";", "$", "options", "=", "[", "]", ";", "if", "(", "$", "...
Stream results from the events endpoint. @param string $url Endpoint to stream events from. @param array $queryParameters Query parameters to send @return \Generator|void
[ "Stream", "results", "from", "the", "events", "endpoint", "." ]
43647e53fd87a3ab93fe2f24ce3686b594d36241
https://github.com/CVO-Technologies/cakephp-github/blob/43647e53fd87a3ab93fe2f24ce3686b594d36241/src/Webservice/EventsWebservice.php#L81-L127
31,672
CVO-Technologies/cakephp-github
src/Webservice/EventsWebservice.php
EventsWebservice._transformStreamResponses
protected function _transformStreamResponses(Endpoint $endpoint, \Iterator $resources) { foreach ($resources as $resource) { yield $this->_transformResource($endpoint, $resource); } }
php
protected function _transformStreamResponses(Endpoint $endpoint, \Iterator $resources) { foreach ($resources as $resource) { yield $this->_transformResource($endpoint, $resource); } }
[ "protected", "function", "_transformStreamResponses", "(", "Endpoint", "$", "endpoint", ",", "\\", "Iterator", "$", "resources", ")", "{", "foreach", "(", "$", "resources", "as", "$", "resource", ")", "{", "yield", "$", "this", "->", "_transformResource", "(",...
Transforms streamed responses into resources @param \Muffin\Webservice\Model\Endpoint $endpoint Endpoint to use for resource class @param \Iterator $resources Iterator to get responses from @yield \Muffin\Webservice\Model\Resource Webservice resource @return \Generator Resource generator @throws \Exception HTTP except...
[ "Transforms", "streamed", "responses", "into", "resources" ]
43647e53fd87a3ab93fe2f24ce3686b594d36241
https://github.com/CVO-Technologies/cakephp-github/blob/43647e53fd87a3ab93fe2f24ce3686b594d36241/src/Webservice/EventsWebservice.php#L138-L143
31,673
PGB-LIV/php-ms
src/Utility/Digest/AbstractDigest.php
AbstractDigest.setMaxMissedCleavage
public function setMaxMissedCleavage($maxMissedCleavage) { if (! is_int($maxMissedCleavage)) { throw new \InvalidArgumentException( 'Invalid argument type, integer expected. Received ' . gettype($maxMissedCleavage)); } $this->maxMissedCleavage = $maxMissedCleavag...
php
public function setMaxMissedCleavage($maxMissedCleavage) { if (! is_int($maxMissedCleavage)) { throw new \InvalidArgumentException( 'Invalid argument type, integer expected. Received ' . gettype($maxMissedCleavage)); } $this->maxMissedCleavage = $maxMissedCleavag...
[ "public", "function", "setMaxMissedCleavage", "(", "$", "maxMissedCleavage", ")", "{", "if", "(", "!", "is_int", "(", "$", "maxMissedCleavage", ")", ")", "{", "throw", "new", "\\", "InvalidArgumentException", "(", "'Invalid argument type, integer expected. Received '", ...
Set the maximum number of missed cleavages the algorithm should produce. By default no missed cleavages are produced. @param int $maxMissedCleavage Maximum number of cleavages to account for
[ "Set", "the", "maximum", "number", "of", "missed", "cleavages", "the", "algorithm", "should", "produce", ".", "By", "default", "no", "missed", "cleavages", "are", "produced", "." ]
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Utility/Digest/AbstractDigest.php#L58-L66
31,674
PGB-LIV/php-ms
src/Utility/Digest/AbstractDigest.php
AbstractDigest.setNmeEnabled
public function setNmeEnabled($isNmeEnabled) { if (! is_bool($isNmeEnabled)) { throw new \InvalidArgumentException( 'Invalid argument type, bool expected. Received ' . gettype($isNmeEnabled)); } $this->isNmeEnabled = $isNmeEnabled; }
php
public function setNmeEnabled($isNmeEnabled) { if (! is_bool($isNmeEnabled)) { throw new \InvalidArgumentException( 'Invalid argument type, bool expected. Received ' . gettype($isNmeEnabled)); } $this->isNmeEnabled = $isNmeEnabled; }
[ "public", "function", "setNmeEnabled", "(", "$", "isNmeEnabled", ")", "{", "if", "(", "!", "is_bool", "(", "$", "isNmeEnabled", ")", ")", "{", "throw", "new", "\\", "InvalidArgumentException", "(", "'Invalid argument type, bool expected. Received '", ".", "gettype",...
Sets whether n-terminal methionine excision should be performed. When enabled any methionine at the n-terminus of a protein will be removed. Both the excised and non-excised peptide will be returned after digestion. Defaults to true. @param bool $isNmeEnabled Set true to enable n-terminal methionine excision
[ "Sets", "whether", "n", "-", "terminal", "methionine", "excision", "should", "be", "performed", ".", "When", "enabled", "any", "methionine", "at", "the", "n", "-", "terminus", "of", "a", "protein", "will", "be", "removed", ".", "Both", "the", "excised", "a...
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Utility/Digest/AbstractDigest.php#L87-L95
31,675
PGB-LIV/php-ms
src/Utility/Digest/AbstractDigest.php
AbstractDigest.performMethionineExcision
private function performMethionineExcision(array $peptides) { $nmePeptides = array(); foreach ($peptides as $peptide) { $entry = $peptide->getProteins()[0]; if ($entry->getStart() > 0) { continue; } $sequence = $peptide->getSequence()...
php
private function performMethionineExcision(array $peptides) { $nmePeptides = array(); foreach ($peptides as $peptide) { $entry = $peptide->getProteins()[0]; if ($entry->getStart() > 0) { continue; } $sequence = $peptide->getSequence()...
[ "private", "function", "performMethionineExcision", "(", "array", "$", "peptides", ")", "{", "$", "nmePeptides", "=", "array", "(", ")", ";", "foreach", "(", "$", "peptides", "as", "$", "peptide", ")", "{", "$", "entry", "=", "$", "peptide", "->", "getPr...
Performs methionine excision on an array of peptides @param Peptide $peptides @return Peptide[]
[ "Performs", "methionine", "excision", "on", "an", "array", "of", "peptides" ]
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Utility/Digest/AbstractDigest.php#L131-L160
31,676
PGB-LIV/php-ms
src/Core/Entry/ProteinEntry.php
ProteinEntry.setStart
public function setStart($position) { if (! is_int($position)) { throw new \InvalidArgumentException( 'Argument 1 must be of type integer. Argument type is ' . gettype($position)); } $this->start = $position; }
php
public function setStart($position) { if (! is_int($position)) { throw new \InvalidArgumentException( 'Argument 1 must be of type integer. Argument type is ' . gettype($position)); } $this->start = $position; }
[ "public", "function", "setStart", "(", "$", "position", ")", "{", "if", "(", "!", "is_int", "(", "$", "position", ")", ")", "{", "throw", "new", "\\", "InvalidArgumentException", "(", "'Argument 1 must be of type integer. Argument type is '", ".", "gettype", "(", ...
Sets the start position of the parent object inside the protein @param int $position @throws \InvalidArgumentException If argument is non-integer
[ "Sets", "the", "start", "position", "of", "the", "parent", "object", "inside", "the", "protein" ]
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Core/Entry/ProteinEntry.php#L78-L86
31,677
PGB-LIV/php-ms
src/Core/Entry/ProteinEntry.php
ProteinEntry.setEnd
public function setEnd($position) { if (! is_int($position)) { throw new \InvalidArgumentException( 'Argument 1 must be of type integer. Argument type is ' . gettype($position)); } $this->end = $position; }
php
public function setEnd($position) { if (! is_int($position)) { throw new \InvalidArgumentException( 'Argument 1 must be of type integer. Argument type is ' . gettype($position)); } $this->end = $position; }
[ "public", "function", "setEnd", "(", "$", "position", ")", "{", "if", "(", "!", "is_int", "(", "$", "position", ")", ")", "{", "throw", "new", "\\", "InvalidArgumentException", "(", "'Argument 1 must be of type integer. Argument type is '", ".", "gettype", "(", ...
Sets the end position of the parent object inside the protein @param int $position @throws \InvalidArgumentException If argument is non-integer
[ "Sets", "the", "end", "position", "of", "the", "parent", "object", "inside", "the", "protein" ]
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Core/Entry/ProteinEntry.php#L104-L112
31,678
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopVariantSet.class.php
TShopVariantSet.GetChangableFieldNames
public function GetChangableFieldNames() { $aFieldNames = $this->GetFromInternalCache('aChangableFieldNames'); if (is_null($aFieldNames)) { $aFieldNames = array(); $oFields = $this->GetFieldCmsFieldConfList(); while ($oField = $oFields->Next()) { $...
php
public function GetChangableFieldNames() { $aFieldNames = $this->GetFromInternalCache('aChangableFieldNames'); if (is_null($aFieldNames)) { $aFieldNames = array(); $oFields = $this->GetFieldCmsFieldConfList(); while ($oField = $oFields->Next()) { $...
[ "public", "function", "GetChangableFieldNames", "(", ")", "{", "$", "aFieldNames", "=", "$", "this", "->", "GetFromInternalCache", "(", "'aChangableFieldNames'", ")", ";", "if", "(", "is_null", "(", "$", "aFieldNames", ")", ")", "{", "$", "aFieldNames", "=", ...
return an array of fields that may be edited for variants of this set. @return array
[ "return", "an", "array", "of", "fields", "that", "may", "be", "edited", "for", "variants", "of", "this", "set", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopVariantSet.class.php#L19-L33
31,679
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopVariantSet.class.php
TShopVariantSet.AllowEditOfField
public function AllowEditOfField($sFieldName) { $aFieldsEditable = $this->GetChangableFieldNames(); $sFieldName = str_replace('`', '', $sFieldName); return in_array($sFieldName, $aFieldsEditable); }
php
public function AllowEditOfField($sFieldName) { $aFieldsEditable = $this->GetChangableFieldNames(); $sFieldName = str_replace('`', '', $sFieldName); return in_array($sFieldName, $aFieldsEditable); }
[ "public", "function", "AllowEditOfField", "(", "$", "sFieldName", ")", "{", "$", "aFieldsEditable", "=", "$", "this", "->", "GetChangableFieldNames", "(", ")", ";", "$", "sFieldName", "=", "str_replace", "(", "'`'", ",", "''", ",", "$", "sFieldName", ")", ...
returns true if the field name passed is allowed to be edtited for variants of this set type. @param string $sFieldName @return bool
[ "returns", "true", "if", "the", "field", "name", "passed", "is", "allowed", "to", "be", "edtited", "for", "variants", "of", "this", "set", "type", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopVariantSet.class.php#L42-L48
31,680
chameleon-system/chameleon-shop
src/ShopBundle/objects/db/TShopVariantSet.class.php
TShopVariantSet.GetVariantTypeForIdentifier
public function GetVariantTypeForIdentifier($sVariantTypeIdentifier) { $oType = &$this->GetFromInternalCache('VariantTypeForIdentifier'.$sVariantTypeIdentifier); if (is_null($oType)) { $oType = TdbShopVariantType::GetNewInstance(); /** @var $oType TdbShopVariantType */ ...
php
public function GetVariantTypeForIdentifier($sVariantTypeIdentifier) { $oType = &$this->GetFromInternalCache('VariantTypeForIdentifier'.$sVariantTypeIdentifier); if (is_null($oType)) { $oType = TdbShopVariantType::GetNewInstance(); /** @var $oType TdbShopVariantType */ ...
[ "public", "function", "GetVariantTypeForIdentifier", "(", "$", "sVariantTypeIdentifier", ")", "{", "$", "oType", "=", "&", "$", "this", "->", "GetFromInternalCache", "(", "'VariantTypeForIdentifier'", ".", "$", "sVariantTypeIdentifier", ")", ";", "if", "(", "is_null...
return the variant type with the identifier. @param string $sVariantTypeIdentifier @return TdbShopVariantType
[ "return", "the", "variant", "type", "with", "the", "identifier", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/db/TShopVariantSet.class.php#L73-L86
31,681
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Model/Constraints.php
OffAmazonPaymentsService_Model_Constraints.setConstraint
public function setConstraint($constraint) { if (!$this->_isNumericArray($constraint)) { $constraint = array ($constraint); } $this->_fields['Constraint']['FieldValue'] = $constraint; return $this; }
php
public function setConstraint($constraint) { if (!$this->_isNumericArray($constraint)) { $constraint = array ($constraint); } $this->_fields['Constraint']['FieldValue'] = $constraint; return $this; }
[ "public", "function", "setConstraint", "(", "$", "constraint", ")", "{", "if", "(", "!", "$", "this", "->", "_isNumericArray", "(", "$", "constraint", ")", ")", "{", "$", "constraint", "=", "array", "(", "$", "constraint", ")", ";", "}", "$", "this", ...
Sets the value of the Constraint. @param mixed Constraint or an array of Constraint Constraint @return this instance
[ "Sets", "the", "value", "of", "the", "Constraint", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Model/Constraints.php#L75-L82
31,682
PGB-LIV/php-ms
src/Core/Peptide.php
Peptide.getMolecularFormula
public function getMolecularFormula() { $acids = str_split($this->getSequence(), 1); $frequency = array( 'C' => 0, 'H' => 0, 'N' => 0, 'O' => 0, 'S' => 0 ); foreach ($acids as $acid) { $composition = AminoAcidC...
php
public function getMolecularFormula() { $acids = str_split($this->getSequence(), 1); $frequency = array( 'C' => 0, 'H' => 0, 'N' => 0, 'O' => 0, 'S' => 0 ); foreach ($acids as $acid) { $composition = AminoAcidC...
[ "public", "function", "getMolecularFormula", "(", ")", "{", "$", "acids", "=", "str_split", "(", "$", "this", "->", "getSequence", "(", ")", ",", "1", ")", ";", "$", "frequency", "=", "array", "(", "'C'", "=>", "0", ",", "'H'", "=>", "0", ",", "'N'...
Gets the molecular formula for this peptide string. @return string Molecular formula
[ "Gets", "the", "molecular", "formula", "for", "this", "peptide", "string", "." ]
091751eb12512f4bc6ada07bda745ce49331e24f
https://github.com/PGB-LIV/php-ms/blob/091751eb12512f4bc6ada07bda745ce49331e24f/src/Core/Peptide.php#L119-L170
31,683
chameleon-system/chameleon-shop
src/ShopBundle/objects/TCMSSmartURLHandler/TCMSSmartURLHandler_ShopIPayment.class.php
TCMSSmartURLHandler_ShopIPayment.SetStepParameter
protected function SetStepParameter($oStep) { $bParameterSet = false; $oBasket = TShopBasket::GetInstance(); $oGlobal = TGlobal::instance(); $sPaymentMethodId = $oGlobal->GetUserData('shop_payment_method_id'); $oActivePaymentMethod = TdbShopPaymentMethod::GetNewInstance(); ...
php
protected function SetStepParameter($oStep) { $bParameterSet = false; $oBasket = TShopBasket::GetInstance(); $oGlobal = TGlobal::instance(); $sPaymentMethodId = $oGlobal->GetUserData('shop_payment_method_id'); $oActivePaymentMethod = TdbShopPaymentMethod::GetNewInstance(); ...
[ "protected", "function", "SetStepParameter", "(", "$", "oStep", ")", "{", "$", "bParameterSet", "=", "false", ";", "$", "oBasket", "=", "TShopBasket", "::", "GetInstance", "(", ")", ";", "$", "oGlobal", "=", "TGlobal", "::", "instance", "(", ")", ";", "$...
Set needed parameter for next step like step completed and active payment method. @param TShopOrderStep $oStep @return bool $bParameterSet
[ "Set", "needed", "parameter", "for", "next", "step", "like", "step", "completed", "and", "active", "payment", "method", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/TCMSSmartURLHandler/TCMSSmartURLHandler_ShopIPayment.class.php#L62-L74
31,684
chameleon-system/chameleon-shop
src/ShopBundle/objects/TCMSSmartURLHandler/TCMSSmartURLHandler_ShopIPayment.class.php
TCMSSmartURLHandler_ShopIPayment.DeleteNotExecutedOrder
protected function DeleteNotExecutedOrder($sUniqId) { $oNotExecutedOrder = TdbShopOrder::GetNewInstance(); if ($oNotExecutedOrder->LoadFromField('order_ident', $sUniqId)) { $oNotExecutedOrder->AllowEditByAll(true); $oNotExecutedOrder->Delete(); $oNotExecutedOrder-...
php
protected function DeleteNotExecutedOrder($sUniqId) { $oNotExecutedOrder = TdbShopOrder::GetNewInstance(); if ($oNotExecutedOrder->LoadFromField('order_ident', $sUniqId)) { $oNotExecutedOrder->AllowEditByAll(true); $oNotExecutedOrder->Delete(); $oNotExecutedOrder-...
[ "protected", "function", "DeleteNotExecutedOrder", "(", "$", "sUniqId", ")", "{", "$", "oNotExecutedOrder", "=", "TdbShopOrder", "::", "GetNewInstance", "(", ")", ";", "if", "(", "$", "oNotExecutedOrder", "->", "LoadFromField", "(", "'order_ident'", ",", "$", "s...
Delete existing order if payment wasnt done correctly. @param string $sUniqId
[ "Delete", "existing", "order", "if", "payment", "wasnt", "done", "correctly", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/ShopBundle/objects/TCMSSmartURLHandler/TCMSSmartURLHandler_ShopIPayment.class.php#L81-L90
31,685
sylingd/Yesf
src/Http/Router.php
Router.parseMap
private function parseMap(Request $request) { //解析 $res = explode('/', trim($request->uri, '/'), 3); if (count($res) === 3) { $request->module = $res[0]; $request->controller = $res[1]; $request->action = $res[2]; } else { $request->module = $this->module; $request->controller = $res[0]; $requ...
php
private function parseMap(Request $request) { //解析 $res = explode('/', trim($request->uri, '/'), 3); if (count($res) === 3) { $request->module = $res[0]; $request->controller = $res[1]; $request->action = $res[2]; } else { $request->module = $this->module; $request->controller = $res[0]; $requ...
[ "private", "function", "parseMap", "(", "Request", "$", "request", ")", "{", "//解析", "$", "res", "=", "explode", "(", "'/'", ",", "trim", "(", "$", "request", "->", "uri", ",", "'/'", ")", ",", "3", ")", ";", "if", "(", "count", "(", "$", "res", ...
Parse request in map way @access private @param Request $request @return bool
[ "Parse", "request", "in", "map", "way" ]
0fc2b42903bb3519c54c596270c890c826aeb1df
https://github.com/sylingd/Yesf/blob/0fc2b42903bb3519c54c596270c890c826aeb1df/src/Http/Router.php#L124-L137
31,686
sylingd/Yesf
src/Http/Router.php
Router.parseBy
private function parseBy($rules, Request $request) { foreach ($rules as $rewrite) { if (isset($rewrite['uri'])) { if ($request->uri === $rewrite['uri']) { $dispatch = $rewrite['dispatch']; break; } } else { if (preg_match($rewrite['regex'], $request->uri, $matches)) { $param = []; ...
php
private function parseBy($rules, Request $request) { foreach ($rules as $rewrite) { if (isset($rewrite['uri'])) { if ($request->uri === $rewrite['uri']) { $dispatch = $rewrite['dispatch']; break; } } else { if (preg_match($rewrite['regex'], $request->uri, $matches)) { $param = []; ...
[ "private", "function", "parseBy", "(", "$", "rules", ",", "Request", "$", "request", ")", "{", "foreach", "(", "$", "rules", "as", "$", "rewrite", ")", "{", "if", "(", "isset", "(", "$", "rewrite", "[", "'uri'", "]", ")", ")", "{", "if", "(", "$"...
Parse request with given rules @access private @param array $rules @param Request $request @return bool
[ "Parse", "request", "with", "given", "rules" ]
0fc2b42903bb3519c54c596270c890c826aeb1df
https://github.com/sylingd/Yesf/blob/0fc2b42903bb3519c54c596270c890c826aeb1df/src/Http/Router.php#L146-L183
31,687
sylingd/Yesf
src/Http/Router.php
Router.parse
public function parse(Request $request) { $len = strlen($this->prefix); //路由解析 $uri = $request->server['request_uri']; if (strpos('?', $uri) !== false) { $uri = substr($uri, 0, strpos($uri, '?')); } //去除开头的prefix if ($len > 0 && strpos($uri, $this->prefix) === 0) { $uri = substr($uri, $len); } $...
php
public function parse(Request $request) { $len = strlen($this->prefix); //路由解析 $uri = $request->server['request_uri']; if (strpos('?', $uri) !== false) { $uri = substr($uri, 0, strpos($uri, '?')); } //去除开头的prefix if ($len > 0 && strpos($uri, $this->prefix) === 0) { $uri = substr($uri, $len); } $...
[ "public", "function", "parse", "(", "Request", "$", "request", ")", "{", "$", "len", "=", "strlen", "(", "$", "this", "->", "prefix", ")", ";", "//路由解析", "$", "uri", "=", "$", "request", "->", "server", "[", "'request_uri'", "]", ";", "if", "(", "s...
Parse a request @access public @param Request $request
[ "Parse", "a", "request" ]
0fc2b42903bb3519c54c596270c890c826aeb1df
https://github.com/sylingd/Yesf/blob/0fc2b42903bb3519c54c596270c890c826aeb1df/src/Http/Router.php#L206-L245
31,688
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.quoteApplicationVersion
private function quoteApplicationVersion($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\(/', '\\(', $quotedString); return $quotedString; }
php
private function quoteApplicationVersion($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\(/', '\\(', $quotedString); return $quotedString; }
[ "private", "function", "quoteApplicationVersion", "(", "$", "s", ")", "{", "$", "quotedString", "=", "$", "this", "->", "collapseWhitespace", "(", "$", "s", ")", ";", "$", "quotedString", "=", "preg_replace", "(", "'/\\\\\\\\/'", ",", "'\\\\\\\\\\\\\\\\'", ","...
Collapse multiple whitespace characters into a single ' ' and backslash escape '\', and '(' characters from a string. @param $s @return string
[ "Collapse", "multiple", "whitespace", "characters", "into", "a", "single", "and", "backslash", "escape", "\\", "and", "(", "characters", "from", "a", "string", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L259-L265
31,689
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.quoteAttributeName
private function quoteAttributeName($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\=/', '\\=', $quotedString); return $quotedString; }
php
private function quoteAttributeName($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\=/', '\\=', $quotedString); return $quotedString; }
[ "private", "function", "quoteAttributeName", "(", "$", "s", ")", "{", "$", "quotedString", "=", "$", "this", "->", "collapseWhitespace", "(", "$", "s", ")", ";", "$", "quotedString", "=", "preg_replace", "(", "'/\\\\\\\\/'", ",", "'\\\\\\\\\\\\\\\\'", ",", "...
Collapse multiple whitespace characters into a single ' ' and backslash escape '\', and '=' characters from a string. @param $s @return unknown_type
[ "Collapse", "multiple", "whitespace", "characters", "into", "a", "single", "and", "backslash", "escape", "\\", "and", "=", "characters", "from", "a", "string", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L274-L280
31,690
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.quoteAttributeValue
private function quoteAttributeValue($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\;/', '\\;', $quotedString); $quotedString = preg_replace('/\\)/', '\\)', $quotedString); return $quoted...
php
private function quoteAttributeValue($s) { $quotedString = $this->collapseWhitespace($s); $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString); $quotedString = preg_replace('/\\;/', '\\;', $quotedString); $quotedString = preg_replace('/\\)/', '\\)', $quotedString); return $quoted...
[ "private", "function", "quoteAttributeValue", "(", "$", "s", ")", "{", "$", "quotedString", "=", "$", "this", "->", "collapseWhitespace", "(", "$", "s", ")", ";", "$", "quotedString", "=", "preg_replace", "(", "'/\\\\\\\\/'", ",", "'\\\\\\\\\\\\\\\\'", ",", ...
Collapse multiple whitespace characters into a single ' ' and backslash escape ';', '\', and ')' characters from a string. @param $s @return unknown_type
[ "Collapse", "multiple", "whitespace", "characters", "into", "a", "single", "and", "backslash", "escape", ";", "\\", "and", ")", "characters", "from", "a", "string", "." ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L289-L296
31,691
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.getRefundDetails
public function getRefundDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetRefundDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetRefundDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGetRefundDetails($reque...
php
public function getRefundDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetRefundDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetRefundDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGetRefundDetails($reque...
[ "public", "function", "getRefundDetails", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_GetRefundDetailsRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_GetRefundDetailsRequest", ...
Get Refund Details @param mixed $request array of parameters for OffAmazonPaymentsService_Model_GetRefundDetailsRequest request or OffAmazonPaymentsService_Model_GetRefundDetailsRequest object itself @see OffAmazonPaymentsService_Model_GetRefundDetails @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse Of...
[ "Get", "Refund", "Details" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L382-L391
31,692
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.getCaptureDetails
public function getCaptureDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetCaptureDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGetCaptureDetails($r...
php
public function getCaptureDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetCaptureDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetCaptureDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGetCaptureDetails($r...
[ "public", "function", "getCaptureDetails", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_GetCaptureDetailsRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_GetCaptureDetailsRequest"...
Get Capture Details @param mixed $request array of parameters for OffAmazonPaymentsService_Model_GetCaptureDetailsRequest request or OffAmazonPaymentsService_Model_GetCaptureDetailsRequest object itself @see OffAmazonPaymentsService_Model_GetCaptureDetails @return OffAmazonPaymentsService_Model_GetCaptureDetailsRespon...
[ "Get", "Capture", "Details" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L405-L414
31,693
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.closeOrderReference
public function closeOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CloseOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest($request); }; $httpResponse = $this->_invoke($this->_convertC...
php
public function closeOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CloseOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_CloseOrderReferenceRequest($request); }; $httpResponse = $this->_invoke($this->_convertC...
[ "public", "function", "closeOrderReference", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_CloseOrderReferenceRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_CloseOrderReferenceRe...
Close Order Reference @param mixed $request array of parameters for OffAmazonPaymentsService_Model_CloseOrderReferenceRequest request or OffAmazonPaymentsService_Model_CloseOrderReferenceRequest object itself @see OffAmazonPaymentsService_Model_CloseOrderReference @return OffAmazonPaymentsService_Model_CloseOrderRefer...
[ "Close", "Order", "Reference" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L428-L437
31,694
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.confirmOrderReference
public function confirmOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest($request); } $httpResponse = $this->_invoke($this->_convertConfirmO...
php
public function confirmOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest($request); } $httpResponse = $this->_invoke($this->_convertConfirmO...
[ "public", "function", "confirmOrderReference", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_ConfirmOrderRefer...
Confirm Order Reference @param mixed $request array of parameters for OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest request or OffAmazonPaymentsService_Model_ConfirmOrderReferenceRequest object itself @see OffAmazonPaymentsService_Model_ConfirmOrderReference @return OffAmazonPaymentsService_Model_Confirm...
[ "Confirm", "Order", "Reference" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L451-L460
31,695
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.getOrderReferenceDetails
public function getOrderReferenceDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest($request); } $httpResponse = $this->_invoke($this->_conver...
php
public function getOrderReferenceDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest($request); } $httpResponse = $this->_invoke($this->_conver...
[ "public", "function", "getOrderReferenceDetails", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_GetOrderRef...
Get Order Reference Details @param mixed $request array of parameters for OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest request or OffAmazonPaymentsService_Model_GetOrderReferenceDetailsRequest object itself @see OffAmazonPaymentsService_Model_GetOrderReferenceDetails @return OffAmazonPaymentsService_...
[ "Get", "Order", "Reference", "Details" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L474-L483
31,696
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.setOrderReferenceDetails
public function setOrderReferenceDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest) { $request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest($request); } $httpResponse = $this->_invoke($this->_conver...
php
public function setOrderReferenceDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest) { $request = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest($request); } $httpResponse = $this->_invoke($this->_conver...
[ "public", "function", "setOrderReferenceDetails", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_SetOrderRef...
Set Order Reference Details @param mixed $request array of parameters for OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest request or OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest object itself @see OffAmazonPaymentsService_Model_SetOrderReferenceDetails @return OffAmazonPaymentsService_...
[ "Set", "Order", "Reference", "Details" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L520-L529
31,697
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.getAuthorizationDetails
public function getAuthorizationDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGe...
php
public function getAuthorizationDetails($request) { if (!$request instanceof OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest) { $request = new OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest($request); } $httpResponse = $this->_invoke($this->_convertGe...
[ "public", "function", "getAuthorizationDetails", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_GetAuthorizat...
Get Authorization Details @param mixed $request array of parameters for OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest request or OffAmazonPaymentsService_Model_GetAuthorizationDetailsRequest object itself @see OffAmazonPaymentsService_Model_GetAuthorizationDetails @return OffAmazonPaymentsService_Model...
[ "Get", "Authorization", "Details" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L543-L552
31,698
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.cancelOrderReference
public function cancelOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CancelOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest($request); } $httpResponse = $this->_invoke($this->_convertCancelOrder...
php
public function cancelOrderReference($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CancelOrderReferenceRequest) { $request = new OffAmazonPaymentsService_Model_CancelOrderReferenceRequest($request); } $httpResponse = $this->_invoke($this->_convertCancelOrder...
[ "public", "function", "cancelOrderReference", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_CancelOrderReferenceRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_CancelOrderReferenc...
Cancel Order Reference @param mixed $request array of parameters for OffAmazonPaymentsService_Model_CancelOrderReferenceRequest request or OffAmazonPaymentsService_Model_CancelOrderReferenceRequest object itself @see OffAmazonPaymentsService_Model_CancelOrderReference @return OffAmazonPaymentsService_Model_CancelOrder...
[ "Cancel", "Order", "Reference" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L566-L575
31,699
chameleon-system/chameleon-shop
src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php
OffAmazonPaymentsService_Client.createOrderReferenceForId
public function createOrderReferenceForId($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest) { $request = new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest($request); } $httpResponse = $this->_invoke($this->_con...
php
public function createOrderReferenceForId($request) { if (!$request instanceof OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest) { $request = new OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest($request); } $httpResponse = $this->_invoke($this->_con...
[ "public", "function", "createOrderReferenceForId", "(", "$", "request", ")", "{", "if", "(", "!", "$", "request", "instanceof", "OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest", ")", "{", "$", "request", "=", "new", "OffAmazonPaymentsService_Model_CreateOrd...
Create Order Reference For Id @param mixed $request array of parameters for OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest request or OffAmazonPaymentsService_Model_CreateOrderReferenceForIdRequest object itself @see OffAmazonPaymentsService_Model_CreateOrderReferenceForId @return OffAmazonPaymentsSer...
[ "Create", "Order", "Reference", "For", "Id" ]
2e47f4eeab604449605ee1867180c9a37a8c208e
https://github.com/chameleon-system/chameleon-shop/blob/2e47f4eeab604449605ee1867180c9a37a8c208e/src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Client.php#L589-L598