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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
189,400 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Template.php | Template.Add | public function Add($name, $subject, $fromEmail, $fromName, $templateType = \ElasticEmailEnums\TemplateType::RawHTML, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $bodyHtml = null, $bodyText = null, $css = null, $originalTemplateID = 0) {
return $this->sendRequest('template/add', array(
... | php | public function Add($name, $subject, $fromEmail, $fromName, $templateType = \ElasticEmailEnums\TemplateType::RawHTML, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $bodyHtml = null, $bodyText = null, $css = null, $originalTemplateID = 0) {
return $this->sendRequest('template/add', array(
... | [
"public",
"function",
"Add",
"(",
"$",
"name",
",",
"$",
"subject",
",",
"$",
"fromEmail",
",",
"$",
"fromName",
",",
"$",
"templateType",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"TemplateType",
"::",
"RawHTML",
",",
"$",
"templateScope",
"=",
"\\",
"Elastic... | Create new Template. Needs to be sent using POST method
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $name Filename
@param string $subject Default subject of email.
@param string $fromEmail Default From: email address.
@param string $fromName Default From: name.
@param \E... | [
"Create",
"new",
"Template",
".",
"Needs",
"to",
"be",
"sent",
"using",
"POST",
"method"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Template.php#L25-L38 |
189,401 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Template.php | Template.EECopy | public function EECopy($templateID, $name, $subject, $fromEmail, $fromName) {
return $this->sendRequest('template/copy', array(
'templateID' => $templateID,
'name' => $name,
'subject' => $subject,
'fromEmail' => $fromEmail,
... | php | public function EECopy($templateID, $name, $subject, $fromEmail, $fromName) {
return $this->sendRequest('template/copy', array(
'templateID' => $templateID,
'name' => $name,
'subject' => $subject,
'fromEmail' => $fromEmail,
... | [
"public",
"function",
"EECopy",
"(",
"$",
"templateID",
",",
"$",
"name",
",",
"$",
"subject",
",",
"$",
"fromEmail",
",",
"$",
"fromName",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'template/copy'",
",",
"array",
"(",
"'templateID'",
"... | Copy Selected Template
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $templateID ID number of template.
@param string $name Filename
@param string $subject Default subject of email.
@param string $fromEmail Default From: email address.
@param string $fromName Default From: na... | [
"Copy",
"Selected",
"Template"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Template.php#L62-L70 |
189,402 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Template.php | Template.Update | public function Update($templateID, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $name = null, $subject = null, $fromEmail = null, $fromName = null, $bodyHtml = null, $bodyText = null, $css = null, $removeScreenshot = true) {
return $this->sendRequest('template/update', array(
... | php | public function Update($templateID, $templateScope = \ElasticEmailEnums\TemplateScope::EEPrivate, $name = null, $subject = null, $fromEmail = null, $fromName = null, $bodyHtml = null, $bodyText = null, $css = null, $removeScreenshot = true) {
return $this->sendRequest('template/update', array(
... | [
"public",
"function",
"Update",
"(",
"$",
"templateID",
",",
"$",
"templateScope",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"TemplateScope",
"::",
"EEPrivate",
",",
"$",
"name",
"=",
"null",
",",
"$",
"subject",
"=",
"null",
",",
"$",
"fromEmail",
"=",
"null"... | Update existing template, overwriting existing data. Needs to be sent using POST method.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $templateID ID number of template.
@param \ElasticEmailEnums\TemplateScope $templateScope Enum: 0 - private, 1 - public, 2 - mockup
@param st... | [
"Update",
"existing",
"template",
"overwriting",
"existing",
"data",
".",
"Needs",
"to",
"be",
"sent",
"using",
"POST",
"method",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Template.php#L162-L175 |
189,403 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Channel.php | Channel.ExportCsv | public function ExportCsv($channelNames, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('channel/exportcsv', array(
'channelNames' => (count($channelNames) === 0) ? null : join(';', $channelNames),
'compressi... | php | public function ExportCsv($channelNames, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('channel/exportcsv', array(
'channelNames' => (count($channelNames) === 0) ? null : join(';', $channelNames),
'compressi... | [
"public",
"function",
"ExportCsv",
"(",
"$",
"channelNames",
",",
"$",
"compressionFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"CompressionFormat",
"::",
"None",
",",
"$",
"fileName",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
... | Export channels in CSV file format.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<string> $channelNames List of channel names used for processing
@param \ElasticEmailEnums\CompressionFormat $compressionFormat FileResponse compression format. None or Zip.
@param string $file... | [
"Export",
"channels",
"in",
"CSV",
"file",
"format",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Channel.php#L41-L47 |
189,404 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Email.php | Email.GetStatus | public function GetStatus($transactionID, $showFailed = false, $showSent = false, $showDelivered = false, $showPending = false, $showOpened = false, $showClicked = false, $showAbuse = false, $showUnsubscribed = false, $showErrors = false, $showMessageIDs = false) {
return $this->sendRequest('email/getstatus', a... | php | public function GetStatus($transactionID, $showFailed = false, $showSent = false, $showDelivered = false, $showPending = false, $showOpened = false, $showClicked = false, $showAbuse = false, $showUnsubscribed = false, $showErrors = false, $showMessageIDs = false) {
return $this->sendRequest('email/getstatus', a... | [
"public",
"function",
"GetStatus",
"(",
"$",
"transactionID",
",",
"$",
"showFailed",
"=",
"false",
",",
"$",
"showSent",
"=",
"false",
",",
"$",
"showDelivered",
"=",
"false",
",",
"$",
"showPending",
"=",
"false",
",",
"$",
"showOpened",
"=",
"false",
... | Get email batch status
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $transactionID Transaction identifier
@param bool $showFailed Include Bounced email addresses.
@param bool $showSent Include Sent email addresses.
@param bool $showDelivered Include all delivered email ad... | [
"Get",
"email",
"batch",
"status"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Email.php#L26-L40 |
189,405 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Survey.php | Survey.Export | public function Export($publicSurveyID, $fileName, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None) {
return $this->sendRequest('survey/export', array(
'publicSurveyID' => $publicSurveyID,
'fileName'... | php | public function Export($publicSurveyID, $fileName, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None) {
return $this->sendRequest('survey/export', array(
'publicSurveyID' => $publicSurveyID,
'fileName'... | [
"public",
"function",
"Export",
"(",
"$",
"publicSurveyID",
",",
"$",
"fileName",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"compressionFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"CompressionForma... | Export given survey's data to provided format
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param Guid $publicSurveyID Survey identifier
@param string $fileName Name of your file.
@param \ElasticEmailEnums\ExportFileFormats $fileFormat Format of the exported file
@param \ElasticEmailEn... | [
"Export",
"given",
"survey",
"s",
"data",
"to",
"provided",
"format"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Survey.php#L42-L49 |
189,406 | thephpleague/omnipay-firstdata | src/Message/WebserviceAbstractRequest.php | WebserviceAbstractRequest.buildCurlClient | public function buildCurlClient()
{
//
// Use PHP Native cURL because the various Soap clients (BeSimple,
// PHP native SoapClient) can't handle the WSDL file.
//
$this->curl = curl_init($this->getEndPoint());
$sslCertificate = $this->getSslCertificate();
$ss... | php | public function buildCurlClient()
{
//
// Use PHP Native cURL because the various Soap clients (BeSimple,
// PHP native SoapClient) can't handle the WSDL file.
//
$this->curl = curl_init($this->getEndPoint());
$sslCertificate = $this->getSslCertificate();
$ss... | [
"public",
"function",
"buildCurlClient",
"(",
")",
"{",
"//",
"// Use PHP Native cURL because the various Soap clients (BeSimple,",
"// PHP native SoapClient) can't handle the WSDL file.",
"//",
"$",
"this",
"->",
"curl",
"=",
"curl_init",
"(",
"$",
"this",
"->",
"getEndPoint... | Build the cURL client.
@return resource | [
"Build",
"the",
"cURL",
"client",
"."
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/WebserviceAbstractRequest.php#L249-L294 |
189,407 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.Add | public function Add($listName, $createEmptyList = false, $allowUnsubscribe = false, $rule = null, array $emails = array(), $allContacts = false) {
return $this->sendRequest('list/add', array(
'listName' => $listName,
'createEmptyList' => $createEmptyList,
... | php | public function Add($listName, $createEmptyList = false, $allowUnsubscribe = false, $rule = null, array $emails = array(), $allContacts = false) {
return $this->sendRequest('list/add', array(
'listName' => $listName,
'createEmptyList' => $createEmptyList,
... | [
"public",
"function",
"Add",
"(",
"$",
"listName",
",",
"$",
"createEmptyList",
"=",
"false",
",",
"$",
"allowUnsubscribe",
"=",
"false",
",",
"$",
"rule",
"=",
"null",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
",",
"$",
"allContacts",
"=",
... | Create new list, based on filtering rule or list of IDs
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param bool $createEmptyList True to create an empty list, otherwise false. Ignores rule and emails parameters if provided.
@param bool $allow... | [
"Create",
"new",
"list",
"based",
"on",
"filtering",
"rule",
"or",
"list",
"of",
"IDs"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L21-L30 |
189,408 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.AddContacts | public function AddContacts($listName, $rule = null, array $emails = array(), $allContacts = false) {
return $this->sendRequest('list/addcontacts', array(
'listName' => $listName,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $... | php | public function AddContacts($listName, $rule = null, array $emails = array(), $allContacts = false) {
return $this->sendRequest('list/addcontacts', array(
'listName' => $listName,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $... | [
"public",
"function",
"AddContacts",
"(",
"$",
"listName",
",",
"$",
"rule",
"=",
"null",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
",",
"$",
"allContacts",
"=",
"false",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'list/addc... | Add existing Contacts to chosen list
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param string $rule Query used for filtering.
@param array<string> $emails Comma delimited list of contact emails
@param bool $allContacts True: Include every Co... | [
"Add",
"existing",
"Contacts",
"to",
"chosen",
"list"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L40-L47 |
189,409 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.EECopy | public function EECopy($sourceListName, $newlistName = null, $createEmptyList = null, $allowUnsubscribe = null, $rule = null) {
return $this->sendRequest('list/copy', array(
'sourceListName' => $sourceListName,
'newlistName' => $newlistName,
'createEmp... | php | public function EECopy($sourceListName, $newlistName = null, $createEmptyList = null, $allowUnsubscribe = null, $rule = null) {
return $this->sendRequest('list/copy', array(
'sourceListName' => $sourceListName,
'newlistName' => $newlistName,
'createEmp... | [
"public",
"function",
"EECopy",
"(",
"$",
"sourceListName",
",",
"$",
"newlistName",
"=",
"null",
",",
"$",
"createEmptyList",
"=",
"null",
",",
"$",
"allowUnsubscribe",
"=",
"null",
",",
"$",
"rule",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
... | Copy your existing List with the option to provide new settings to it. Some fields, when left empty, default to the source list's settings
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $sourceListName The name of the list you want to copy
@param string $newlistName Name of... | [
"Copy",
"your",
"existing",
"List",
"with",
"the",
"option",
"to",
"provide",
"new",
"settings",
"to",
"it",
".",
"Some",
"fields",
"when",
"left",
"empty",
"default",
"to",
"the",
"source",
"list",
"s",
"settings"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L59-L67 |
189,410 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.CreateFromCampaign | public function CreateFromCampaign($campaignID, $listName, array $statuses = array()) {
return $this->sendRequest('list/createfromcampaign', array(
'campaignID' => $campaignID,
'listName' => $listName,
'statuses' => (count($statuses) === 0) ? null : jo... | php | public function CreateFromCampaign($campaignID, $listName, array $statuses = array()) {
return $this->sendRequest('list/createfromcampaign', array(
'campaignID' => $campaignID,
'listName' => $listName,
'statuses' => (count($statuses) === 0) ? null : jo... | [
"public",
"function",
"CreateFromCampaign",
"(",
"$",
"campaignID",
",",
"$",
"listName",
",",
"array",
"$",
"statuses",
"=",
"array",
"(",
")",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'list/createfromcampaign'",
",",
"array",
"(",
"'camp... | Create a new list from the recipients of the given campaign, using the given statuses of Messages
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $campaignID ID of the campaign which recipients you want to copy
@param string $listName Name of your list.
@param array<\ElasticEma... | [
"Create",
"a",
"new",
"list",
"from",
"the",
"recipients",
"of",
"the",
"given",
"campaign",
"using",
"the",
"given",
"statuses",
"of",
"Messages"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L77-L83 |
189,411 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.CreateNthSelectionLists | public function CreateNthSelectionLists($listName, $numberOfLists, $excludeBlocked = true, $allowUnsubscribe = false, $rule = null, $allContacts = false) {
return $this->sendRequest('list/createnthselectionlists', array(
'listName' => $listName,
'numberOfLists' => $number... | php | public function CreateNthSelectionLists($listName, $numberOfLists, $excludeBlocked = true, $allowUnsubscribe = false, $rule = null, $allContacts = false) {
return $this->sendRequest('list/createnthselectionlists', array(
'listName' => $listName,
'numberOfLists' => $number... | [
"public",
"function",
"CreateNthSelectionLists",
"(",
"$",
"listName",
",",
"$",
"numberOfLists",
",",
"$",
"excludeBlocked",
"=",
"true",
",",
"$",
"allowUnsubscribe",
"=",
"false",
",",
"$",
"rule",
"=",
"null",
",",
"$",
"allContacts",
"=",
"false",
")",
... | Create a series of nth selection lists from an existing list or segment
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param int $numberOfLists The number of evenly distributed lists to create.
@param bool $excludeBlocked True if you want to ex... | [
"Create",
"a",
"series",
"of",
"nth",
"selection",
"lists",
"from",
"an",
"existing",
"list",
"or",
"segment"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L95-L104 |
189,412 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.CreateRandomList | public function CreateRandomList($listName, $count, $excludeBlocked = true, $allowUnsubscribe = false, $rule = null, $allContacts = false) {
return $this->sendRequest('list/createrandomlist', array(
'listName' => $listName,
'count' => $count,
'excludeB... | php | public function CreateRandomList($listName, $count, $excludeBlocked = true, $allowUnsubscribe = false, $rule = null, $allContacts = false) {
return $this->sendRequest('list/createrandomlist', array(
'listName' => $listName,
'count' => $count,
'excludeB... | [
"public",
"function",
"CreateRandomList",
"(",
"$",
"listName",
",",
"$",
"count",
",",
"$",
"excludeBlocked",
"=",
"true",
",",
"$",
"allowUnsubscribe",
"=",
"false",
",",
"$",
"rule",
"=",
"null",
",",
"$",
"allContacts",
"=",
"false",
")",
"{",
"retur... | Create a new list with randomized contacts from an existing list or segment
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param int $count Number of items.
@param bool $excludeBlocked True if you want to exclude contacts that are currently in ... | [
"Create",
"a",
"new",
"list",
"with",
"randomized",
"contacts",
"from",
"an",
"existing",
"list",
"or",
"segment"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L117-L126 |
189,413 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.MoveContacts | public function MoveContacts($oldListName, $newListName, array $emails = array(), $moveAll = null, array $statuses = array(), $rule = null) {
return $this->sendRequest('list/movecontacts', array(
'oldListName' => $oldListName,
'newListName' => $newListName,
... | php | public function MoveContacts($oldListName, $newListName, array $emails = array(), $moveAll = null, array $statuses = array(), $rule = null) {
return $this->sendRequest('list/movecontacts', array(
'oldListName' => $oldListName,
'newListName' => $newListName,
... | [
"public",
"function",
"MoveContacts",
"(",
"$",
"oldListName",
",",
"$",
"newListName",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
",",
"$",
"moveAll",
"=",
"null",
",",
"array",
"$",
"statuses",
"=",
"array",
"(",
")",
",",
"$",
"rule",
"=... | Move selected contacts from one List to another
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $oldListName The name of the list from which the contacts will be copied from
@param string $newListName The name of the list to copy the contacts to
@param array<string> $emails ... | [
"Move",
"selected",
"contacts",
"from",
"one",
"List",
"to",
"another"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L193-L202 |
189,414 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.RemoveContacts | public function RemoveContacts($listName, $rule = null, array $emails = array()) {
return $this->sendRequest('list/removecontacts', array(
'listName' => $listName,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $emails)
... | php | public function RemoveContacts($listName, $rule = null, array $emails = array()) {
return $this->sendRequest('list/removecontacts', array(
'listName' => $listName,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $emails)
... | [
"public",
"function",
"RemoveContacts",
"(",
"$",
"listName",
",",
"$",
"rule",
"=",
"null",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'list/removecontacts'",
",",
"array",
"(",
"'lis... | Remove selected Contacts from your list
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param string $rule Query used for filtering.
@param array<string> $emails Comma delimited list of contact emails | [
"Remove",
"selected",
"Contacts",
"from",
"your",
"list"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L211-L217 |
189,415 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/EEList.php | EEList.Update | public function Update($listName, $newListName = null, $allowUnsubscribe = false) {
return $this->sendRequest('list/update', array(
'listName' => $listName,
'newListName' => $newListName,
'allowUnsubscribe' => $allowUnsubscribe
));
} | php | public function Update($listName, $newListName = null, $allowUnsubscribe = false) {
return $this->sendRequest('list/update', array(
'listName' => $listName,
'newListName' => $newListName,
'allowUnsubscribe' => $allowUnsubscribe
));
} | [
"public",
"function",
"Update",
"(",
"$",
"listName",
",",
"$",
"newListName",
"=",
"null",
",",
"$",
"allowUnsubscribe",
"=",
"false",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'list/update'",
",",
"array",
"(",
"'listName'",
"=>",
"$",
... | Update existing list
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $listName Name of your list.
@param string $newListName Name of your list if you want to change it.
@param bool $allowUnsubscribe True: Allow unsubscribing from this list. Otherwise, false | [
"Update",
"existing",
"list"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/EEList.php#L226-L232 |
189,416 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/AccessToken.php | AccessToken.Update | public function Update($tokenName, $accessLevel, $tokenNameNew = null) {
return $this->sendRequest('accesstoken/update', array(
'tokenName' => $tokenName,
'accessLevel' => $accessLevel,
'tokenNameNew' => $tokenNameNew
));
} | php | public function Update($tokenName, $accessLevel, $tokenNameNew = null) {
return $this->sendRequest('accesstoken/update', array(
'tokenName' => $tokenName,
'accessLevel' => $accessLevel,
'tokenNameNew' => $tokenNameNew
));
} | [
"public",
"function",
"Update",
"(",
"$",
"tokenName",
",",
"$",
"accessLevel",
",",
"$",
"tokenNameNew",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'accesstoken/update'",
",",
"array",
"(",
"'tokenName'",
"=>",
"$",
"tokenName"... | Edit AccessToken.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $tokenName
@param \ElasticEmailEnums\AccessLevel $accessLevel
@param string $tokenNameNew | [
"Edit",
"AccessToken",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/AccessToken.php#L51-L57 |
189,417 | karpoff/yii2-crop-image-upload | CropImageUploadBehavior.php | CropImageUploadBehavior.getConfigurations | public function getConfigurations() {
if ($this->crops_internal === null) {
/** @var BaseActiveRecord $model */
$model = $this->owner;
if (!empty($this->crops)) {
$this->crops_internal = $this->crops;
} else {
$o = [];
foreach (['cropped_field', 'crop_field', 'crop_width', 'ratio'] as $f) {
... | php | public function getConfigurations() {
if ($this->crops_internal === null) {
/** @var BaseActiveRecord $model */
$model = $this->owner;
if (!empty($this->crops)) {
$this->crops_internal = $this->crops;
} else {
$o = [];
foreach (['cropped_field', 'crop_field', 'crop_width', 'ratio'] as $f) {
... | [
"public",
"function",
"getConfigurations",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"crops_internal",
"===",
"null",
")",
"{",
"/** @var BaseActiveRecord $model */",
"$",
"model",
"=",
"$",
"this",
"->",
"owner",
";",
"if",
"(",
"!",
"empty",
"(",
"$",... | return array with list of configurations | [
"return",
"array",
"with",
"list",
"of",
"configurations"
] | e9d087f0744d6ec9de5c4f611e59136ae055c293 | https://github.com/karpoff/yii2-crop-image-upload/blob/e9d087f0744d6ec9de5c4f611e59136ae055c293/CropImageUploadBehavior.php#L65-L96 |
189,418 | karpoff/yii2-crop-image-upload | CropImageUploadBehavior.php | CropImageUploadBehavior.createCrop | protected function createCrop($crop, $image)
{
if (!empty($crop['cropped_field'])) {
$save_path = $this->getUploadPath($crop['cropped_field']);
} else {
$save_path = $this->getUploadPath($this->attribute);
}
$sizes = explode('-', $crop['value']);
$real_size = $image->getSize();
foreach ($sizes as ... | php | protected function createCrop($crop, $image)
{
if (!empty($crop['cropped_field'])) {
$save_path = $this->getUploadPath($crop['cropped_field']);
} else {
$save_path = $this->getUploadPath($this->attribute);
}
$sizes = explode('-', $crop['value']);
$real_size = $image->getSize();
foreach ($sizes as ... | [
"protected",
"function",
"createCrop",
"(",
"$",
"crop",
",",
"$",
"image",
")",
"{",
"if",
"(",
"!",
"empty",
"(",
"$",
"crop",
"[",
"'cropped_field'",
"]",
")",
")",
"{",
"$",
"save_path",
"=",
"$",
"this",
"->",
"getUploadPath",
"(",
"$",
"crop",
... | this method crops the image
@param Array $crop crop config
@param \Imagine\Gd\Image $image | [
"this",
"method",
"crops",
"the",
"image"
] | e9d087f0744d6ec9de5c4f611e59136ae055c293 | https://github.com/karpoff/yii2-crop-image-upload/blob/e9d087f0744d6ec9de5c4f611e59136ae055c293/CropImageUploadBehavior.php#L186-L208 |
189,419 | thephpleague/omnipay-firstdata | src/Message/CompletePurchaseRequest.php | CompletePurchaseRequest.createResponseHash | public function createResponseHash($amount, $dateTime, $code)
{
$this->validate('storeId', 'sharedSecret', 'currency');
$storeId = $this->getStoreId();
$sharedSecret = $this->getSharedSecret();
$currency = $this->getCurrencyNumeric();
$stringToHash = $sharedSecret ... | php | public function createResponseHash($amount, $dateTime, $code)
{
$this->validate('storeId', 'sharedSecret', 'currency');
$storeId = $this->getStoreId();
$sharedSecret = $this->getSharedSecret();
$currency = $this->getCurrencyNumeric();
$stringToHash = $sharedSecret ... | [
"public",
"function",
"createResponseHash",
"(",
"$",
"amount",
",",
"$",
"dateTime",
",",
"$",
"code",
")",
"{",
"$",
"this",
"->",
"validate",
"(",
"'storeId'",
",",
"'sharedSecret'",
",",
"'currency'",
")",
";",
"$",
"storeId",
"=",
"$",
"this",
"->",... | Generate a hash string that matches the format of the one returned by the payment gateway
@param string $amount
@param string $dateTime
@param string $code
@return string | [
"Generate",
"a",
"hash",
"string",
"that",
"matches",
"the",
"format",
"of",
"the",
"one",
"returned",
"by",
"the",
"payment",
"gateway"
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/CompletePurchaseRequest.php#L42-L54 |
189,420 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.AddSubAccount | public function AddSubAccount($email, $password, $confirmPassword, $requiresEmailCredits = false, $enableLitmusTest = false, $requiresLitmusCredits = false, $maxContacts = 0, $enablePrivateIPRequest = true, $sendActivation = false, $returnUrl = null, $sendingPermission = null, $enableContactFeatures = null, $poolName =... | php | public function AddSubAccount($email, $password, $confirmPassword, $requiresEmailCredits = false, $enableLitmusTest = false, $requiresLitmusCredits = false, $maxContacts = 0, $enablePrivateIPRequest = true, $sendActivation = false, $returnUrl = null, $sendingPermission = null, $enableContactFeatures = null, $poolName =... | [
"public",
"function",
"AddSubAccount",
"(",
"$",
"email",
",",
"$",
"password",
",",
"$",
"confirmPassword",
",",
"$",
"requiresEmailCredits",
"=",
"false",
",",
"$",
"enableLitmusTest",
"=",
"false",
",",
"$",
"requiresLitmusCredits",
"=",
"false",
",",
"$",
... | Create new subaccount and provide most important data about it.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $email Proper email address.
@param string $password Current password.
@param string $confirmPassword Repeat new password.
@param bool $requiresEmailCredits True, ... | [
"Create",
"new",
"subaccount",
"and",
"provide",
"most",
"important",
"data",
"about",
"it",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L30-L48 |
189,421 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.AddSubAccountCredits | public function AddSubAccountCredits($credits, $notes, $creditType = \ElasticEmailEnums\CreditType::Email, $subAccountEmail = null, $publicAccountID = null) {
return $this->sendRequest('account/addsubaccountcredits', array(
'credits' => $credits,
'notes' => $notes,
... | php | public function AddSubAccountCredits($credits, $notes, $creditType = \ElasticEmailEnums\CreditType::Email, $subAccountEmail = null, $publicAccountID = null) {
return $this->sendRequest('account/addsubaccountcredits', array(
'credits' => $credits,
'notes' => $notes,
... | [
"public",
"function",
"AddSubAccountCredits",
"(",
"$",
"credits",
",",
"$",
"notes",
",",
"$",
"creditType",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"CreditType",
"::",
"Email",
",",
"$",
"subAccountEmail",
"=",
"null",
",",
"$",
"publicAccountID",
"=",
"null",... | Add email, template or litmus credits to a sub-account
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $credits Amount of credits to add
@param string $notes Specific notes about the transaction
@param \ElasticEmailEnums\CreditType $creditType Type of credits to add (Email or L... | [
"Add",
"email",
"template",
"or",
"litmus",
"credits",
"to",
"a",
"sub",
"-",
"account"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L59-L67 |
189,422 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.ChangePassword | public function ChangePassword($newPassword, $confirmPassword, $currentPassword = null) {
return $this->sendRequest('account/changepassword', array(
'newPassword' => $newPassword,
'confirmPassword' => $confirmPassword,
'currentPassword' => $currentPass... | php | public function ChangePassword($newPassword, $confirmPassword, $currentPassword = null) {
return $this->sendRequest('account/changepassword', array(
'newPassword' => $newPassword,
'confirmPassword' => $confirmPassword,
'currentPassword' => $currentPass... | [
"public",
"function",
"ChangePassword",
"(",
"$",
"newPassword",
",",
"$",
"confirmPassword",
",",
"$",
"currentPassword",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'account/changepassword'",
",",
"array",
"(",
"'newPassword'",
"=>... | Create new password for your account. Password needs to be at least 6 characters long.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $newPassword New password for account.
@param string $confirmPassword Repeat new password.
@param string $currentPassword Current password. | [
"Create",
"new",
"password",
"for",
"your",
"account",
".",
"Password",
"needs",
"to",
"be",
"at",
"least",
"6",
"characters",
"long",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L92-L98 |
189,423 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.LoadPaymentHistory | public function LoadPaymentHistory($limit, $offset, $fromDate, $toDate) {
return $this->sendRequest('account/loadpaymenthistory', array(
'limit' => $limit,
'offset' => $offset,
'fromDate' => $fromDate,
'toDate' => $toDate
))... | php | public function LoadPaymentHistory($limit, $offset, $fromDate, $toDate) {
return $this->sendRequest('account/loadpaymenthistory', array(
'limit' => $limit,
'offset' => $offset,
'fromDate' => $fromDate,
'toDate' => $toDate
))... | [
"public",
"function",
"LoadPaymentHistory",
"(",
"$",
"limit",
",",
"$",
"offset",
",",
"$",
"fromDate",
",",
"$",
"toDate",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'account/loadpaymenthistory'",
",",
"array",
"(",
"'limit'",
"=>",
"$",
... | Lists all payments
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param int $limit Maximum of loaded items.
@param int $offset How many items should be loaded ahead.
@param DateTime $fromDate Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param DateTime $toDate Ending date for... | [
"Lists",
"all",
"payments"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L204-L211 |
189,424 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.RemoveSubAccountCredits | public function RemoveSubAccountCredits($creditType, $notes, $subAccountEmail = null, $publicAccountID = null, $credits = null, $removeAll = false) {
return $this->sendRequest('account/removesubaccountcredits', array(
'creditType' => $creditType,
'notes' => $notes,
... | php | public function RemoveSubAccountCredits($creditType, $notes, $subAccountEmail = null, $publicAccountID = null, $credits = null, $removeAll = false) {
return $this->sendRequest('account/removesubaccountcredits', array(
'creditType' => $creditType,
'notes' => $notes,
... | [
"public",
"function",
"RemoveSubAccountCredits",
"(",
"$",
"creditType",
",",
"$",
"notes",
",",
"$",
"subAccountEmail",
"=",
"null",
",",
"$",
"publicAccountID",
"=",
"null",
",",
"$",
"credits",
"=",
"null",
",",
"$",
"removeAll",
"=",
"false",
")",
"{",... | Remove email, template or litmus credits from a sub-account
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param \ElasticEmailEnums\CreditType $creditType Type of credits to add (Email or Litmus)
@param string $notes Specific notes about the transaction
@param string $subAccountEmail Em... | [
"Remove",
"email",
"template",
"or",
"litmus",
"credits",
"from",
"a",
"sub",
"-",
"account"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L352-L361 |
189,425 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.UpdateAdvancedOptions | public function UpdateAdvancedOptions($enableClickTracking = null, $enableLinkClickTracking = null, $manageSubscriptions = null, $manageSubscribedOnly = null, $transactionalOnUnsubscribe = null, $skipListUnsubscribe = null, $autoTextFromHtml = null, $allowCustomHeaders = null, $bccEmail = null, $contentTransferEncoding... | php | public function UpdateAdvancedOptions($enableClickTracking = null, $enableLinkClickTracking = null, $manageSubscriptions = null, $manageSubscribedOnly = null, $transactionalOnUnsubscribe = null, $skipListUnsubscribe = null, $autoTextFromHtml = null, $allowCustomHeaders = null, $bccEmail = null, $contentTransferEncoding... | [
"public",
"function",
"UpdateAdvancedOptions",
"(",
"$",
"enableClickTracking",
"=",
"null",
",",
"$",
"enableLinkClickTracking",
"=",
"null",
",",
"$",
"manageSubscriptions",
"=",
"null",
",",
"$",
"manageSubscribedOnly",
"=",
"null",
",",
"$",
"transactionalOnUnsu... | Update sending and tracking options of your account.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param ?bool $enableClickTracking True, if you want to track clicks. Otherwise, false
@param ?bool $enableLinkClickTracking True, if you want to track by link tracking. Otherwise, false
@p... | [
"Update",
"sending",
"and",
"tracking",
"options",
"of",
"your",
"account",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L434-L473 |
189,426 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.UpdateCustomBranding | public function UpdateCustomBranding($enablePrivateBranding = false, $logoUrl = null, $supportLink = null, $privateBrandingUrl = null, $smtpAddress = null, $smtpAlternative = null, $paymentUrl = null) {
return $this->sendRequest('account/updatecustombranding', array(
'enablePrivateBranding' ... | php | public function UpdateCustomBranding($enablePrivateBranding = false, $logoUrl = null, $supportLink = null, $privateBrandingUrl = null, $smtpAddress = null, $smtpAlternative = null, $paymentUrl = null) {
return $this->sendRequest('account/updatecustombranding', array(
'enablePrivateBranding' ... | [
"public",
"function",
"UpdateCustomBranding",
"(",
"$",
"enablePrivateBranding",
"=",
"false",
",",
"$",
"logoUrl",
"=",
"null",
",",
"$",
"supportLink",
"=",
"null",
",",
"$",
"privateBrandingUrl",
"=",
"null",
",",
"$",
"smtpAddress",
"=",
"null",
",",
"$"... | Update settings of your private branding. These settings are needed, if you want to use Elastic Email under your brand.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param bool $enablePrivateBranding True: Turn on or off ability to send mails under your brand. Otherwise, false
@param s... | [
"Update",
"settings",
"of",
"your",
"private",
"branding",
".",
"These",
"settings",
"are",
"needed",
"if",
"you",
"want",
"to",
"use",
"Elastic",
"Email",
"under",
"your",
"brand",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L486-L496 |
189,427 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.UpdateHttpNotification | public function UpdateHttpNotification($url, $notifyOncePerEmail = false, $settings = null) {
return $this->sendRequest('account/updatehttpnotification', array(
'url' => $url,
'notifyOncePerEmail' => $notifyOncePerEmail,
'settings' => $settings
... | php | public function UpdateHttpNotification($url, $notifyOncePerEmail = false, $settings = null) {
return $this->sendRequest('account/updatehttpnotification', array(
'url' => $url,
'notifyOncePerEmail' => $notifyOncePerEmail,
'settings' => $settings
... | [
"public",
"function",
"UpdateHttpNotification",
"(",
"$",
"url",
",",
"$",
"notifyOncePerEmail",
"=",
"false",
",",
"$",
"settings",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'account/updatehttpnotification'",
",",
"array",
"(",
... | Update http notification URL.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $url URL of notification.
@param bool $notifyOncePerEmail True, if you want to receive notifications for each type only once per email. Otherwise, false
@param string $settings Http notification se... | [
"Update",
"http",
"notification",
"URL",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L505-L511 |
189,428 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.UpdateProfile | public function UpdateProfile($firstName, $lastName, $address1, $city, $state, $zip, $countryID, $marketingConsent = null, $address2 = null, $company = null, $website = null, $logoUrl = null, $taxCode = null, $phone = null) {
return $this->sendRequest('account/updateprofile', array(
'firstNa... | php | public function UpdateProfile($firstName, $lastName, $address1, $city, $state, $zip, $countryID, $marketingConsent = null, $address2 = null, $company = null, $website = null, $logoUrl = null, $taxCode = null, $phone = null) {
return $this->sendRequest('account/updateprofile', array(
'firstNa... | [
"public",
"function",
"UpdateProfile",
"(",
"$",
"firstName",
",",
"$",
"lastName",
",",
"$",
"address1",
",",
"$",
"city",
",",
"$",
"state",
",",
"$",
"zip",
",",
"$",
"countryID",
",",
"$",
"marketingConsent",
"=",
"null",
",",
"$",
"address2",
"=",... | Update your profile.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $firstName First name.
@param string $lastName Last name.
@param string $address1 First line of address.
@param string $city City.
@param string $state State or province.
@param string $zip Zip/postal code.... | [
"Update",
"your",
"profile",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L531-L548 |
189,429 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Account.php | Account.UpdateSubAccountSettings | public function UpdateSubAccountSettings($requiresEmailCredits = false, $monthlyRefillCredits = 0, $requiresLitmusCredits = false, $enableLitmusTest = false, $dailySendLimit = null, $emailSizeLimit = 10, $enablePrivateIPRequest = false, $maxContacts = 0, $subAccountEmail = null, $publicAccountID = null, $sendingPermiss... | php | public function UpdateSubAccountSettings($requiresEmailCredits = false, $monthlyRefillCredits = 0, $requiresLitmusCredits = false, $enableLitmusTest = false, $dailySendLimit = null, $emailSizeLimit = 10, $enablePrivateIPRequest = false, $maxContacts = 0, $subAccountEmail = null, $publicAccountID = null, $sendingPermiss... | [
"public",
"function",
"UpdateSubAccountSettings",
"(",
"$",
"requiresEmailCredits",
"=",
"false",
",",
"$",
"monthlyRefillCredits",
"=",
"0",
",",
"$",
"requiresLitmusCredits",
"=",
"false",
",",
"$",
"enableLitmusTest",
"=",
"false",
",",
"$",
"dailySendLimit",
"... | Updates settings of specified subaccount
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param bool $requiresEmailCredits True, if account needs credits to send emails. Otherwise, false
@param int $monthlyRefillCredits Amount of credits added to account automatically
@param bool $require... | [
"Updates",
"settings",
"of",
"specified",
"subaccount"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Account.php#L567-L583 |
189,430 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.Add | public function Add($publicAccountID, $email, array $publicListID = array(), array $listName = array(), $firstName = null, $lastName = null, $source = \ElasticEmailEnums\ContactSource::ContactApi, $returnUrl = null, $sourceUrl = null, $activationReturnUrl = null, $activationTemplate = null, $sendActivation = true, $con... | php | public function Add($publicAccountID, $email, array $publicListID = array(), array $listName = array(), $firstName = null, $lastName = null, $source = \ElasticEmailEnums\ContactSource::ContactApi, $returnUrl = null, $sourceUrl = null, $activationReturnUrl = null, $activationTemplate = null, $sendActivation = true, $con... | [
"public",
"function",
"Add",
"(",
"$",
"publicAccountID",
",",
"$",
"email",
",",
"array",
"$",
"publicListID",
"=",
"array",
"(",
")",
",",
"array",
"$",
"listName",
"=",
"array",
"(",
")",
",",
"$",
"firstName",
"=",
"null",
",",
"$",
"lastName",
"... | Add a new contact and optionally to one of your lists. Note that your API KEY is not required for this call.
@param string $publicAccountID Public key for limited access to your account such as contact/add so you can use it safely on public websites.
@param string $email Proper email address.
@param array<string> $pub... | [
"Add",
"a",
"new",
"contact",
"and",
"optionally",
"to",
"one",
"of",
"your",
"lists",
".",
"Note",
"that",
"your",
"API",
"KEY",
"is",
"not",
"required",
"for",
"this",
"call",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L32-L54 |
189,431 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.ChangeStatus | public function ChangeStatus($status, $rule = null, array $emails = array()) {
return $this->sendRequest('contact/changestatus', array(
'status' => $status,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $emails)
));
... | php | public function ChangeStatus($status, $rule = null, array $emails = array()) {
return $this->sendRequest('contact/changestatus', array(
'status' => $status,
'rule' => $rule,
'emails' => (count($emails) === 0) ? null : join(';', $emails)
));
... | [
"public",
"function",
"ChangeStatus",
"(",
"$",
"status",
",",
"$",
"rule",
"=",
"null",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'contact/changestatus'",
",",
"array",
"(",
"'status... | Changes status of selected Contacts. You may provide RULE for selection or specify list of Contact IDs.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param \ElasticEmailEnums\ContactStatus $status Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed.
@param string $r... | [
"Changes",
"status",
"of",
"selected",
"Contacts",
".",
"You",
"may",
"provide",
"RULE",
"for",
"selection",
"or",
"specify",
"list",
"of",
"Contact",
"IDs",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L91-L97 |
189,432 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.Export | public function Export($fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $rule = null, array $emails = array(), $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('contact/export', array(
'fileFormat' => $fileFormat,
... | php | public function Export($fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $rule = null, array $emails = array(), $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('contact/export', array(
'fileFormat' => $fileFormat,
... | [
"public",
"function",
"Export",
"(",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"rule",
"=",
"null",
",",
"array",
"$",
"emails",
"=",
"array",
"(",
")",
",",
"$",
"compressionFormat",
"=",
"\\",
... | Export selected Contacts to file.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param \ElasticEmailEnums\ExportFileFormats $fileFormat Format of the exported file
@param string $rule Query used for filtering.
@param array<string> $emails Comma delimited list of contact emails
@param \E... | [
"Export",
"selected",
"Contacts",
"to",
"file",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L150-L158 |
189,433 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.ExportUnsubscribeReasonCount | public function ExportUnsubscribeReasonCount($from = null, $to = null, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('contact/exportunsubscribereasoncount', array(
'from'... | php | public function ExportUnsubscribeReasonCount($from = null, $to = null, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('contact/exportunsubscribereasoncount', array(
'from'... | [
"public",
"function",
"ExportUnsubscribeReasonCount",
"(",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"compressionFormat",
"=",
"\\",
"Elastic... | Export contacts' unsubscribe reasons count to file.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param ?DateTime $from Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param ?DateTime $to Ending date for search in YYYY-MM-DDThh:mm:ss format.
@param \ElasticEmailEnums\ExportFil... | [
"Export",
"contacts",
"unsubscribe",
"reasons",
"count",
"to",
"file",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L170-L178 |
189,434 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.EEList | public function EEList($rule = null, $limit = 20, $offset = 0) {
return $this->sendRequest('contact/list', array(
'rule' => $rule,
'limit' => $limit,
'offset' => $offset
));
} | php | public function EEList($rule = null, $limit = 20, $offset = 0) {
return $this->sendRequest('contact/list', array(
'rule' => $rule,
'limit' => $limit,
'offset' => $offset
));
} | [
"public",
"function",
"EEList",
"(",
"$",
"rule",
"=",
"null",
",",
"$",
"limit",
"=",
"20",
",",
"$",
"offset",
"=",
"0",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'contact/list'",
",",
"array",
"(",
"'rule'",
"=>",
"$",
"rule",
... | List of all contacts. If you have not specified RULE, all Contacts will be listed.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $rule Query used for filtering.
@param int $limit Maximum of loaded items.
@param int $offset How many items should be loaded ahead.
@return Arr... | [
"List",
"of",
"all",
"contacts",
".",
"If",
"you",
"have",
"not",
"specified",
"RULE",
"all",
"Contacts",
"will",
"be",
"listed",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L232-L238 |
189,435 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.LoadBlocked | public function LoadBlocked($statuses, $search = null, $limit = 0, $offset = 0) {
return $this->sendRequest('contact/loadblocked', array(
'statuses' => (count($statuses) === 0) ? null : join(';', $statuses),
'search' => $search,
'limit' => $limit,
... | php | public function LoadBlocked($statuses, $search = null, $limit = 0, $offset = 0) {
return $this->sendRequest('contact/loadblocked', array(
'statuses' => (count($statuses) === 0) ? null : join(';', $statuses),
'search' => $search,
'limit' => $limit,
... | [
"public",
"function",
"LoadBlocked",
"(",
"$",
"statuses",
",",
"$",
"search",
"=",
"null",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"offset",
"=",
"0",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'contact/loadblocked'",
",",
"array",
"("... | Load blocked contacts
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<\ElasticEmailEnums\ContactStatus> $statuses List of blocked statuses: Abuse, Bounced or Unsubscribed
@param string $search Text fragment used for searching.
@param int $limit Maximum of loaded items.
@param... | [
"Load",
"blocked",
"contacts"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L249-L256 |
189,436 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.QuickAdd | public function QuickAdd($emails, $firstName = null, $lastName = null, $publicListID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $notes = null, $consentDate = null, $consentIP = null, array $field = array(), $notifyEmail = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Un... | php | public function QuickAdd($emails, $firstName = null, $lastName = null, $publicListID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $notes = null, $consentDate = null, $consentIP = null, array $field = array(), $notifyEmail = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Un... | [
"public",
"function",
"QuickAdd",
"(",
"$",
"emails",
",",
"$",
"firstName",
"=",
"null",
",",
"$",
"lastName",
"=",
"null",
",",
"$",
"publicListID",
"=",
"null",
",",
"$",
"listName",
"=",
"null",
",",
"$",
"status",
"=",
"\\",
"ElasticEmailEnums",
"... | Add new Contact to one of your Lists.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<string> $emails Comma delimited list of contact emails
@param string $firstName First name.
@param string $lastName Last name.
@param string $publicListID ID code of list
@param string $list... | [
"Add",
"new",
"Contact",
"to",
"one",
"of",
"your",
"Lists",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L302-L318 |
189,437 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Contact.php | Contact.Upload | public function Upload($contactFile, $allowUnsubscribe = false, $listID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $consentDate = null, $consentIP = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
return $this->sendRequest('contact/upload', array(
... | php | public function Upload($contactFile, $allowUnsubscribe = false, $listID = null, $listName = null, $status = \ElasticEmailEnums\ContactStatus::Active, $consentDate = null, $consentIP = null, $consentTracking = \ElasticEmailEnums\ConsentTracking::Unknown) {
return $this->sendRequest('contact/upload', array(
... | [
"public",
"function",
"Upload",
"(",
"$",
"contactFile",
",",
"$",
"allowUnsubscribe",
"=",
"false",
",",
"$",
"listID",
"=",
"null",
",",
"$",
"listName",
"=",
"null",
",",
"$",
"status",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ContactStatus",
"::",
"Activ... | Upload contacts in CSV file.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param File $contactFile Name of CSV file with Contacts.
@param bool $allowUnsubscribe True: Allow unsubscribing from this (optional) newly created list. Otherwise, false
@param ?int $listID ID number of selected... | [
"Upload",
"contacts",
"in",
"CSV",
"file",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Contact.php#L367-L377 |
189,438 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Segment.php | Segment.EECopy | public function EECopy($sourceSegmentName, $newSegmentName = null, $rule = null) {
return $this->sendRequest('segment/copy', array(
'sourceSegmentName' => $sourceSegmentName,
'newSegmentName' => $newSegmentName,
'rule' => $rule
));
} | php | public function EECopy($sourceSegmentName, $newSegmentName = null, $rule = null) {
return $this->sendRequest('segment/copy', array(
'sourceSegmentName' => $sourceSegmentName,
'newSegmentName' => $newSegmentName,
'rule' => $rule
));
} | [
"public",
"function",
"EECopy",
"(",
"$",
"sourceSegmentName",
",",
"$",
"newSegmentName",
"=",
"null",
",",
"$",
"rule",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'segment/copy'",
",",
"array",
"(",
"'sourceSegmentName'",
"=>"... | Copy your existing Segment with the optional new rule and custom name
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $sourceSegmentName The name of the segment you want to copy
@param string $newSegmentName New name of your segment if you want to change it.
@param string $r... | [
"Copy",
"your",
"existing",
"Segment",
"with",
"the",
"optional",
"new",
"rule",
"and",
"custom",
"name"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Segment.php#L32-L38 |
189,439 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Segment.php | Segment.Export | public function Export($segmentName, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('segment/export', array(
'segmentName' => $segmentName,
'fileFormat... | php | public function Export($segmentName, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('segment/export', array(
'segmentName' => $segmentName,
'fileFormat... | [
"public",
"function",
"Export",
"(",
"$",
"segmentName",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"compressionFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"CompressionFormat",
"::",
"None",
",",
... | Exports all the contacts from the provided segment
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $segmentName Name of your segment.
@param \ElasticEmailEnums\ExportFileFormats $fileFormat Format of the exported file
@param \ElasticEmailEnums\CompressionFormat $compressionF... | [
"Exports",
"all",
"the",
"contacts",
"from",
"the",
"provided",
"segment"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Segment.php#L60-L67 |
189,440 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Segment.php | Segment.EEList | public function EEList($includeHistory = false, $from = null, $to = null) {
return $this->sendRequest('segment/list', array(
'includeHistory' => $includeHistory,
'from' => $from,
'to' => $to
));
} | php | public function EEList($includeHistory = false, $from = null, $to = null) {
return $this->sendRequest('segment/list', array(
'includeHistory' => $includeHistory,
'from' => $from,
'to' => $to
));
} | [
"public",
"function",
"EEList",
"(",
"$",
"includeHistory",
"=",
"false",
",",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'segment/list'",
",",
"array",
"(",
"'includeHistory'",
"=>"... | Lists all your available Segments
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param bool $includeHistory True: Include history of last 30 days. Otherwise, false.
@param ?DateTime $from From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format.
@param ?DateTime... | [
"Lists",
"all",
"your",
"available",
"Segments"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Segment.php#L77-L83 |
189,441 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Segment.php | Segment.LoadByName | public function LoadByName($segmentNames, $includeHistory = false, $from = null, $to = null) {
return $this->sendRequest('segment/loadbyname', array(
'segmentNames' => (count($segmentNames) === 0) ? null : join(';', $segmentNames),
'includeHistory' => $includeHistory,
... | php | public function LoadByName($segmentNames, $includeHistory = false, $from = null, $to = null) {
return $this->sendRequest('segment/loadbyname', array(
'segmentNames' => (count($segmentNames) === 0) ? null : join(';', $segmentNames),
'includeHistory' => $includeHistory,
... | [
"public",
"function",
"LoadByName",
"(",
"$",
"segmentNames",
",",
"$",
"includeHistory",
"=",
"false",
",",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'segment/loadbyname'",
",",
"a... | Lists your available Segments using the provided names
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<string> $segmentNames Names of segments you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided
@param bool $includeHistory True:... | [
"Lists",
"your",
"available",
"Segments",
"using",
"the",
"provided",
"names"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Segment.php#L94-L101 |
189,442 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Segment.php | Segment.Update | public function Update($segmentName, $newSegmentName = null, $rule = null) {
return $this->sendRequest('segment/update', array(
'segmentName' => $segmentName,
'newSegmentName' => $newSegmentName,
'rule' => $rule
));
} | php | public function Update($segmentName, $newSegmentName = null, $rule = null) {
return $this->sendRequest('segment/update', array(
'segmentName' => $segmentName,
'newSegmentName' => $newSegmentName,
'rule' => $rule
));
} | [
"public",
"function",
"Update",
"(",
"$",
"segmentName",
",",
"$",
"newSegmentName",
"=",
"null",
",",
"$",
"rule",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'segment/update'",
",",
"array",
"(",
"'segmentName'",
"=>",
"$",
... | Rename or change RULE for your segment
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $segmentName Name of your segment.
@param string $newSegmentName New name of your segment if you want to change it.
@param string $rule Query used for filtering.
@return \ElasticEmailEnums... | [
"Rename",
"or",
"change",
"RULE",
"for",
"your",
"segment"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Segment.php#L111-L117 |
189,443 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Campaign.php | Campaign.Export | public function Export(array $channelIDs = array(), $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('campaign/export', array(
'channelIDs' => (count($channelIDs) === 0) ? n... | php | public function Export(array $channelIDs = array(), $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('campaign/export', array(
'channelIDs' => (count($channelIDs) === 0) ? n... | [
"public",
"function",
"Export",
"(",
"array",
"$",
"channelIDs",
"=",
"array",
"(",
")",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"compressionFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"Compr... | Export selected campaigns to chosen file format.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<int> $channelIDs List of campaign IDs used for processing
@param \ElasticEmailEnums\ExportFileFormats $fileFormat Format of the exported file
@param \ElasticEmailEnums\Compression... | [
"Export",
"selected",
"campaigns",
"to",
"chosen",
"file",
"format",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Campaign.php#L54-L61 |
189,444 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Campaign.php | Campaign.EEList | public function EEList($search = null, $offset = 0, $limit = 0) {
return $this->sendRequest('campaign/list', array(
'search' => $search,
'offset' => $offset,
'limit' => $limit
));
} | php | public function EEList($search = null, $offset = 0, $limit = 0) {
return $this->sendRequest('campaign/list', array(
'search' => $search,
'offset' => $offset,
'limit' => $limit
));
} | [
"public",
"function",
"EEList",
"(",
"$",
"search",
"=",
"null",
",",
"$",
"offset",
"=",
"0",
",",
"$",
"limit",
"=",
"0",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'campaign/list'",
",",
"array",
"(",
"'search'",
"=>",
"$",
"searc... | List all of your campaigns
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $search Text fragment used for searching.
@param int $offset How many items should be loaded ahead.
@param int $limit Maximum of loaded items.
@return Array<\ElasticEmailEnums\CampaignChannel> | [
"List",
"all",
"of",
"your",
"campaigns"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Campaign.php#L71-L77 |
189,445 | lkorth/php-gcm | src/PHP_GCM/Sender.php | Sender.send | public function send(Message $message, $registrationIds) {
if (empty($registrationIds)) {
throw new \InvalidArgumentException('registrationIds cannot be empty');
}
if (!is_array($registrationIds)) {
$registrationIds = array($registrationIds);
}
$chunks = array_chunk($registrationIds, 1... | php | public function send(Message $message, $registrationIds) {
if (empty($registrationIds)) {
throw new \InvalidArgumentException('registrationIds cannot be empty');
}
if (!is_array($registrationIds)) {
$registrationIds = array($registrationIds);
}
$chunks = array_chunk($registrationIds, 1... | [
"public",
"function",
"send",
"(",
"Message",
"$",
"message",
",",
"$",
"registrationIds",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"registrationIds",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'registrationIds cannot be empty'",
")",
... | Sends a GCM message to one or more devices, retrying up to the specified
number of retries in case of unavailability.
Note: Retries use exponential back-off in the case of service unavailability and
could block the calling thread for many seconds.
@param Message $message to be sent
@param string|array $registrationId... | [
"Sends",
"a",
"GCM",
"message",
"to",
"one",
"or",
"more",
"devices",
"retrying",
"up",
"to",
"the",
"specified",
"number",
"of",
"retries",
"in",
"case",
"of",
"unavailability",
"."
] | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php#L83-L146 |
189,446 | lkorth/php-gcm | src/PHP_GCM/Sender.php | Sender.createDeviceGroup | public function createDeviceGroup($senderId, $notificationKeyName, array $registrationIds) {
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, null, $registrationIds, self::DEVICE_GROUP_CREATE);
} | php | public function createDeviceGroup($senderId, $notificationKeyName, array $registrationIds) {
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, null, $registrationIds, self::DEVICE_GROUP_CREATE);
} | [
"public",
"function",
"createDeviceGroup",
"(",
"$",
"senderId",
",",
"$",
"notificationKeyName",
",",
"array",
"$",
"registrationIds",
")",
"{",
"return",
"$",
"this",
"->",
"performDeviceGroupOperation",
"(",
"$",
"senderId",
",",
"$",
"notificationKeyName",
","... | Creates a device group under the specified senderId with the specificed notificationKeyName and adds all
devices in registrationIds to the group.
@param $senderId A unique numerical value created when you configure your API project
(given as "Project Number" in the Google Developers Console). The sender ID is used in ... | [
"Creates",
"a",
"device",
"group",
"under",
"the",
"specified",
"senderId",
"with",
"the",
"specificed",
"notificationKeyName",
"and",
"adds",
"all",
"devices",
"in",
"registrationIds",
"to",
"the",
"group",
"."
] | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php#L164-L166 |
189,447 | lkorth/php-gcm | src/PHP_GCM/Sender.php | Sender.addDeviceToGroup | public function addDeviceToGroup($senderId, $notificationKeyName, $notificationKey, array $registrationIds) {
if (empty($notificationKey)) {
throw new \InvalidArgumentException('notificationKey cannot be empty');
}
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, $notificati... | php | public function addDeviceToGroup($senderId, $notificationKeyName, $notificationKey, array $registrationIds) {
if (empty($notificationKey)) {
throw new \InvalidArgumentException('notificationKey cannot be empty');
}
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, $notificati... | [
"public",
"function",
"addDeviceToGroup",
"(",
"$",
"senderId",
",",
"$",
"notificationKeyName",
",",
"$",
"notificationKey",
",",
"array",
"$",
"registrationIds",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"notificationKey",
")",
")",
"{",
"throw",
"new",
"\\"... | Adds devices to an existing device group.
@param $senderId A unique numerical value created when you configure your API project
(given as "Project Number" in the Google Developers Console). The sender ID is used in the registration
process to identify an app server that is permitted to send messages to the client app.... | [
"Adds",
"devices",
"to",
"an",
"existing",
"device",
"group",
"."
] | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php#L184-L190 |
189,448 | lkorth/php-gcm | src/PHP_GCM/Sender.php | Sender.removeDeviceFromGroup | public function removeDeviceFromGroup($senderId, $notificationKeyName, $notificationKey, array $registrationIds) {
if (empty($notificationKey)) {
throw new \InvalidArgumentException('notificationKey cannot be empty');
}
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, $notif... | php | public function removeDeviceFromGroup($senderId, $notificationKeyName, $notificationKey, array $registrationIds) {
if (empty($notificationKey)) {
throw new \InvalidArgumentException('notificationKey cannot be empty');
}
return $this->performDeviceGroupOperation($senderId, $notificationKeyName, $notif... | [
"public",
"function",
"removeDeviceFromGroup",
"(",
"$",
"senderId",
",",
"$",
"notificationKeyName",
",",
"$",
"notificationKey",
",",
"array",
"$",
"registrationIds",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"notificationKey",
")",
")",
"{",
"throw",
"new",
... | Removes devices from an existing device group.
@param $senderId A unique numerical value created when you configure your API project
(given as "Project Number" in the Google Developers Console). The sender ID is used in the registration
process to identify an app server that is permitted to send messages to the client... | [
"Removes",
"devices",
"from",
"an",
"existing",
"device",
"group",
"."
] | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php#L208-L214 |
189,449 | lkorth/php-gcm | src/PHP_GCM/Sender.php | Sender.updateStatus | private function updateStatus($unsentRegIds, &$allResults, MulticastResult $multicastResult) {
$results = $multicastResult->getResults();
if(count($results) != count($unsentRegIds)) {
// should never happen, unless there is a flaw in the algorithm
throw new \RuntimeException('Internal error: sizes d... | php | private function updateStatus($unsentRegIds, &$allResults, MulticastResult $multicastResult) {
$results = $multicastResult->getResults();
if(count($results) != count($unsentRegIds)) {
// should never happen, unless there is a flaw in the algorithm
throw new \RuntimeException('Internal error: sizes d... | [
"private",
"function",
"updateStatus",
"(",
"$",
"unsentRegIds",
",",
"&",
"$",
"allResults",
",",
"MulticastResult",
"$",
"multicastResult",
")",
"{",
"$",
"results",
"=",
"$",
"multicastResult",
"->",
"getResults",
"(",
")",
";",
"if",
"(",
"count",
"(",
... | Updates the status of the messages sent to devices and the list of devices
that should be retried.
@param array $unsentRegIds list of devices that are still pending an update.
@param array $allResults map of status that will be updated.
@param MulticastResult multicastResult result of the last multicast sent.
@return... | [
"Updates",
"the",
"status",
"of",
"the",
"messages",
"sent",
"to",
"devices",
"and",
"the",
"list",
"of",
"devices",
"that",
"should",
"be",
"retried",
"."
] | 732d13ce427a8fc2feb4eac858c7e677d94e4033 | https://github.com/lkorth/php-gcm/blob/732d13ce427a8fc2feb4eac858c7e677d94e4033/src/PHP_GCM/Sender.php#L318-L338 |
189,450 | thephpleague/omnipay-firstdata | src/Message/WebserviceResponse.php | WebserviceResponse.getDataItem | public function getDataItem($itemname)
{
if (isset($this->data[$itemname])) {
return $this->data[$itemname];
}
return null;
} | php | public function getDataItem($itemname)
{
if (isset($this->data[$itemname])) {
return $this->data[$itemname];
}
return null;
} | [
"public",
"function",
"getDataItem",
"(",
"$",
"itemname",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"data",
"[",
"$",
"itemname",
"]",
")",
")",
"{",
"return",
"$",
"this",
"->",
"data",
"[",
"$",
"itemname",
"]",
";",
"}",
"return",
... | Get an item from the internal data array
This is a short cut function to ensure that we test that the item
exists in the data array before we try to retrieve it.
@param $itemname
@return mixed|null | [
"Get",
"an",
"item",
"from",
"the",
"internal",
"data",
"array"
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/WebserviceResponse.php#L29-L36 |
189,451 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.Export | public function Export($statuses, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $from = null, $to = null, $channelName = null, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null, $email = null) {
... | php | public function Export($statuses, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $from = null, $to = null, $channelName = null, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null, $email = null) {
... | [
"public",
"function",
"Export",
"(",
"$",
"statuses",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
",",
"$",
"channelName",
"=",
"null",
",",
... | Export email log information to the specified file format.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<\ElasticEmailEnums\LogJobStatus> $statuses List of comma separated message statuses: 0 for all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Ope... | [
"Export",
"email",
"log",
"information",
"to",
"the",
"specified",
"file",
"format",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L39-L53 |
189,452 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.ExportLinkTracking | public function ExportLinkTracking($from, $to, $channelName = null, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $limit = 0, $offset = 0, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('log/exportlinktracking', array(
... | php | public function ExportLinkTracking($from, $to, $channelName = null, $fileFormat = \ElasticEmailEnums\ExportFileFormats::Csv, $limit = 0, $offset = 0, $compressionFormat = \ElasticEmailEnums\CompressionFormat::None, $fileName = null) {
return $this->sendRequest('log/exportlinktracking', array(
... | [
"public",
"function",
"ExportLinkTracking",
"(",
"$",
"from",
",",
"$",
"to",
",",
"$",
"channelName",
"=",
"null",
",",
"$",
"fileFormat",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"ExportFileFormats",
"::",
"Csv",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"of... | Export detailed link tracking information to the specified file format.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param ?DateTime $from Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param ?DateTime $to Ending date for search in YYYY-MM-DDThh:mm:ss format.
@param string $... | [
"Export",
"detailed",
"link",
"tracking",
"information",
"to",
"the",
"specified",
"file",
"format",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L68-L79 |
189,453 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.LinkTracking | public function LinkTracking($from = null, $to = null, $limit = 0, $offset = 0, $channelName = null) {
return $this->sendRequest('log/linktracking', array(
'from' => $from,
'to' => $to,
'limit' => $limit,
'offset' => $offset,
... | php | public function LinkTracking($from = null, $to = null, $limit = 0, $offset = 0, $channelName = null) {
return $this->sendRequest('log/linktracking', array(
'from' => $from,
'to' => $to,
'limit' => $limit,
'offset' => $offset,
... | [
"public",
"function",
"LinkTracking",
"(",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"offset",
"=",
"0",
",",
"$",
"channelName",
"=",
"null",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",... | Track link clicks
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param ?DateTime $from Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param ?DateTime $to Ending date for search in YYYY-MM-DDThh:mm:ss format.
@param int $limit Maximum of loaded items.
@param int $offset How man... | [
"Track",
"link",
"clicks"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L91-L99 |
189,454 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.Load | public function Load($statuses, $from = null, $to = null, $channelName = null, $limit = 0, $offset = 0, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $email = null, $useStatusChangeDate = false) {
return $this->sendRequest('log/load', array(
'statuses' => (count... | php | public function Load($statuses, $from = null, $to = null, $channelName = null, $limit = 0, $offset = 0, $includeEmail = true, $includeSms = true, array $messageCategory = array(), $email = null, $useStatusChangeDate = false) {
return $this->sendRequest('log/load', array(
'statuses' => (count... | [
"public",
"function",
"Load",
"(",
"$",
"statuses",
",",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
",",
"$",
"channelName",
"=",
"null",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"offset",
"=",
"0",
",",
"$",
"includeEmail",
"=",
"true"... | Returns logs filtered by specified parameters.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<\ElasticEmailEnums\LogJobStatus> $statuses List of comma separated message statuses: 0 for all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Opened, 7 for C... | [
"Returns",
"logs",
"filtered",
"by",
"specified",
"parameters",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L117-L131 |
189,455 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.LoadNotifications | public function LoadNotifications($statuses, $from = null, $to = null, $limit = 0, $offset = 0, array $messageCategory = array(), $useStatusChangeDate = false, $notificationType = \ElasticEmailEnums\NotificationType::All) {
return $this->sendRequest('log/loadnotifications', array(
'statuses'... | php | public function LoadNotifications($statuses, $from = null, $to = null, $limit = 0, $offset = 0, array $messageCategory = array(), $useStatusChangeDate = false, $notificationType = \ElasticEmailEnums\NotificationType::All) {
return $this->sendRequest('log/loadnotifications', array(
'statuses'... | [
"public",
"function",
"LoadNotifications",
"(",
"$",
"statuses",
",",
"$",
"from",
"=",
"null",
",",
"$",
"to",
"=",
"null",
",",
"$",
"limit",
"=",
"0",
",",
"$",
"offset",
"=",
"0",
",",
"array",
"$",
"messageCategory",
"=",
"array",
"(",
")",
",... | Returns notification logs filtered by specified parameters.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param array<\ElasticEmailEnums\LogJobStatus> $statuses List of comma separated message statuses: 0 for all, 1 for ReadyToSend, 2 for InProgress, 4 for Bounced, 5 for Sent, 6 for Op... | [
"Returns",
"notification",
"logs",
"filtered",
"by",
"specified",
"parameters",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L146-L157 |
189,456 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Log.php | Log.Summary | public function Summary($from, $to, $channelName = null, $interval = \ElasticEmailEnums\IntervalType::Summary, $transactionID = null) {
return $this->sendRequest('log/summary', array(
'from' => $from,
'to' => $to,
'channelName' => $channelName,
... | php | public function Summary($from, $to, $channelName = null, $interval = \ElasticEmailEnums\IntervalType::Summary, $transactionID = null) {
return $this->sendRequest('log/summary', array(
'from' => $from,
'to' => $to,
'channelName' => $channelName,
... | [
"public",
"function",
"Summary",
"(",
"$",
"from",
",",
"$",
"to",
",",
"$",
"channelName",
"=",
"null",
",",
"$",
"interval",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"IntervalType",
"::",
"Summary",
",",
"$",
"transactionID",
"=",
"null",
")",
"{",
"retur... | Loads summary information about activity in chosen date range.
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param DateTime $from Starting date for search in YYYY-MM-DDThh:mm:ss format.
@param DateTime $to Ending date for search in YYYY-MM-DDThh:mm:ss format.
@param string $channelName... | [
"Loads",
"summary",
"information",
"about",
"activity",
"in",
"chosen",
"date",
"range",
"."
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Log.php#L180-L188 |
189,457 | thephpleague/omnipay-firstdata | src/Message/PurchaseRequest.php | PurchaseRequest.createHash | public function createHash($dateTime, $amount)
{
$storeId = $this->getStoreId();
$sharedSecret = $this->getSharedSecret();
$currency = $this->getCurrencyNumeric();
$stringToHash = $storeId . $dateTime . $amount . $currency . $sharedSecret;
$ascii = bin2hex($st... | php | public function createHash($dateTime, $amount)
{
$storeId = $this->getStoreId();
$sharedSecret = $this->getSharedSecret();
$currency = $this->getCurrencyNumeric();
$stringToHash = $storeId . $dateTime . $amount . $currency . $sharedSecret;
$ascii = bin2hex($st... | [
"public",
"function",
"createHash",
"(",
"$",
"dateTime",
",",
"$",
"amount",
")",
"{",
"$",
"storeId",
"=",
"$",
"this",
"->",
"getStoreId",
"(",
")",
";",
"$",
"sharedSecret",
"=",
"$",
"this",
"->",
"getSharedSecret",
"(",
")",
";",
"$",
"currency",... | Returns a SHA-1 hash of the transaction data.
@param $dateTime
@param $amount
@return string | [
"Returns",
"a",
"SHA",
"-",
"1",
"hash",
"of",
"the",
"transaction",
"data",
"."
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PurchaseRequest.php#L161-L170 |
189,458 | thephpleague/omnipay-firstdata | src/Message/PayeezyAbstractRequest.php | PayeezyAbstractRequest.getBaseData | protected function getBaseData()
{
$data = array();
$data['gateway_id'] = $this->getGatewayID();
$data['password'] = $this->getPassword();
$data['transaction_type'] = $this->getTransactionType();
return $data;
} | php | protected function getBaseData()
{
$data = array();
$data['gateway_id'] = $this->getGatewayID();
$data['password'] = $this->getPassword();
$data['transaction_type'] = $this->getTransactionType();
return $data;
} | [
"protected",
"function",
"getBaseData",
"(",
")",
"{",
"$",
"data",
"=",
"array",
"(",
")",
";",
"$",
"data",
"[",
"'gateway_id'",
"]",
"=",
"$",
"this",
"->",
"getGatewayID",
"(",
")",
";",
"$",
"data",
"[",
"'password'",
"]",
"=",
"$",
"this",
"-... | Get the base transaction data.
@return array | [
"Get",
"the",
"base",
"transaction",
"data",
"."
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PayeezyAbstractRequest.php#L193-L201 |
189,459 | thephpleague/omnipay-firstdata | src/Message/PayeezyAbstractRequest.php | PayeezyAbstractRequest.buildHashString | protected function buildHashString($contentDigest, $gge4Date, $uri)
{
return sprintf(
"%s\n%s\n%s\n%s\n%s",
self::METHOD_POST,
self::CONTENT_TYPE,
$contentDigest,
$gge4Date,
$uri
);
} | php | protected function buildHashString($contentDigest, $gge4Date, $uri)
{
return sprintf(
"%s\n%s\n%s\n%s\n%s",
self::METHOD_POST,
self::CONTENT_TYPE,
$contentDigest,
$gge4Date,
$uri
);
} | [
"protected",
"function",
"buildHashString",
"(",
"$",
"contentDigest",
",",
"$",
"gge4Date",
",",
"$",
"uri",
")",
"{",
"return",
"sprintf",
"(",
"\"%s\\n%s\\n%s\\n%s\\n%s\"",
",",
"self",
"::",
"METHOD_POST",
",",
"self",
"::",
"CONTENT_TYPE",
",",
"$",
"cont... | Composes the hash string needed for the newer versions of the API
@param $contentDigest
@param $gge4Date
@param $uri
@return string | [
"Composes",
"the",
"hash",
"string",
"needed",
"for",
"the",
"newer",
"versions",
"of",
"the",
"API"
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PayeezyAbstractRequest.php#L233-L243 |
189,460 | thephpleague/omnipay-firstdata | src/Message/PayeezyAbstractRequest.php | PayeezyAbstractRequest.buildAuthString | protected function buildAuthString($hashString)
{
return sprintf(
'GGE4_API %s:%s',
$this->getKeyId(),
base64_encode(hash_hmac("sha1", $hashString, $this->getHmac(), true))
);
} | php | protected function buildAuthString($hashString)
{
return sprintf(
'GGE4_API %s:%s',
$this->getKeyId(),
base64_encode(hash_hmac("sha1", $hashString, $this->getHmac(), true))
);
} | [
"protected",
"function",
"buildAuthString",
"(",
"$",
"hashString",
")",
"{",
"return",
"sprintf",
"(",
"'GGE4_API %s:%s'",
",",
"$",
"this",
"->",
"getKeyId",
"(",
")",
",",
"base64_encode",
"(",
"hash_hmac",
"(",
"\"sha1\"",
",",
"$",
"hashString",
",",
"$... | Composes the auth string needed for the newer versions of the API
@param $hashString
@return string | [
"Composes",
"the",
"auth",
"string",
"needed",
"for",
"the",
"newer",
"versions",
"of",
"the",
"API"
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PayeezyAbstractRequest.php#L252-L259 |
189,461 | thephpleague/omnipay-firstdata | src/Message/PayeezyAbstractRequest.php | PayeezyAbstractRequest.getCardType | public static function getCardType($type)
{
if (isset(self::$cardTypes[$type])) {
return self::$cardTypes[$type];
}
return $type;
} | php | public static function getCardType($type)
{
if (isset(self::$cardTypes[$type])) {
return self::$cardTypes[$type];
}
return $type;
} | [
"public",
"static",
"function",
"getCardType",
"(",
"$",
"type",
")",
"{",
"if",
"(",
"isset",
"(",
"self",
"::",
"$",
"cardTypes",
"[",
"$",
"type",
"]",
")",
")",
"{",
"return",
"self",
"::",
"$",
"cardTypes",
"[",
"$",
"type",
"]",
";",
"}",
"... | Get the card type name, from the card type code.
@param string $type
@return string | [
"Get",
"the",
"card",
"type",
"name",
"from",
"the",
"card",
"type",
"code",
"."
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PayeezyAbstractRequest.php#L268-L274 |
189,462 | thephpleague/omnipay-firstdata | src/Message/PayeezyAbstractRequest.php | PayeezyAbstractRequest.getAVSHash | public function getAVSHash()
{
$parts = array();
$parts[] = $this->getCard()->getAddress1();
$parts[] = $this->getCard()->getPostcode();
$parts[] = $this->getCard()->getCity();
$parts[] = $this->getCard()->getState();
$parts[] = $this->getCard()->getCountry();
... | php | public function getAVSHash()
{
$parts = array();
$parts[] = $this->getCard()->getAddress1();
$parts[] = $this->getCard()->getPostcode();
$parts[] = $this->getCard()->getCity();
$parts[] = $this->getCard()->getState();
$parts[] = $this->getCard()->getCountry();
... | [
"public",
"function",
"getAVSHash",
"(",
")",
"{",
"$",
"parts",
"=",
"array",
"(",
")",
";",
"$",
"parts",
"[",
"]",
"=",
"$",
"this",
"->",
"getCard",
"(",
")",
"->",
"getAddress1",
"(",
")",
";",
"$",
"parts",
"[",
"]",
"=",
"$",
"this",
"->... | Get the AVS Hash.
Important Note about v12 or higher of the Web Service API: Merchants wishing to use
V12 or higher of the API must implement the API HMAC hash security calculation.
Further information on this subject can be found at the link below.
@link https://support.payeezy.com/entries/22069302-api-security-hmac... | [
"Get",
"the",
"AVS",
"Hash",
"."
] | 8b8613b4212476ad0aca1157920a13879aa3b299 | https://github.com/thephpleague/omnipay-firstdata/blob/8b8613b4212476ad0aca1157920a13879aa3b299/src/Message/PayeezyAbstractRequest.php#L287-L296 |
189,463 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Domain.php | Domain.Add | public function Add($domain, $trackingType = \ElasticEmailEnums\TrackingType::Http) {
return $this->sendRequest('domain/add', array(
'domain' => $domain,
'trackingType' => $trackingType
));
} | php | public function Add($domain, $trackingType = \ElasticEmailEnums\TrackingType::Http) {
return $this->sendRequest('domain/add', array(
'domain' => $domain,
'trackingType' => $trackingType
));
} | [
"public",
"function",
"Add",
"(",
"$",
"domain",
",",
"$",
"trackingType",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"TrackingType",
"::",
"Http",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'domain/add'",
",",
"array",
"(",
"'domain'",
"=>",
"... | Add new domain to account
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $domain Name of selected domain.
@param \ElasticEmailEnums\TrackingType $trackingType | [
"Add",
"new",
"domain",
"to",
"account"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Domain.php#L16-L21 |
189,464 | ElasticEmail/ElasticEmail.WebApiClient-php | src/ElasticEmailApi/Domain.php | Domain.VerifyTracking | public function VerifyTracking($domain, $trackingType = \ElasticEmailEnums\TrackingType::Http) {
return $this->sendRequest('domain/verifytracking', array(
'domain' => $domain,
'trackingType' => $trackingType
));
} | php | public function VerifyTracking($domain, $trackingType = \ElasticEmailEnums\TrackingType::Http) {
return $this->sendRequest('domain/verifytracking', array(
'domain' => $domain,
'trackingType' => $trackingType
));
} | [
"public",
"function",
"VerifyTracking",
"(",
"$",
"domain",
",",
"$",
"trackingType",
"=",
"\\",
"ElasticEmailEnums",
"\\",
"TrackingType",
"::",
"Http",
")",
"{",
"return",
"$",
"this",
"->",
"sendRequest",
"(",
"'domain/verifytracking'",
",",
"array",
"(",
"... | Verification of tracking CNAME record for domain
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $domain Name of selected domain.
@param \ElasticEmailEnums\TrackingType $trackingType
@return string | [
"Verification",
"of",
"tracking",
"CNAME",
"record",
"for",
"domain"
] | d50f141f27337e307ce9f22544646211abc56983 | https://github.com/ElasticEmail/ElasticEmail.WebApiClient-php/blob/d50f141f27337e307ce9f22544646211abc56983/src/ElasticEmailApi/Domain.php#L97-L102 |
189,465 | mctekk/zohocrm | src/Zoho/CRM/Wrapper/Element.php | Element.deserializeXml | final public function deserializeXml($xmlstr)
{
try {
$element = new \SimpleXMLElement($xmlstr);
} catch (\Exception $ex) {
return false;
}
foreach ($element as $name => $value) {
$this->$name = stripslashes(urldecode(htmlspecialchars_decode($value... | php | final public function deserializeXml($xmlstr)
{
try {
$element = new \SimpleXMLElement($xmlstr);
} catch (\Exception $ex) {
return false;
}
foreach ($element as $name => $value) {
$this->$name = stripslashes(urldecode(htmlspecialchars_decode($value... | [
"final",
"public",
"function",
"deserializeXml",
"(",
"$",
"xmlstr",
")",
"{",
"try",
"{",
"$",
"element",
"=",
"new",
"\\",
"SimpleXMLElement",
"(",
"$",
"xmlstr",
")",
";",
"}",
"catch",
"(",
"\\",
"Exception",
"$",
"ex",
")",
"{",
"return",
"false",... | The deserialize method is called during xml parsing,
create an object of the xml received based on the entity
called
@param string $xmlstr XML string to convert on object
@throws Exception If xml data could not be parsed
@return bool | [
"The",
"deserialize",
"method",
"is",
"called",
"during",
"xml",
"parsing",
"create",
"an",
"object",
"of",
"the",
"xml",
"received",
"based",
"on",
"the",
"entity",
"called"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/Wrapper/Element.php#L59-L71 |
189,466 | mctekk/zohocrm | src/Zoho/CRM/Wrapper/Element.php | Element.serializeXml | final public function serializeXml(array $fields)
{
$className = $this->stripNamespaceFromClassName($this);
$output = '<'.$className.'>';
foreach ($fields as $key => $value) {
if (empty($value)) {
continue;
}
// Unnecessary fields
... | php | final public function serializeXml(array $fields)
{
$className = $this->stripNamespaceFromClassName($this);
$output = '<'.$className.'>';
foreach ($fields as $key => $value) {
if (empty($value)) {
continue;
}
// Unnecessary fields
... | [
"final",
"public",
"function",
"serializeXml",
"(",
"array",
"$",
"fields",
")",
"{",
"$",
"className",
"=",
"$",
"this",
"->",
"stripNamespaceFromClassName",
"(",
"$",
"this",
")",
";",
"$",
"output",
"=",
"'<'",
".",
"$",
"className",
".",
"'>'",
";",
... | Called during array to xml parsing, create an string
of the xml to send for api based on the request values, for sustitution
of specials chars use E prefix instead of % for hexadecimal
@param array $fields Fields to convert
@return string
@todo
- Verify if the property exist on entity before send to zoho | [
"Called",
"during",
"array",
"to",
"xml",
"parsing",
"create",
"an",
"string",
"of",
"the",
"xml",
"to",
"send",
"for",
"api",
"based",
"on",
"the",
"request",
"values",
"for",
"sustitution",
"of",
"specials",
"chars",
"use",
"E",
"prefix",
"instead",
"of"... | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/Wrapper/Element.php#L85-L100 |
189,467 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.setEuDomain | public function setEuDomain($eu = true)
{
$this->baseUri = $eu ? self::BASE_URI_EU : self::BASE_URI;
} | php | public function setEuDomain($eu = true)
{
$this->baseUri = $eu ? self::BASE_URI_EU : self::BASE_URI;
} | [
"public",
"function",
"setEuDomain",
"(",
"$",
"eu",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"baseUri",
"=",
"$",
"eu",
"?",
"self",
"::",
"BASE_URI_EU",
":",
"self",
"::",
"BASE_URI",
";",
"}"
] | Select EU Domain
@param bool isEU
@param mixed $eu | [
"Select",
"EU",
"Domain"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L115-L118 |
189,468 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.convertLead | public function convertLead($leadId, $data, $params = [], $options = [])
{
$params['leadId'] = $leadId;
return $this->call('convertLead', $params, $data, $options);
} | php | public function convertLead($leadId, $data, $params = [], $options = [])
{
$params['leadId'] = $leadId;
return $this->call('convertLead', $params, $data, $options);
} | [
"public",
"function",
"convertLead",
"(",
"$",
"leadId",
",",
"$",
"data",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"params",
"[",
"'leadId'",
"]",
"=",
"$",
"leadId",
";",
"return",
"$",
"this",
"->",... | Implements convertLead API method.
@param string $leadId Id of the lead
@param array $data xmlData represented as an array
array will be converted into XML before sending the request
@param array $params request parameters
newFormat 1 (default) - exclude fields with null values in the response
2 - include field... | [
"Implements",
"convertLead",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L135-L140 |
189,469 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.deleteRecords | public function deleteRecords($id)
{
if (is_array($id)) {
$params['idlist'] = implode(';', $id);
} else {
$params['id'] = $id;
}
return $this->call('deleteRecords', $params);
} | php | public function deleteRecords($id)
{
if (is_array($id)) {
$params['idlist'] = implode(';', $id);
} else {
$params['id'] = $id;
}
return $this->call('deleteRecords', $params);
} | [
"public",
"function",
"deleteRecords",
"(",
"$",
"id",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"id",
")",
")",
"{",
"$",
"params",
"[",
"'idlist'",
"]",
"=",
"implode",
"(",
"';'",
",",
"$",
"id",
")",
";",
"}",
"else",
"{",
"$",
"params",
"... | Implements deleteRecords API method.
@param mixed $id Id of the record if string or list of ids if an array
a list will be passed as the parameter idlist
@return Response The Response object | [
"Implements",
"deleteRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L186-L195 |
189,470 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.getRecordById | public function getRecordById($id, $params = [], $options = [])
{
if (is_array($id)) {
$params['idlist'] = implode(';', $id);
} else {
$params['id'] = $id;
}
return $this->call('getRecordById', $params);
} | php | public function getRecordById($id, $params = [], $options = [])
{
if (is_array($id)) {
$params['idlist'] = implode(';', $id);
} else {
$params['id'] = $id;
}
return $this->call('getRecordById', $params);
} | [
"public",
"function",
"getRecordById",
"(",
"$",
"id",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"id",
")",
")",
"{",
"$",
"params",
"[",
"'idlist'",
"]",
"=",
"implode",
"... | Implements getRecordById API method.
@param mixed $id Id of the record if string or list of ids if an array
a list will be passed as the parameter idlist
@param array $params request parameters
newFormat 1 (default) - exclude fields with null values in the response
2 - include fields with null values in the re... | [
"Implements",
"getRecordById",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L211-L220 |
189,471 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.getSearchRecords | public function getSearchRecords($searchCondition, $params = [], $options = [])
{
$params['searchCondition'] = $searchCondition;
if (empty($params['selectColumns'])) {
$params['selectColumns'] = 'All';
}
return $this->call('getSearchRecords', $params);
} | php | public function getSearchRecords($searchCondition, $params = [], $options = [])
{
$params['searchCondition'] = $searchCondition;
if (empty($params['selectColumns'])) {
$params['selectColumns'] = 'All';
}
return $this->call('getSearchRecords', $params);
} | [
"public",
"function",
"getSearchRecords",
"(",
"$",
"searchCondition",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"params",
"[",
"'searchCondition'",
"]",
"=",
"$",
"searchCondition",
";",
"if",
"(",
"empty",
... | Implements getSearchRecords API method.
@param string $searchCondition search condition in the format (fieldName|condition|searchString)
e.g. (Email|contains|*@sample.com*)
@param array $params request parameters
selectColumns String Module(columns) e.g. Leads(Last Name,Website,Email)
Note: do not use any ... | [
"Implements",
"getSearchRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L294-L302 |
189,472 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.searchRecords | public function searchRecords($criteria, $params = [], $options = [])
{
$params['criteria'] = $criteria;
if (empty($params['selectColumns'])) {
$params['selectColumns'] = 'All';
}
return $this->call('searchRecords', $params);
} | php | public function searchRecords($criteria, $params = [], $options = [])
{
$params['criteria'] = $criteria;
if (empty($params['selectColumns'])) {
$params['selectColumns'] = 'All';
}
return $this->call('searchRecords', $params);
} | [
"public",
"function",
"searchRecords",
"(",
"$",
"criteria",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"params",
"[",
"'criteria'",
"]",
"=",
"$",
"criteria",
";",
"if",
"(",
"empty",
"(",
"$",
"params",
... | Implements searchRecords API method.
@param string $searchCondition search condition in the format (((Last Name:Steve)AND(Company:Zillum))OR(Lead Status:Contacted))
@param array $params request parameters
selectColumns String Module(columns) e.g. Leads(Last Name,Website,Email)
Note: do not use any extra spa... | [
"Implements",
"searchRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L323-L331 |
189,473 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.getUsers | public function getUsers($type = 'AllUsers', $newFormat = 1)
{
$params['type'] = $type;
$params['newFormat'] = $newFormat;
return $this->call('getUsers', $params);
} | php | public function getUsers($type = 'AllUsers', $newFormat = 1)
{
$params['type'] = $type;
$params['newFormat'] = $newFormat;
return $this->call('getUsers', $params);
} | [
"public",
"function",
"getUsers",
"(",
"$",
"type",
"=",
"'AllUsers'",
",",
"$",
"newFormat",
"=",
"1",
")",
"{",
"$",
"params",
"[",
"'type'",
"]",
"=",
"$",
"type",
";",
"$",
"params",
"[",
"'newFormat'",
"]",
"=",
"$",
"newFormat",
";",
"return",
... | Implements getUsers API method.
@param string $type type of the user to return. Possible values:
AllUsers - all users (both active and inactive)
ActiveUsers - only active users
DeactiveUsers - only deactivated users
AdminUsers - all users with admin privileges
ActiveConfirmedAdmins - users with admin privileges... | [
"Implements",
"getUsers",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L347-L353 |
189,474 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.insertRecords | public function insertRecords($data, $params = [], $options = [])
{
// if (!isset($params['duplicateCheck'])) {
// $params['duplicateCheck'] = 1;
// }
if (!isset($params['version']) && isset($data['records']) && count($data['records']) > 1) {
$params['version'] = 4;
... | php | public function insertRecords($data, $params = [], $options = [])
{
// if (!isset($params['duplicateCheck'])) {
// $params['duplicateCheck'] = 1;
// }
if (!isset($params['version']) && isset($data['records']) && count($data['records']) > 1) {
$params['version'] = 4;
... | [
"public",
"function",
"insertRecords",
"(",
"$",
"data",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"// if (!isset($params['duplicateCheck'])) {",
"// $params['duplicateCheck'] = 1;",
"// }",
"if",
"(",
"!",
"isset",
"("... | Implements insertRecords API method.
@param array $data xmlData represented as an array
array will be converted into XML before sending the request
@param array $params request parameters
wfTrigger Boolean Set value as true to trigger the workflow rule
while inserting record into CRM account. By defa... | [
"Implements",
"insertRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L380-L390 |
189,475 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.updateRecords | public function updateRecords($id, $data, $params = [], $options = [])
{
if (is_array($data) && count($data['records']) > 1) {
// Version 4 is mandatory for updating multiple records.
$params['version'] = 4;
} else {
if (empty($id)) {
throw new \In... | php | public function updateRecords($id, $data, $params = [], $options = [])
{
if (is_array($data) && count($data['records']) > 1) {
// Version 4 is mandatory for updating multiple records.
$params['version'] = 4;
} else {
if (empty($id)) {
throw new \In... | [
"public",
"function",
"updateRecords",
"(",
"$",
"id",
",",
"$",
"data",
",",
"$",
"params",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"is_array",
"(",
"$",
"data",
")",
"&&",
"count",
"(",
"$",
"data",
"[",
"'reco... | Implements updateRecords API method.
@param string $id unique ID of the record to be updated
@param array $data xmlData represented as an array
array will be converted into XML before sending the request
@param array $params request parameters
wfTrigger Boolean Set value as true to trigger the workf... | [
"Implements",
"updateRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L410-L423 |
189,476 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.updateRelatedRecords | public function updateRelatedRecords($id, $data, $params = array(), $options = array())
{
if (empty($id)) {
throw new \InvalidArgumentException('Record Id is required and cannot be empty.');
}
$params['id'] = $id;
return $this->call('updateRelatedRecords', $params, $data... | php | public function updateRelatedRecords($id, $data, $params = array(), $options = array())
{
if (empty($id)) {
throw new \InvalidArgumentException('Record Id is required and cannot be empty.');
}
$params['id'] = $id;
return $this->call('updateRelatedRecords', $params, $data... | [
"public",
"function",
"updateRelatedRecords",
"(",
"$",
"id",
",",
"$",
"data",
",",
"$",
"params",
"=",
"array",
"(",
")",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"id",
")",
")",
"{",
"throw",
"new",
... | Implements updateRelatedRecords API method.
@param string $id unique ID of the record to be updated
@param array $data xmlData represented as an array
array will be converted into XML before sending the request
@param array $params request parameters
relatedModule string Related Module name
newFormat ... | [
"Implements",
"updateRelatedRecords",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L442-L450 |
189,477 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.uploadFile | public function uploadFile($id, $content, $params = [])
{
if (empty($id)) {
throw new \InvalidArgumentException('Record Id is required and cannot be empty.');
}
$params['id'] = $id;
if (substr($content, 0, 4) === 'http') {
$params['attachmentUrl'] = $content;... | php | public function uploadFile($id, $content, $params = [])
{
if (empty($id)) {
throw new \InvalidArgumentException('Record Id is required and cannot be empty.');
}
$params['id'] = $id;
if (substr($content, 0, 4) === 'http') {
$params['attachmentUrl'] = $content;... | [
"public",
"function",
"uploadFile",
"(",
"$",
"id",
",",
"$",
"content",
",",
"$",
"params",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"id",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'Record Id is required and ca... | Implements uploadFile API method.
@param string $id unique ID of the record to be updated
@param file path $content Pass the File Input Stream of the file or URL
@param array $params request parameters
wfTrigger Boolean Set value as true to trigger the workflow rule
w... | [
"Implements",
"uploadFile",
"API",
"method",
"."
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L468-L485 |
189,478 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.toXML | public function toXML($data)
{
$root = isset($data['root']) ? $data['root'] : $this->module;
$no = 1;
$xml = '<'.$root.'>';
if (isset($data['options'])) {
$xml .= '<row no="'.$no.'">';
foreach ($data['options'] as $key => $value) {
$xml .= '<op... | php | public function toXML($data)
{
$root = isset($data['root']) ? $data['root'] : $this->module;
$no = 1;
$xml = '<'.$root.'>';
if (isset($data['options'])) {
$xml .= '<row no="'.$no.'">';
foreach ($data['options'] as $key => $value) {
$xml .= '<op... | [
"public",
"function",
"toXML",
"(",
"$",
"data",
")",
"{",
"$",
"root",
"=",
"isset",
"(",
"$",
"data",
"[",
"'root'",
"]",
")",
"?",
"$",
"data",
"[",
"'root'",
"]",
":",
"$",
"this",
"->",
"module",
";",
"$",
"no",
"=",
"1",
";",
"$",
"xml"... | Convert from array to XML
@param array $data Data to convert
@return XML | [
"Convert",
"from",
"array",
"to",
"XML"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L514-L551 |
189,479 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.mapEntity | public function mapEntity($entity, $entityName = null)
{
// It's module entity
if (is_null($entityName)) {
if (empty($this->module)) {
throw new \Exception('Invalid module, it must be set before mapping entity', 1);
}
$entityName = $this->module;
... | php | public function mapEntity($entity, $entityName = null)
{
// It's module entity
if (is_null($entityName)) {
if (empty($this->module)) {
throw new \Exception('Invalid module, it must be set before mapping entity', 1);
}
$entityName = $this->module;
... | [
"public",
"function",
"mapEntity",
"(",
"$",
"entity",
",",
"$",
"entityName",
"=",
"null",
")",
"{",
"// It's module entity",
"if",
"(",
"is_null",
"(",
"$",
"entityName",
")",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"module",
")",
")",
... | Convert an entity into XML
@param Element $entity Element
@param string $entityName Element name
@return string XML created
@throws \Exception | [
"Convert",
"an",
"entity",
"into",
"XML"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L561-L576 |
189,480 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.mapSingleEntity | protected function mapSingleEntity(Element $entity)
{
$element = new \ReflectionObject($entity);
$properties = $element->getProperties();
$xml = '';
foreach ($properties as $property) {
$propName = $property->getName();
$propValue = $entity->$propName;
... | php | protected function mapSingleEntity(Element $entity)
{
$element = new \ReflectionObject($entity);
$properties = $element->getProperties();
$xml = '';
foreach ($properties as $property) {
$propName = $property->getName();
$propValue = $entity->$propName;
... | [
"protected",
"function",
"mapSingleEntity",
"(",
"Element",
"$",
"entity",
")",
"{",
"$",
"element",
"=",
"new",
"\\",
"ReflectionObject",
"(",
"$",
"entity",
")",
";",
"$",
"properties",
"=",
"$",
"element",
"->",
"getProperties",
"(",
")",
";",
"$",
"x... | Convert single entity into XML
@param Element $entity Element
@return string XML created | [
"Convert",
"single",
"entity",
"into",
"XML"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L584-L620 |
189,481 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.mapEntityList | protected function mapEntityList(array $list, $rowElementName = null)
{
if (is_null($rowElementName)) {
$rowElementName = 'row';
}
$xml = '';
$no = 1;
foreach ($list as $element) {
$xml .= '<' . $rowElementName . ' no="' . $no++ . '">';
$xm... | php | protected function mapEntityList(array $list, $rowElementName = null)
{
if (is_null($rowElementName)) {
$rowElementName = 'row';
}
$xml = '';
$no = 1;
foreach ($list as $element) {
$xml .= '<' . $rowElementName . ' no="' . $no++ . '">';
$xm... | [
"protected",
"function",
"mapEntityList",
"(",
"array",
"$",
"list",
",",
"$",
"rowElementName",
"=",
"null",
")",
"{",
"if",
"(",
"is_null",
"(",
"$",
"rowElementName",
")",
")",
"{",
"$",
"rowElementName",
"=",
"'row'",
";",
"}",
"$",
"xml",
"=",
"''... | Convert list of entities into XML
@param array $list List of Elements
@param string $rowElementName Element name
@return string XML $list | [
"Convert",
"list",
"of",
"entities",
"into",
"XML"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L629-L643 |
189,482 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.call | protected function call($command, $params, $data = [], $options = [])
{
$uri = $this->getRequestURI($command);
$body = $this->getRequestBody($params, $data, $options);
$xml = $this->client->post($uri, $body); // Make the request to web service
return $this->factory->createResponse($x... | php | protected function call($command, $params, $data = [], $options = [])
{
$uri = $this->getRequestURI($command);
$body = $this->getRequestBody($params, $data, $options);
$xml = $this->client->post($uri, $body); // Make the request to web service
return $this->factory->createResponse($x... | [
"protected",
"function",
"call",
"(",
"$",
"command",
",",
"$",
"params",
",",
"$",
"data",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"uri",
"=",
"$",
"this",
"->",
"getRequestURI",
"(",
"$",
"command",
")",
";",
"$",
"b... | Make the call using the client
@param string $command Command to call
@param string $params Options
@param array $data Data to send [optional]
@param array $options Options to add for configurations [optional]
@return Response | [
"Make",
"the",
"call",
"using",
"the",
"client"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L655-L661 |
189,483 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.getRequestURI | protected function getRequestURI($command)
{
if (empty($this->module)) {
throw new \RuntimeException('Zoho CRM module is not set.');
}
$parts = [$this->baseUri, $this->format, $this->module, $command];
return implode('/', $parts);
} | php | protected function getRequestURI($command)
{
if (empty($this->module)) {
throw new \RuntimeException('Zoho CRM module is not set.');
}
$parts = [$this->baseUri, $this->format, $this->module, $command];
return implode('/', $parts);
} | [
"protected",
"function",
"getRequestURI",
"(",
"$",
"command",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"module",
")",
")",
"{",
"throw",
"new",
"\\",
"RuntimeException",
"(",
"'Zoho CRM module is not set.'",
")",
";",
"}",
"$",
"parts",
"=",
... | Get the current request uri
@param string $command Command for get uri
@return string | [
"Get",
"the",
"current",
"request",
"uri"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L670-L678 |
189,484 | mctekk/zohocrm | src/Zoho/CRM/ZohoClient.php | ZohoClient.getRequestBody | protected function getRequestBody($params, $data, $options)
{
$params['scope'] = 'crmapi';
$params['authtoken'] = $this->authtoken;
$params += ['newFormat' => 1]; //'version' => 2,
if (!empty($data)) {
$params['xmlData'] = (isset($options['map']) && $options['map']) ? $th... | php | protected function getRequestBody($params, $data, $options)
{
$params['scope'] = 'crmapi';
$params['authtoken'] = $this->authtoken;
$params += ['newFormat' => 1]; //'version' => 2,
if (!empty($data)) {
$params['xmlData'] = (isset($options['map']) && $options['map']) ? $th... | [
"protected",
"function",
"getRequestBody",
"(",
"$",
"params",
",",
"$",
"data",
",",
"$",
"options",
")",
"{",
"$",
"params",
"[",
"'scope'",
"]",
"=",
"'crmapi'",
";",
"$",
"params",
"[",
"'authtoken'",
"]",
"=",
"$",
"this",
"->",
"authtoken",
";",
... | Get the body of the request
@param array $params Params
@param object $data Data
@param mixed $options
@return string | [
"Get",
"the",
"body",
"of",
"the",
"request"
] | cba4e46d49aa32cc64225c1d3b4585cab38f6677 | https://github.com/mctekk/zohocrm/blob/cba4e46d49aa32cc64225c1d3b4585cab38f6677/src/Zoho/CRM/ZohoClient.php#L689-L703 |
189,485 | bpocallaghan/notify | src/Notify.php | Notify.info | public function info($title, $content, $icon = true, $iconSmall = true)
{
$this->message('info', $title, $content, $icon, $iconSmall);
} | php | public function info($title, $content, $icon = true, $iconSmall = true)
{
$this->message('info', $title, $content, $icon, $iconSmall);
} | [
"public",
"function",
"info",
"(",
"$",
"title",
",",
"$",
"content",
",",
"$",
"icon",
"=",
"true",
",",
"$",
"iconSmall",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"message",
"(",
"'info'",
",",
"$",
"title",
",",
"$",
"content",
",",
"$",
"ico... | Flash an info notification
@param $title
@param $content
@param bool|string $icon
@param bool|string $iconSmall | [
"Flash",
"an",
"info",
"notification"
] | 107291733d2412be9f619b7833f22cc043cf71a0 | https://github.com/bpocallaghan/notify/blob/107291733d2412be9f619b7833f22cc043cf71a0/src/Notify.php#L33-L36 |
189,486 | bpocallaghan/notify | src/Notify.php | Notify.success | public function success($title, $content, $icon = true, $iconSmall = true)
{
$this->message('success', $title, $content, $icon, $iconSmall);
} | php | public function success($title, $content, $icon = true, $iconSmall = true)
{
$this->message('success', $title, $content, $icon, $iconSmall);
} | [
"public",
"function",
"success",
"(",
"$",
"title",
",",
"$",
"content",
",",
"$",
"icon",
"=",
"true",
",",
"$",
"iconSmall",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"message",
"(",
"'success'",
",",
"$",
"title",
",",
"$",
"content",
",",
"$",
... | Flash a success notification
@param $title
@param $content
@param bool|string $icon
@param bool|string $iconSmall | [
"Flash",
"a",
"success",
"notification"
] | 107291733d2412be9f619b7833f22cc043cf71a0 | https://github.com/bpocallaghan/notify/blob/107291733d2412be9f619b7833f22cc043cf71a0/src/Notify.php#L46-L49 |
189,487 | bpocallaghan/notify | src/Notify.php | Notify.error | public function error($title, $content, $icon = true, $iconSmall = true)
{
$this->message('danger', $title, $content, $icon, $iconSmall);
} | php | public function error($title, $content, $icon = true, $iconSmall = true)
{
$this->message('danger', $title, $content, $icon, $iconSmall);
} | [
"public",
"function",
"error",
"(",
"$",
"title",
",",
"$",
"content",
",",
"$",
"icon",
"=",
"true",
",",
"$",
"iconSmall",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"message",
"(",
"'danger'",
",",
"$",
"title",
",",
"$",
"content",
",",
"$",
"... | Flash an error notification
@param $title
@param $content
@param bool|string $icon
@param bool|string $iconSmall | [
"Flash",
"an",
"error",
"notification"
] | 107291733d2412be9f619b7833f22cc043cf71a0 | https://github.com/bpocallaghan/notify/blob/107291733d2412be9f619b7833f22cc043cf71a0/src/Notify.php#L59-L62 |
189,488 | bpocallaghan/notify | src/Notify.php | Notify.danger | public function danger($title, $content, $icon = true, $iconSmall = true)
{
$this->message('danger', $title, $content, $icon, $iconSmall);
} | php | public function danger($title, $content, $icon = true, $iconSmall = true)
{
$this->message('danger', $title, $content, $icon, $iconSmall);
} | [
"public",
"function",
"danger",
"(",
"$",
"title",
",",
"$",
"content",
",",
"$",
"icon",
"=",
"true",
",",
"$",
"iconSmall",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"message",
"(",
"'danger'",
",",
"$",
"title",
",",
"$",
"content",
",",
"$",
... | Flash an danger notification
@param $title
@param $content
@param bool|string $icon
@param bool|string $iconSmall | [
"Flash",
"an",
"danger",
"notification"
] | 107291733d2412be9f619b7833f22cc043cf71a0 | https://github.com/bpocallaghan/notify/blob/107291733d2412be9f619b7833f22cc043cf71a0/src/Notify.php#L72-L75 |
189,489 | bpocallaghan/notify | src/Notify.php | Notify.message | public function message(
$level = 'info',
$title,
$content,
$icon,
$iconSmall,
$timeout = 5000
) {
$this->session->flash('notify.level', $level);
$this->session->flash('notify.title', $title);
$this->session->flash('notify.content', $content);
... | php | public function message(
$level = 'info',
$title,
$content,
$icon,
$iconSmall,
$timeout = 5000
) {
$this->session->flash('notify.level', $level);
$this->session->flash('notify.title', $title);
$this->session->flash('notify.content', $content);
... | [
"public",
"function",
"message",
"(",
"$",
"level",
"=",
"'info'",
",",
"$",
"title",
",",
"$",
"content",
",",
"$",
"icon",
",",
"$",
"iconSmall",
",",
"$",
"timeout",
"=",
"5000",
")",
"{",
"$",
"this",
"->",
"session",
"->",
"flash",
"(",
"'noti... | Flash a notification message
@param string $level
@param $title
@param $content
@param bool|string $icon
@param $iconSmall
@param int $timeout | [
"Flash",
"a",
"notification",
"message"
] | 107291733d2412be9f619b7833f22cc043cf71a0 | https://github.com/bpocallaghan/notify/blob/107291733d2412be9f619b7833f22cc043cf71a0/src/Notify.php#L100-L129 |
189,490 | trntv/yii2-glide | src/components/Glide.php | Glide.getFilesystemProperty | protected function getFilesystemProperty($property)
{
$path = $property . 'Path';
if (!$this->$property && $this->$path) {
$this->$property = new Filesystem(
new Local(Yii::getAlias($this->$path))
);
}
return $this->$property;
} | php | protected function getFilesystemProperty($property)
{
$path = $property . 'Path';
if (!$this->$property && $this->$path) {
$this->$property = new Filesystem(
new Local(Yii::getAlias($this->$path))
);
}
return $this->$property;
} | [
"protected",
"function",
"getFilesystemProperty",
"(",
"$",
"property",
")",
"{",
"$",
"path",
"=",
"$",
"property",
".",
"'Path'",
";",
"if",
"(",
"!",
"$",
"this",
"->",
"$",
"property",
"&&",
"$",
"this",
"->",
"$",
"path",
")",
"{",
"$",
"this",
... | Get file system for property.
@var string $property
@return FilesystemInterface The filesystem object | [
"Get",
"file",
"system",
"for",
"property",
"."
] | a2a0fed9d236ef274a8297d01d0124bf1afe1f91 | https://github.com/trntv/yii2-glide/blob/a2a0fed9d236ef274a8297d01d0124bf1afe1f91/src/components/Glide.php#L221-L231 |
189,491 | trntv/yii2-glide | src/components/Glide.php | Glide.getApi | public function getApi()
{
$imageManager = new ImageManager([
'driver' => extension_loaded('imagick') ? 'imagick' : 'gd'
]);
$manipulators = [
new Size($this->maxImageSize),
new Orientation(),
new Crop(),
new Brightness(),
... | php | public function getApi()
{
$imageManager = new ImageManager([
'driver' => extension_loaded('imagick') ? 'imagick' : 'gd'
]);
$manipulators = [
new Size($this->maxImageSize),
new Orientation(),
new Crop(),
new Brightness(),
... | [
"public",
"function",
"getApi",
"(",
")",
"{",
"$",
"imageManager",
"=",
"new",
"ImageManager",
"(",
"[",
"'driver'",
"=>",
"extension_loaded",
"(",
"'imagick'",
")",
"?",
"'imagick'",
":",
"'gd'",
"]",
")",
";",
"$",
"manipulators",
"=",
"[",
"new",
"Si... | Get image manipulation API.
@return Api | [
"Get",
"image",
"manipulation",
"API",
"."
] | a2a0fed9d236ef274a8297d01d0124bf1afe1f91 | https://github.com/trntv/yii2-glide/blob/a2a0fed9d236ef274a8297d01d0124bf1afe1f91/src/components/Glide.php#L255-L279 |
189,492 | protobuf-php/protobuf-plugin | src/Generator/Message/ReadFieldStatementGenerator.php | ReadFieldStatementGenerator.generateReadScalarStatement | protected function generateReadScalarStatement($type)
{
$mapping = [
Type::TYPE_INT32_VALUE => '$reader->readVarint($stream)',
Type::TYPE_INT64_VALUE => '$reader->readVarint($stream)',
Type::TYPE_UINT64_VALUE => '$reader->readVarint($stream)',
Type::TY... | php | protected function generateReadScalarStatement($type)
{
$mapping = [
Type::TYPE_INT32_VALUE => '$reader->readVarint($stream)',
Type::TYPE_INT64_VALUE => '$reader->readVarint($stream)',
Type::TYPE_UINT64_VALUE => '$reader->readVarint($stream)',
Type::TY... | [
"protected",
"function",
"generateReadScalarStatement",
"(",
"$",
"type",
")",
"{",
"$",
"mapping",
"=",
"[",
"Type",
"::",
"TYPE_INT32_VALUE",
"=>",
"'$reader->readVarint($stream)'",
",",
"Type",
"::",
"TYPE_INT64_VALUE",
"=>",
"'$reader->readVarint($stream)'",
",",
... | read a scalar value.
@param integer $type
@return string | [
"read",
"a",
"scalar",
"value",
"."
] | 1d7cff7fa382060d14618208d379e6a5f8fb1f5a | https://github.com/protobuf-php/protobuf-plugin/blob/1d7cff7fa382060d14618208d379e6a5f8fb1f5a/src/Generator/Message/ReadFieldStatementGenerator.php#L183-L209 |
189,493 | protobuf-php/protobuf-plugin | src/Generator/BaseGenerator.php | BaseGenerator.getComputeSizeMetadata | public function getComputeSizeMetadata($type)
{
$data = [
'method' => null,
'size' => null
];
$dynamicMapping = [
Type::TYPE_INT32_VALUE => 'computeVarintSize',
Type::TYPE_INT64_VALUE => 'computeVarintSize',
Type::TYPE_UINT64_V... | php | public function getComputeSizeMetadata($type)
{
$data = [
'method' => null,
'size' => null
];
$dynamicMapping = [
Type::TYPE_INT32_VALUE => 'computeVarintSize',
Type::TYPE_INT64_VALUE => 'computeVarintSize',
Type::TYPE_UINT64_V... | [
"public",
"function",
"getComputeSizeMetadata",
"(",
"$",
"type",
")",
"{",
"$",
"data",
"=",
"[",
"'method'",
"=>",
"null",
",",
"'size'",
"=>",
"null",
"]",
";",
"$",
"dynamicMapping",
"=",
"[",
"Type",
"::",
"TYPE_INT32_VALUE",
"=>",
"'computeVarintSize'"... | compute value size
@param string $type
@return string | [
"compute",
"value",
"size"
] | 1d7cff7fa382060d14618208d379e6a5f8fb1f5a | https://github.com/protobuf-php/protobuf-plugin/blob/1d7cff7fa382060d14618208d379e6a5f8fb1f5a/src/Generator/BaseGenerator.php#L364-L439 |
189,494 | protobuf-php/protobuf-plugin | src/Generator/BaseGenerator.php | BaseGenerator.generateValueSizeStatement | public function generateValueSizeStatement($type, $value)
{
$metadata = $this->getComputeSizeMetadata($type);
$method = $metadata['method'];
$size = $metadata['size'];
if ($size !== null) {
return $size;
}
return sprintf('$calculator->%s(%s)', $met... | php | public function generateValueSizeStatement($type, $value)
{
$metadata = $this->getComputeSizeMetadata($type);
$method = $metadata['method'];
$size = $metadata['size'];
if ($size !== null) {
return $size;
}
return sprintf('$calculator->%s(%s)', $met... | [
"public",
"function",
"generateValueSizeStatement",
"(",
"$",
"type",
",",
"$",
"value",
")",
"{",
"$",
"metadata",
"=",
"$",
"this",
"->",
"getComputeSizeMetadata",
"(",
"$",
"type",
")",
";",
"$",
"method",
"=",
"$",
"metadata",
"[",
"'method'",
"]",
"... | Compute value size
@param integer $type
@param string $value
@return string | [
"Compute",
"value",
"size"
] | 1d7cff7fa382060d14618208d379e6a5f8fb1f5a | https://github.com/protobuf-php/protobuf-plugin/blob/1d7cff7fa382060d14618208d379e6a5f8fb1f5a/src/Generator/BaseGenerator.php#L460-L471 |
189,495 | protobuf-php/protobuf-plugin | src/Protoc/ProcessBuilder.php | ProcessBuilder.assertVersion | public function assertVersion()
{
$process = $this->createProtocVersionProcess();
// Check if protoc is available
$process->mustRun();
$return = $process->getExitCode();
$result = trim($process->getOutput());
if (0 !== $return && 1 !== $return) {
throw ... | php | public function assertVersion()
{
$process = $this->createProtocVersionProcess();
// Check if protoc is available
$process->mustRun();
$return = $process->getExitCode();
$result = trim($process->getOutput());
if (0 !== $return && 1 !== $return) {
throw ... | [
"public",
"function",
"assertVersion",
"(",
")",
"{",
"$",
"process",
"=",
"$",
"this",
"->",
"createProtocVersionProcess",
"(",
")",
";",
"// Check if protoc is available",
"$",
"process",
"->",
"mustRun",
"(",
")",
";",
"$",
"return",
"=",
"$",
"process",
... | Assert min protoc version.
@throws \UnexpectedValueException Indicates a problem with protoc. | [
"Assert",
"min",
"protoc",
"version",
"."
] | 1d7cff7fa382060d14618208d379e6a5f8fb1f5a | https://github.com/protobuf-php/protobuf-plugin/blob/1d7cff7fa382060d14618208d379e6a5f8fb1f5a/src/Protoc/ProcessBuilder.php#L77-L98 |
189,496 | bdelespierre/php-underscore | src/Underscore/Contrib/Database.php | Database.connection | public static function connection($name, $definition = null)
{
if (empty($definition))
return static::get(static::$pool, $name);
if (static::isScalar($definition))
list(, $dsn, $username, $password, $options) = func_get_args() + [null, '', '', '', []];
else
extract(static::pick($definition, ['dsn', 'us... | php | public static function connection($name, $definition = null)
{
if (empty($definition))
return static::get(static::$pool, $name);
if (static::isScalar($definition))
list(, $dsn, $username, $password, $options) = func_get_args() + [null, '', '', '', []];
else
extract(static::pick($definition, ['dsn', 'us... | [
"public",
"static",
"function",
"connection",
"(",
"$",
"name",
",",
"$",
"definition",
"=",
"null",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"definition",
")",
")",
"return",
"static",
"::",
"get",
"(",
"static",
"::",
"$",
"pool",
",",
"$",
"name",
... | Get an existing database connection or initialize a new one. Database connections are managed as PDO instances.
If such instance doesn't exists or could not be initialized, will return NULL.
@category Database Functions
@param string $name the connection name
@param array,scalar $definition multiple, the equivalent o... | [
"Get",
"an",
"existing",
"database",
"connection",
"or",
"initialize",
"a",
"new",
"one",
".",
"Database",
"connections",
"are",
"managed",
"as",
"PDO",
"instances",
".",
"If",
"such",
"instance",
"doesn",
"t",
"exists",
"or",
"could",
"not",
"be",
"initiali... | 639041f28224b52fd0cb3f0cc3000fb63f7cce48 | https://github.com/bdelespierre/php-underscore/blob/639041f28224b52fd0cb3f0cc3000fb63f7cce48/src/Underscore/Contrib/Database.php#L46-L57 |
189,497 | bdelespierre/php-underscore | src/Underscore/Contrib/Database.php | Database.usingConnectionAttributes | public static function usingConnectionAttributes($connection, $attributes, callable $function, $context = null)
{
static::_connection($connection);
static::_associate($function, $context);
return function() use ($connection, $function) {
$previous = static::setConnectionAttributes($connection, $attributes);
... | php | public static function usingConnectionAttributes($connection, $attributes, callable $function, $context = null)
{
static::_connection($connection);
static::_associate($function, $context);
return function() use ($connection, $function) {
$previous = static::setConnectionAttributes($connection, $attributes);
... | [
"public",
"static",
"function",
"usingConnectionAttributes",
"(",
"$",
"connection",
",",
"$",
"attributes",
",",
"callable",
"$",
"function",
",",
"$",
"context",
"=",
"null",
")",
"{",
"static",
"::",
"_connection",
"(",
"$",
"connection",
")",
";",
"stati... | Wraps the given function so the connection attributes will be set before the function execution and restored
after that. The previous attribute states are restored even if an exception occurs during function execution
so this function is garanteed to not tamper with the connection state. Returns the function's returned... | [
"Wraps",
"the",
"given",
"function",
"so",
"the",
"connection",
"attributes",
"will",
"be",
"set",
"before",
"the",
"function",
"execution",
"and",
"restored",
"after",
"that",
".",
"The",
"previous",
"attribute",
"states",
"are",
"restored",
"even",
"if",
"an... | 639041f28224b52fd0cb3f0cc3000fb63f7cce48 | https://github.com/bdelespierre/php-underscore/blob/639041f28224b52fd0cb3f0cc3000fb63f7cce48/src/Underscore/Contrib/Database.php#L92-L105 |
189,498 | bdelespierre/php-underscore | src/Underscore/Contrib/Database.php | Database.transaction | public static function transaction($connection, callable $function, $context = null)
{
static::_connection($connection);
static::_associate($function, $context);
return function() use ($connection, $function) {
if (!$connection->beginTransaction())
throw new \RuntimeException("unable to begin transaction... | php | public static function transaction($connection, callable $function, $context = null)
{
static::_connection($connection);
static::_associate($function, $context);
return function() use ($connection, $function) {
if (!$connection->beginTransaction())
throw new \RuntimeException("unable to begin transaction... | [
"public",
"static",
"function",
"transaction",
"(",
"$",
"connection",
",",
"callable",
"$",
"function",
",",
"$",
"context",
"=",
"null",
")",
"{",
"static",
"::",
"_connection",
"(",
"$",
"connection",
")",
";",
"static",
"::",
"_associate",
"(",
"$",
... | Wraps the function inside a transaction-safe function. The transaction will be rolled-back if the wrapped
function returns FALSE or throws any exception, otherwise it will be committed. The wrapper function returns
true if the transaction was sucessfully comited, false otherwise. If the transaction cannot be started, c... | [
"Wraps",
"the",
"function",
"inside",
"a",
"transaction",
"-",
"safe",
"function",
".",
"The",
"transaction",
"will",
"be",
"rolled",
"-",
"back",
"if",
"the",
"wrapped",
"function",
"returns",
"FALSE",
"or",
"throws",
"any",
"exception",
"otherwise",
"it",
... | 639041f28224b52fd0cb3f0cc3000fb63f7cce48 | https://github.com/bdelespierre/php-underscore/blob/639041f28224b52fd0cb3f0cc3000fb63f7cce48/src/Underscore/Contrib/Database.php#L188-L217 |
189,499 | bdelespierre/php-underscore | src/Underscore/Contrib/Database.php | Database._connection | protected static function _connection(& $connection)
{
if (static::isString($connection))
$connection = static::connection($connection);
if (!$connection instanceof \PDO)
throw new \InvalidArgumentException("invalid connection");
} | php | protected static function _connection(& $connection)
{
if (static::isString($connection))
$connection = static::connection($connection);
if (!$connection instanceof \PDO)
throw new \InvalidArgumentException("invalid connection");
} | [
"protected",
"static",
"function",
"_connection",
"(",
"&",
"$",
"connection",
")",
"{",
"if",
"(",
"static",
"::",
"isString",
"(",
"$",
"connection",
")",
")",
"$",
"connection",
"=",
"static",
"::",
"connection",
"(",
"$",
"connection",
")",
";",
"if"... | Transform the connection into a PDO instance. Throw if the connection is invalid or isn't registered.
@category Internal Functions
@param string,PDO $connection the database connection name or PDO instance
@return void | [
"Transform",
"the",
"connection",
"into",
"a",
"PDO",
"instance",
".",
"Throw",
"if",
"the",
"connection",
"is",
"invalid",
"or",
"isn",
"t",
"registered",
"."
] | 639041f28224b52fd0cb3f0cc3000fb63f7cce48 | https://github.com/bdelespierre/php-underscore/blob/639041f28224b52fd0cb3f0cc3000fb63f7cce48/src/Underscore/Contrib/Database.php#L228-L235 |
Subsets and Splits
Yii Code Samples
Gathers all records from test, train, and validation sets that contain the word 'yii', providing a basic filtered view of the dataset relevant to Yii-related content.