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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
30,300 | SIELOnline/libAcumulus | src/Magento/Helpers/FormMapper.php | FormMapper.field | public function field($parent, array $field)
{
if (!isset($field['attributes'])) {
$field['attributes'] = array();
}
$magentoType = $this->getMagentoType($field);
$magentoElementSettings = $this->getMagentoElementSettings($field);
$element = $parent->addField($fie... | php | public function field($parent, array $field)
{
if (!isset($field['attributes'])) {
$field['attributes'] = array();
}
$magentoType = $this->getMagentoType($field);
$magentoElementSettings = $this->getMagentoElementSettings($field);
$element = $parent->addField($fie... | [
"public",
"function",
"field",
"(",
"$",
"parent",
",",
"array",
"$",
"field",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"field",
"[",
"'attributes'",
"]",
")",
")",
"{",
"$",
"field",
"[",
"'attributes'",
"]",
"=",
"array",
"(",
")",
";",
"}"... | Maps a single field definition.
@param \Varien_Data_Form_Abstract|\Magento\Framework\Data\Form\AbstractForm $parent
@param array $field | [
"Maps",
"a",
"single",
"field",
"definition",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Helpers/FormMapper.php#L72-L98 |
30,301 | SIELOnline/libAcumulus | src/Magento/Helpers/FormMapper.php | FormMapper.getMagentoType | protected function getMagentoType(array $field)
{
switch ($field['type']) {
case 'email':
case 'number':
$type = 'text';
break;
case 'markup':
$type = 'note';
break;
case 'radio':
... | php | protected function getMagentoType(array $field)
{
switch ($field['type']) {
case 'email':
case 'number':
$type = 'text';
break;
case 'markup':
$type = 'note';
break;
case 'radio':
... | [
"protected",
"function",
"getMagentoType",
"(",
"array",
"$",
"field",
")",
"{",
"switch",
"(",
"$",
"field",
"[",
"'type'",
"]",
")",
"{",
"case",
"'email'",
":",
"case",
"'number'",
":",
"$",
"type",
"=",
"'text'",
";",
"break",
";",
"case",
"'markup... | Returns the Magento form element type for the given Acumulus type string.
@param array $field
@return string | [
"Returns",
"the",
"Magento",
"form",
"element",
"type",
"for",
"the",
"given",
"Acumulus",
"type",
"string",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Helpers/FormMapper.php#L107-L135 |
30,302 | SIELOnline/libAcumulus | src/Magento/Helpers/FormMapper.php | FormMapper.getMagentoElementSettings | protected function getMagentoElementSettings(array $field)
{
$config = array();
if ($field['type'] === 'details') {
$config['collapsable'] = true;
$config['opened'] = false;
}
foreach ($field as $key => $value) {
$config += $this->getMagentoPrope... | php | protected function getMagentoElementSettings(array $field)
{
$config = array();
if ($field['type'] === 'details') {
$config['collapsable'] = true;
$config['opened'] = false;
}
foreach ($field as $key => $value) {
$config += $this->getMagentoPrope... | [
"protected",
"function",
"getMagentoElementSettings",
"(",
"array",
"$",
"field",
")",
"{",
"$",
"config",
"=",
"array",
"(",
")",
";",
"if",
"(",
"$",
"field",
"[",
"'type'",
"]",
"===",
"'details'",
")",
"{",
"$",
"config",
"[",
"'collapsable'",
"]",
... | Returns the Magento form element settings.
@param array $field
The Acumulus field settings.
@return array
The Magento form element settings. | [
"Returns",
"the",
"Magento",
"form",
"element",
"settings",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Helpers/FormMapper.php#L146-L159 |
30,303 | SIELOnline/libAcumulus | src/Magento/Helpers/FormMapper.php | FormMapper.getMagentoProperty | protected function getMagentoProperty($key, $value, $type)
{
switch ($key) {
// Fields to ignore:
case 'type':
case 'id':
case 'fields':
$result = array();
break;
case 'summary':
$result = array('lege... | php | protected function getMagentoProperty($key, $value, $type)
{
switch ($key) {
// Fields to ignore:
case 'type':
case 'id':
case 'fields':
$result = array();
break;
case 'summary':
$result = array('lege... | [
"protected",
"function",
"getMagentoProperty",
"(",
"$",
"key",
",",
"$",
"value",
",",
"$",
"type",
")",
"{",
"switch",
"(",
"$",
"key",
")",
"{",
"// Fields to ignore:",
"case",
"'type'",
":",
"case",
"'id'",
":",
"case",
"'fields'",
":",
"$",
"result"... | Converts an Acumulus settings to a Magento setting.
@param string $key
The name of the setting to convert.
@param mixed $value
The value for the setting to convert.
@param string $type
The Acumulus field type.
@return array
The Magento setting. This will typically contain 1 element, but in some
cases 1 Acumulus field... | [
"Converts",
"an",
"Acumulus",
"settings",
"to",
"a",
"Magento",
"setting",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Helpers/FormMapper.php#L175-L239 |
30,304 | SIELOnline/libAcumulus | src/Magento/Helpers/FormMapper.php | FormMapper.getMagentoOptions | protected function getMagentoOptions(array $options)
{
$result = array();
foreach ($options as $value => $label) {
$result[] = array(
'value' => $value,
'label' => $label,
);
}
return $result;
} | php | protected function getMagentoOptions(array $options)
{
$result = array();
foreach ($options as $value => $label) {
$result[] = array(
'value' => $value,
'label' => $label,
);
}
return $result;
} | [
"protected",
"function",
"getMagentoOptions",
"(",
"array",
"$",
"options",
")",
"{",
"$",
"result",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"options",
"as",
"$",
"value",
"=>",
"$",
"label",
")",
"{",
"$",
"result",
"[",
"]",
"=",
"array",... | Converts a list of Acumulus field options to a list of Magento options.
@param array $options
@return array
A list of Magento form element options. | [
"Converts",
"a",
"list",
"of",
"Acumulus",
"field",
"options",
"to",
"a",
"list",
"of",
"Magento",
"options",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Helpers/FormMapper.php#L249-L259 |
30,305 | SIELOnline/libAcumulus | src/PrestaShop/Invoice/Source.php | Source.setId | protected function setId()
{
$this->id = $this->source->id;
if ($this->getType() === Source::CreditNote) {
$this->addProperties();
}
} | php | protected function setId()
{
$this->id = $this->source->id;
if ($this->getType() === Source::CreditNote) {
$this->addProperties();
}
} | [
"protected",
"function",
"setId",
"(",
")",
"{",
"$",
"this",
"->",
"id",
"=",
"$",
"this",
"->",
"source",
"->",
"id",
";",
"if",
"(",
"$",
"this",
"->",
"getType",
"(",
")",
"===",
"Source",
"::",
"CreditNote",
")",
"{",
"$",
"this",
"->",
"add... | Sets the id based on the loaded Order. | [
"Sets",
"the",
"id",
"based",
"on",
"the",
"loaded",
"Order",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/PrestaShop/Invoice/Source.php#L55-L61 |
30,306 | ipunkt/rancherize | app/Blueprint/Volumes/VolumeService/VolumeService.php | VolumeService.parse | public function parse( Configuration $configuration, Service $mainService ) {
if( !$configuration->has('volumes') )
return;
$volumesDefinition = $configuration->get( 'volumes' );
foreach( $volumesDefinition as $key => $data ) {
$type = 'object';
if( is_string($data) )
$type = 'string';
$volume... | php | public function parse( Configuration $configuration, Service $mainService ) {
if( !$configuration->has('volumes') )
return;
$volumesDefinition = $configuration->get( 'volumes' );
foreach( $volumesDefinition as $key => $data ) {
$type = 'object';
if( is_string($data) )
$type = 'string';
$volume... | [
"public",
"function",
"parse",
"(",
"Configuration",
"$",
"configuration",
",",
"Service",
"$",
"mainService",
")",
"{",
"if",
"(",
"!",
"$",
"configuration",
"->",
"has",
"(",
"'volumes'",
")",
")",
"return",
";",
"$",
"volumesDefinition",
"=",
"$",
"conf... | Parse configuration and add volumes
@param Configuration $configuration
@param Service $mainService | [
"Parse",
"configuration",
"and",
"add",
"volumes"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Blueprint/Volumes/VolumeService/VolumeService.php#L39-L58 |
30,307 | ipunkt/rancherize | app/Blueprint/Volumes/VolumeService/VolumeService.php | VolumeService.applyToSidekicks | private function applyToSidekicks( Service $mainService, Volume $volume ) {
if( ! $this->onSidekicks )
return;
foreach( $mainService->getSidekicks() as $sidekick )
$sidekick->addVolume($volume);
} | php | private function applyToSidekicks( Service $mainService, Volume $volume ) {
if( ! $this->onSidekicks )
return;
foreach( $mainService->getSidekicks() as $sidekick )
$sidekick->addVolume($volume);
} | [
"private",
"function",
"applyToSidekicks",
"(",
"Service",
"$",
"mainService",
",",
"Volume",
"$",
"volume",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"onSidekicks",
")",
"return",
";",
"foreach",
"(",
"$",
"mainService",
"->",
"getSidekicks",
"(",
")",... | Applies the volumes to sidekicks of the mainService
In Rancher this could be done through volumes-from
with docker-compose volumes-from tends to create circular dependency problems
@param Service $mainService
@param Volume $volume | [
"Applies",
"the",
"volumes",
"to",
"sidekicks",
"of",
"the",
"mainService"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Blueprint/Volumes/VolumeService/VolumeService.php#L78-L84 |
30,308 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.retrieveConfig | public function retrieveConfig(string $stackName) : array {
$stackId = $this->getStackIdByName($stackName);
$url = implode('/', [
$this->account->getUrl(),
'environments',
$stackId,
'?action=exportconfig'
]);
$headers = [];
$this->addAuthHeader($headers);
$jsonContent = json_encode([
'se... | php | public function retrieveConfig(string $stackName) : array {
$stackId = $this->getStackIdByName($stackName);
$url = implode('/', [
$this->account->getUrl(),
'environments',
$stackId,
'?action=exportconfig'
]);
$headers = [];
$this->addAuthHeader($headers);
$jsonContent = json_encode([
'se... | [
"public",
"function",
"retrieveConfig",
"(",
"string",
"$",
"stackName",
")",
":",
"array",
"{",
"$",
"stackId",
"=",
"$",
"this",
"->",
"getStackIdByName",
"(",
"$",
"stackName",
")",
";",
"$",
"url",
"=",
"implode",
"(",
"'/'",
",",
"[",
"$",
"this",... | Retrieve the docker-compose.yml and rancher-compose.yml for the given stack
@param string $stackName
@return array | [
"Retrieve",
"the",
"docker",
"-",
"compose",
".",
"yml",
"and",
"rancher",
"-",
"compose",
".",
"yml",
"for",
"the",
"given",
"stack"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L77-L108 |
30,309 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.getStackIdByName | private function getStackIdByName($stackName) {
$url = implode('/', [
$this->account->getUrl(),
'environments'
]);
$headers = [];
$this->addAuthHeader($headers);
$jsonData = $this->apiService->get($url, $headers);
$data = json_decode($jsonData, true);
if( !array_key_exists('data', $data) )
thro... | php | private function getStackIdByName($stackName) {
$url = implode('/', [
$this->account->getUrl(),
'environments'
]);
$headers = [];
$this->addAuthHeader($headers);
$jsonData = $this->apiService->get($url, $headers);
$data = json_decode($jsonData, true);
if( !array_key_exists('data', $data) )
thro... | [
"private",
"function",
"getStackIdByName",
"(",
"$",
"stackName",
")",
"{",
"$",
"url",
"=",
"implode",
"(",
"'/'",
",",
"[",
"$",
"this",
"->",
"account",
"->",
"getUrl",
"(",
")",
",",
"'environments'",
"]",
")",
";",
"$",
"headers",
"=",
"[",
"]",... | Translate the given Stackname into an id.
Throws StackNotFoundException if no matching stack was found
@param $stackName
@return string
@throws StackNotFoundException | [
"Translate",
"the",
"given",
"Stackname",
"into",
"an",
"id",
".",
"Throws",
"StackNotFoundException",
"if",
"no",
"matching",
"stack",
"was",
"found"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L118-L140 |
30,310 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.addAuthHeader | protected function addAuthHeader(&$headers) {
$user = $this->account->getKey();
$password = $this->account->getSecret();
$headers['Authorization'] = 'Basic ' . base64_encode("$user:$password");
} | php | protected function addAuthHeader(&$headers) {
$user = $this->account->getKey();
$password = $this->account->getSecret();
$headers['Authorization'] = 'Basic ' . base64_encode("$user:$password");
} | [
"protected",
"function",
"addAuthHeader",
"(",
"&",
"$",
"headers",
")",
"{",
"$",
"user",
"=",
"$",
"this",
"->",
"account",
"->",
"getKey",
"(",
")",
";",
"$",
"password",
"=",
"$",
"this",
"->",
"account",
"->",
"getSecret",
"(",
")",
";",
"$",
... | Helper function to add the basic auth header required to access the api to the array of headers provided
@param $headers | [
"Helper",
"function",
"to",
"add",
"the",
"basic",
"auth",
"header",
"required",
"to",
"access",
"the",
"api",
"to",
"the",
"array",
"of",
"headers",
"provided"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L147-L152 |
30,311 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.createStack | public function createStack(string $stackName, $dockerCompose = null, $rancherCompose = null) {
if($dockerCompose === null)
$dockerCompose = '';
if($rancherCompose === null)
$rancherCompose = '';
$url = implode('/', [
$this->account->getUrl(),
'environments'
]);
$headers = [];
$this->addAuthH... | php | public function createStack(string $stackName, $dockerCompose = null, $rancherCompose = null) {
if($dockerCompose === null)
$dockerCompose = '';
if($rancherCompose === null)
$rancherCompose = '';
$url = implode('/', [
$this->account->getUrl(),
'environments'
]);
$headers = [];
$this->addAuthH... | [
"public",
"function",
"createStack",
"(",
"string",
"$",
"stackName",
",",
"$",
"dockerCompose",
"=",
"null",
",",
"$",
"rancherCompose",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"dockerCompose",
"===",
"null",
")",
"$",
"dockerCompose",
"=",
"''",
";",
"i... | Prompt Rnacher to create a stack with the given name using the provided dockerCompose and rancherCompose files
@param string $stackName
@param null $dockerCompose
@param null $rancherCompose | [
"Prompt",
"Rnacher",
"to",
"create",
"a",
"stack",
"with",
"the",
"given",
"name",
"using",
"the",
"provided",
"dockerCompose",
"and",
"rancherCompose",
"files"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L161-L186 |
30,312 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.start | public function start(string $directory, string $stackName, array $serviceNames = null, bool $upgrade = false, bool $forcedUpgrade = false) {
if($serviceNames === null)
$serviceNames = [];
if( !is_array($serviceNames) )
$serviceNames = [$serviceNames];
$url = $this->getUrl();
$account = $this->account;
... | php | public function start(string $directory, string $stackName, array $serviceNames = null, bool $upgrade = false, bool $forcedUpgrade = false) {
if($serviceNames === null)
$serviceNames = [];
if( !is_array($serviceNames) )
$serviceNames = [$serviceNames];
$url = $this->getUrl();
$account = $this->account;
... | [
"public",
"function",
"start",
"(",
"string",
"$",
"directory",
",",
"string",
"$",
"stackName",
",",
"array",
"$",
"serviceNames",
"=",
"null",
",",
"bool",
"$",
"upgrade",
"=",
"false",
",",
"bool",
"$",
"forcedUpgrade",
"=",
"false",
")",
"{",
"if",
... | Start the currently built configuration inside the given rancher stack
@param string $directory
@param string $stackName
@param array $serviceNames only start a certain service
@param bool $upgrade
@param bool $forcedUpgrade | [
"Start",
"the",
"currently",
"built",
"configuration",
"inside",
"the",
"given",
"rancher",
"stack"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L215-L269 |
30,313 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.confirm | public function confirm(string $directory, string $stackName, array $serviceNames = null) {
if($serviceNames === null)
$serviceNames = [];
if( !is_array($serviceNames) )
$serviceNames = [$serviceNames];
$url = $this->getUrl();
$command = [
$this->account->getRancherCompose(), "-f", "$directory/docker-... | php | public function confirm(string $directory, string $stackName, array $serviceNames = null) {
if($serviceNames === null)
$serviceNames = [];
if( !is_array($serviceNames) )
$serviceNames = [$serviceNames];
$url = $this->getUrl();
$command = [
$this->account->getRancherCompose(), "-f", "$directory/docker-... | [
"public",
"function",
"confirm",
"(",
"string",
"$",
"directory",
",",
"string",
"$",
"stackName",
",",
"array",
"$",
"serviceNames",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"serviceNames",
"===",
"null",
")",
"$",
"serviceNames",
"=",
"[",
"]",
";",
"i... | Confirm an in-service upgrade
@param string $directory
@param string $stackName
@param array $serviceNames only start a certain service | [
"Confirm",
"an",
"in",
"-",
"service",
"upgrade"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L278-L303 |
30,314 | ipunkt/rancherize | app/RancherAccess/RancherService.php | RancherService.upgrade | public function upgrade(string $directory, string $stackName, string $activeService, string $replacementService) {
$baseCommand = [
$this->account->getRancherCompose(), "-f", "$directory/docker-compose.yml", '-r', "$directory/rancher-compose.yml", '-p', $stackName
];
$commands = [
'upgrade' => array_merge... | php | public function upgrade(string $directory, string $stackName, string $activeService, string $replacementService) {
$baseCommand = [
$this->account->getRancherCompose(), "-f", "$directory/docker-compose.yml", '-r', "$directory/rancher-compose.yml", '-p', $stackName
];
$commands = [
'upgrade' => array_merge... | [
"public",
"function",
"upgrade",
"(",
"string",
"$",
"directory",
",",
"string",
"$",
"stackName",
",",
"string",
"$",
"activeService",
",",
"string",
"$",
"replacementService",
")",
"{",
"$",
"baseCommand",
"=",
"[",
"$",
"this",
"->",
"account",
"->",
"g... | Upgrade the given activeService to the replacementService within the given stack, using the currently built
configuration in directory
@param string $directory
@param string $stackName
@param string $activeService
@param string $replacementService | [
"Upgrade",
"the",
"given",
"activeService",
"to",
"the",
"replacementService",
"within",
"the",
"given",
"stack",
"using",
"the",
"currently",
"built",
"configuration",
"in",
"directory"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/RancherAccess/RancherService.php#L314-L342 |
30,315 | SIELOnline/libAcumulus | src/Magento/Invoice/FlattenerInvoiceLines.php | FlattenerInvoiceLines.isChildSameAsParent | protected function isChildSameAsParent(array $parent, array $children)
{
if (count($children) === 1) {
$child = reset($children);
if ($parent[Tag::ItemNumber] === $child[Tag::ItemNumber]
&& $parent[Tag::Quantity] === $child[Tag::Quantity]
&& Number::isZero... | php | protected function isChildSameAsParent(array $parent, array $children)
{
if (count($children) === 1) {
$child = reset($children);
if ($parent[Tag::ItemNumber] === $child[Tag::ItemNumber]
&& $parent[Tag::Quantity] === $child[Tag::Quantity]
&& Number::isZero... | [
"protected",
"function",
"isChildSameAsParent",
"(",
"array",
"$",
"parent",
",",
"array",
"$",
"children",
")",
"{",
"if",
"(",
"count",
"(",
"$",
"children",
")",
"===",
"1",
")",
"{",
"$",
"child",
"=",
"reset",
"(",
"$",
"children",
")",
";",
"if... | Returns whether a single child line is actually the same as its parent.
If:
- there is exactly 1 child line
- for the same item number and quantity
- with no price info on the child
We seem to be processing a configurable product that for some reason
appears twice: do not add the child, but copy the product descriptio... | [
"Returns",
"whether",
"a",
"single",
"child",
"line",
"is",
"actually",
"the",
"same",
"as",
"its",
"parent",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Invoice/FlattenerInvoiceLines.php#L89-L101 |
30,316 | SIELOnline/libAcumulus | src/Invoice/Source.php | Source.completeTotals | protected function completeTotals(array $totals)
{
if (!isset($totals[Meta::InvoiceAmount])) {
$totals[Meta::InvoiceAmount] = $totals[Meta::InvoiceAmountInc] - $totals[Meta::InvoiceVatAmount];
$totals[Meta::InvoiceCalculated ] = Meta::InvoiceAmount;
}
if (!isset($tota... | php | protected function completeTotals(array $totals)
{
if (!isset($totals[Meta::InvoiceAmount])) {
$totals[Meta::InvoiceAmount] = $totals[Meta::InvoiceAmountInc] - $totals[Meta::InvoiceVatAmount];
$totals[Meta::InvoiceCalculated ] = Meta::InvoiceAmount;
}
if (!isset($tota... | [
"protected",
"function",
"completeTotals",
"(",
"array",
"$",
"totals",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"totals",
"[",
"Meta",
"::",
"InvoiceAmount",
"]",
")",
")",
"{",
"$",
"totals",
"[",
"Meta",
"::",
"InvoiceAmount",
"]",
"=",
"$",
"... | Completes the set of invoice totals as set by getInvoiceTotals.
Most shops only provide 2 out of these 3 in their data, so we calculate
the 3rd.
Do not override this method, just implement getAvailableTotals().
@param array $totals
The invoice totals to complete with missing total fields.
@return array
The invoice ... | [
"Completes",
"the",
"set",
"of",
"invoice",
"totals",
"as",
"set",
"by",
"getInvoiceTotals",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Invoice/Source.php#L299-L314 |
30,317 | SIELOnline/libAcumulus | src/Invoice/Source.php | Source.getCreditNotes | public function getCreditNotes()
{
$result = null;
if ($this->getType() === static::Order) {
$result = array();
$shopCreditNotes = $this->getShopCreditNotesOrIds();
foreach ($shopCreditNotes as $shopCreditNote) {
$result[] = new static(static::Cred... | php | public function getCreditNotes()
{
$result = null;
if ($this->getType() === static::Order) {
$result = array();
$shopCreditNotes = $this->getShopCreditNotesOrIds();
foreach ($shopCreditNotes as $shopCreditNote) {
$result[] = new static(static::Cred... | [
"public",
"function",
"getCreditNotes",
"(",
")",
"{",
"$",
"result",
"=",
"null",
";",
"if",
"(",
"$",
"this",
"->",
"getType",
"(",
")",
"===",
"static",
"::",
"Order",
")",
"{",
"$",
"result",
"=",
"array",
"(",
")",
";",
"$",
"shopCreditNotes",
... | Returns the set of credit note sources for an order source.
Do not override this method but override getShopCreditNotes() instead.
@return Source[]|null
If the invoice source is an order, an array of refunds is returned,
null otherwise. | [
"Returns",
"the",
"set",
"of",
"credit",
"note",
"sources",
"for",
"an",
"order",
"source",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Invoice/Source.php#L420-L431 |
30,318 | SIELOnline/libAcumulus | src/Invoice/Source.php | Source.callTypeSpecificMethod | protected function callTypeSpecificMethod($method, $args = array())
{
$method .= $this->getType();
if (method_exists($this, $method)) {
return call_user_func_array(array($this, $method), $args);
}
return null;
} | php | protected function callTypeSpecificMethod($method, $args = array())
{
$method .= $this->getType();
if (method_exists($this, $method)) {
return call_user_func_array(array($this, $method), $args);
}
return null;
} | [
"protected",
"function",
"callTypeSpecificMethod",
"(",
"$",
"method",
",",
"$",
"args",
"=",
"array",
"(",
")",
")",
"{",
"$",
"method",
".=",
"$",
"this",
"->",
"getType",
"(",
")",
";",
"if",
"(",
"method_exists",
"(",
"$",
"this",
",",
"$",
"meth... | Calls a "sub" method whose logic depends on the type of invoice source.
This allows to separate logic for different source types into different
methods.
The method name is expected to be the original method name suffixed with
the source type (Order or CreditNote).
@param string $method
The original method called.
@p... | [
"Calls",
"a",
"sub",
"method",
"whose",
"logic",
"depends",
"on",
"the",
"type",
"of",
"invoice",
"source",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Invoice/Source.php#L466-L473 |
30,319 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Api_Basic.readFolder | public function readFolder($dir = null) {
$this->setPaymentMethodsFolder(DIR . DS . 'paymentmethods');
if ($dir)
$this->setPaymentMethodsFolder($dir);
$this->paymentMethods = array();
try {
$folder = $this->_folderPaymentMethods;
$handle = is_dir($fo... | php | public function readFolder($dir = null) {
$this->setPaymentMethodsFolder(DIR . DS . 'paymentmethods');
if ($dir)
$this->setPaymentMethodsFolder($dir);
$this->paymentMethods = array();
try {
$folder = $this->_folderPaymentMethods;
$handle = is_dir($fo... | [
"public",
"function",
"readFolder",
"(",
"$",
"dir",
"=",
"null",
")",
"{",
"$",
"this",
"->",
"setPaymentMethodsFolder",
"(",
"DIR",
".",
"DS",
".",
"'paymentmethods'",
")",
";",
"if",
"(",
"$",
"dir",
")",
"$",
"this",
"->",
"setPaymentMethodsFolder",
... | Store the paymentmethod class names in the paymentmethods array.
@since version 1.0.0
@access public
@param string $dir Folder of the paymentmethod classes | [
"Store",
"the",
"paymentmethod",
"class",
"names",
"in",
"the",
"paymentmethods",
"array",
"."
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L76-L101 |
30,320 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Api_Basic.filterByLanguage | public function filterByLanguage($language) {
foreach ($this->_paymentMethod as $name => $class) {
if (!in_array(strtoupper($language), $class->getSupportedLanguages()) && !in_array('00', $class->getSupportedLanguages()))
unset($this->paymentMethods[$name]);
}
return ... | php | public function filterByLanguage($language) {
foreach ($this->_paymentMethod as $name => $class) {
if (!in_array(strtoupper($language), $class->getSupportedLanguages()) && !in_array('00', $class->getSupportedLanguages()))
unset($this->paymentMethods[$name]);
}
return ... | [
"public",
"function",
"filterByLanguage",
"(",
"$",
"language",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"_paymentMethod",
"as",
"$",
"name",
"=>",
"$",
"class",
")",
"{",
"if",
"(",
"!",
"in_array",
"(",
"strtoupper",
"(",
"$",
"language",
")",
",... | Filter the paymentmethods array by language
@since version 1.0.0
@access public
@param string $language Language ISO 639-1 code | [
"Filter",
"the",
"paymentmethods",
"array",
"by",
"language"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L159-L165 |
30,321 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.validatePayment | public function validatePayment(Icepay_PaymentObject_Interface_Abstract $payment) {
/* Clear the generated URL */
$this->resetURL();
$this->data = (object) array_merge((array) $this->data, (array) $payment->getData());
if (!$payment->getPaymentMethod())
return $this;
... | php | public function validatePayment(Icepay_PaymentObject_Interface_Abstract $payment) {
/* Clear the generated URL */
$this->resetURL();
$this->data = (object) array_merge((array) $this->data, (array) $payment->getData());
if (!$payment->getPaymentMethod())
return $this;
... | [
"public",
"function",
"validatePayment",
"(",
"Icepay_PaymentObject_Interface_Abstract",
"$",
"payment",
")",
"{",
"/* Clear the generated URL */",
"$",
"this",
"->",
"resetURL",
"(",
")",
";",
"$",
"this",
"->",
"data",
"=",
"(",
"object",
")",
"array_merge",
"("... | Required for using the basicmode
@since version 2.1.0
@access public
@param Icepay_PaymentObject_Interface_Abstract $payment | [
"Required",
"for",
"using",
"the",
"basicmode"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L294-L321 |
30,322 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.generateFingerPrint | public function generateFingerPrint() {
if ($this->_fingerPrint != null)
return $this->fingerPrint;
$this->fingerPrint = sha1($this->getVersion());
return $this->fingerPrint;
} | php | public function generateFingerPrint() {
if ($this->_fingerPrint != null)
return $this->fingerPrint;
$this->fingerPrint = sha1($this->getVersion());
return $this->fingerPrint;
} | [
"public",
"function",
"generateFingerPrint",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"_fingerPrint",
"!=",
"null",
")",
"return",
"$",
"this",
"->",
"fingerPrint",
";",
"$",
"this",
"->",
"fingerPrint",
"=",
"sha1",
"(",
"$",
"this",
"->",
"getVersi... | Calls the API to generate a Fingerprint
@since version 1.0.0
@access protected
@return string SHA1 hash | [
"Calls",
"the",
"API",
"to",
"generate",
"a",
"Fingerprint"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L433-L438 |
30,323 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.basicMode | protected function basicMode() {
if (isset($this->data->ic_paymentmethod)) {
$querystring = http_build_query(array(
'type' => $this->data->ic_paymentmethod,
'checkout' => 'yes',
'ic_redirect' => 'no',
'ic_country' => $this->data->ic_cou... | php | protected function basicMode() {
if (isset($this->data->ic_paymentmethod)) {
$querystring = http_build_query(array(
'type' => $this->data->ic_paymentmethod,
'checkout' => 'yes',
'ic_redirect' => 'no',
'ic_country' => $this->data->ic_cou... | [
"protected",
"function",
"basicMode",
"(",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"this",
"->",
"data",
"->",
"ic_paymentmethod",
")",
")",
"{",
"$",
"querystring",
"=",
"http_build_query",
"(",
"array",
"(",
"'type'",
"=>",
"$",
"this",
"->",
"data",
... | Generates a URL to the ICEPAY basic API service
@since version 1.0.0
@access protected
@return string URL | [
"Generates",
"a",
"URL",
"to",
"the",
"ICEPAY",
"basic",
"API",
"service"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L446-L465 |
30,324 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.postRequest | protected function postRequest($url, $data) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
... | php | protected function postRequest($url, $data) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
... | [
"protected",
"function",
"postRequest",
"(",
"$",
"url",
",",
"$",
"data",
")",
"{",
"$",
"ch",
"=",
"curl_init",
"(",
")",
";",
"curl_setopt",
"(",
"$",
"ch",
",",
"CURLOPT_URL",
",",
"$",
"url",
")",
";",
"curl_setopt",
"(",
"$",
"ch",
",",
"CURL... | Used to connect to the ICEPAY servers
@since version 1.0.0
@access protected
@param string $url
@param array $data
@return string Returns a response from the specified URL | [
"Used",
"to",
"connect",
"to",
"the",
"ICEPAY",
"servers"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L475-L493 |
30,325 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.generateCheckSum | protected function generateCheckSum() {
return sha1(
sprintf("%s|%s|%s|%s|%s|%s|%s", $this->_merchantID, $this->_secretCode, $this->data->ic_amount, $this->data->ic_orderid, $this->data->ic_reference, $this->data->ic_currency, $this->data->ic_country
)
);
... | php | protected function generateCheckSum() {
return sha1(
sprintf("%s|%s|%s|%s|%s|%s|%s", $this->_merchantID, $this->_secretCode, $this->data->ic_amount, $this->data->ic_orderid, $this->data->ic_reference, $this->data->ic_currency, $this->data->ic_country
)
);
... | [
"protected",
"function",
"generateCheckSum",
"(",
")",
"{",
"return",
"sha1",
"(",
"sprintf",
"(",
"\"%s|%s|%s|%s|%s|%s|%s\"",
",",
"$",
"this",
"->",
"_merchantID",
",",
"$",
"this",
"->",
"_secretCode",
",",
"$",
"this",
"->",
"data",
"->",
"ic_amount",
",... | Generate checksum for basicmode checkout
@since version 1.0.0
@access protected
@return string SHA1 encoded | [
"Generate",
"checksum",
"for",
"basicmode",
"checkout"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L501-L506 |
30,326 | ICEPAY/deprecated-i | src/icepay_api_basic.php | Icepay_Basicmode.generateCheckSumDynamic | protected function generateCheckSumDynamic() {
return sha1(
sprintf("%s|%s|%s|%s|%s|%s|%s|%s|%s", $this->_merchantID, $this->_secretCode, $this->data->ic_amount, $this->data->ic_orderid, $this->data->ic_reference, $this->data->ic_currency, $this->data->ic_country, $this->data->ic_urlcomp... | php | protected function generateCheckSumDynamic() {
return sha1(
sprintf("%s|%s|%s|%s|%s|%s|%s|%s|%s", $this->_merchantID, $this->_secretCode, $this->data->ic_amount, $this->data->ic_orderid, $this->data->ic_reference, $this->data->ic_currency, $this->data->ic_country, $this->data->ic_urlcomp... | [
"protected",
"function",
"generateCheckSumDynamic",
"(",
")",
"{",
"return",
"sha1",
"(",
"sprintf",
"(",
"\"%s|%s|%s|%s|%s|%s|%s|%s|%s\"",
",",
"$",
"this",
"->",
"_merchantID",
",",
"$",
"this",
"->",
"_secretCode",
",",
"$",
"this",
"->",
"data",
"->",
"ic_... | Generate checksum for basicmode checkout using dynamic urls
@since version 1.0.1
@access protected
@return string SHA1 encoded | [
"Generate",
"checksum",
"for",
"basicmode",
"checkout",
"using",
"dynamic",
"urls"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_basic.php#L514-L519 |
30,327 | SIELOnline/libAcumulus | src/Helpers/Translator.php | Translator.get | public function get($key)
{
return (isset($this->translations[$key]) ? $this->translations[$key] : $key);
} | php | public function get($key)
{
return (isset($this->translations[$key]) ? $this->translations[$key] : $key);
} | [
"public",
"function",
"get",
"(",
"$",
"key",
")",
"{",
"return",
"(",
"isset",
"(",
"$",
"this",
"->",
"translations",
"[",
"$",
"key",
"]",
")",
"?",
"$",
"this",
"->",
"translations",
"[",
"$",
"key",
"]",
":",
"$",
"key",
")",
";",
"}"
] | Returns the string in the current language for the given key.
@param string $key
The key to look up.
@return string
Return in order of being available:
- The string in the current language for the given key.
- The string in Dutch for the given key.
- The key itself. | [
"Returns",
"the",
"string",
"in",
"the",
"current",
"language",
"for",
"the",
"given",
"key",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Translator.php#L100-L103 |
30,328 | SIELOnline/libAcumulus | src/WooCommerce/Invoice/Creator.php | Creator.getVatRateLookupMetadataByTaxClass | protected function getVatRateLookupMetadataByTaxClass($taxClassId)
{
// '' denotes the 'standard'tax class, use 'standard' in meta data, ''
// when searching.
if ($taxClassId === '') {
$taxClassId = 'standard';
}
$result = array(
Meta::VatClassId => sa... | php | protected function getVatRateLookupMetadataByTaxClass($taxClassId)
{
// '' denotes the 'standard'tax class, use 'standard' in meta data, ''
// when searching.
if ($taxClassId === '') {
$taxClassId = 'standard';
}
$result = array(
Meta::VatClassId => sa... | [
"protected",
"function",
"getVatRateLookupMetadataByTaxClass",
"(",
"$",
"taxClassId",
")",
"{",
"// '' denotes the 'standard'tax class, use 'standard' in meta data, ''",
"// when searching.",
"if",
"(",
"$",
"taxClassId",
"===",
"''",
")",
"{",
"$",
"taxClassId",
"=",
"'st... | Looks up and returns vat rate metadata for product lines.
A product has a tax class. A tax class can have multiple tax rates,
depending on the region of the customer. As we don't have that data here,
this method will only return metadata if only 1 rate was found.
@param string $taxClassId
The tax class of the product... | [
"Looks",
"up",
"and",
"returns",
"vat",
"rate",
"metadata",
"for",
"product",
"lines",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/WooCommerce/Invoice/Creator.php#L188-L219 |
30,329 | SIELOnline/libAcumulus | src/WooCommerce/Invoice/Creator.php | Creator.getFeeLine | protected function getFeeLine($item)
{
$quantity = $item->get_quantity();
$feeEx = $item->get_total() / $quantity;
$feeVat = $item->get_total_tax() / $quantity;
$result = array(
Tag::Product => $this->t($item->get_name()),
Tag::UnitPrice => $feeEx,
... | php | protected function getFeeLine($item)
{
$quantity = $item->get_quantity();
$feeEx = $item->get_total() / $quantity;
$feeVat = $item->get_total_tax() / $quantity;
$result = array(
Tag::Product => $this->t($item->get_name()),
Tag::UnitPrice => $feeEx,
... | [
"protected",
"function",
"getFeeLine",
"(",
"$",
"item",
")",
"{",
"$",
"quantity",
"=",
"$",
"item",
"->",
"get_quantity",
"(",
")",
";",
"$",
"feeEx",
"=",
"$",
"item",
"->",
"get_total",
"(",
")",
"/",
"$",
"quantity",
";",
"$",
"feeVat",
"=",
"... | Returns an invoice line for 1 fee line.
@param \WC_Order_Item_Fee $item
@return array
The invoice line for the given fee line. | [
"Returns",
"an",
"invoice",
"line",
"for",
"1",
"fee",
"line",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/WooCommerce/Invoice/Creator.php#L312-L325 |
30,330 | SIELOnline/libAcumulus | src/WooCommerce/Invoice/Creator.php | Creator.getShippingVatRateLookupMetadata | protected function getShippingVatRateLookupMetadata($taxes)
{
$result = array();
if (is_array($taxes)) {
// Since version ?.?, $taxes has an indirection by key 'total'.
if (!is_numeric(key($taxes))) {
$taxes = current($taxes);
}
if (is_... | php | protected function getShippingVatRateLookupMetadata($taxes)
{
$result = array();
if (is_array($taxes)) {
// Since version ?.?, $taxes has an indirection by key 'total'.
if (!is_numeric(key($taxes))) {
$taxes = current($taxes);
}
if (is_... | [
"protected",
"function",
"getShippingVatRateLookupMetadata",
"(",
"$",
"taxes",
")",
"{",
"$",
"result",
"=",
"array",
"(",
")",
";",
"if",
"(",
"is_array",
"(",
"$",
"taxes",
")",
")",
"{",
"// Since version ?.?, $taxes has an indirection by key 'total'.",
"if",
... | Looks up and returns vat rate metadata for shipping lines.
In WooCommerce, a shipping line can have multiple taxes. I am not sure if
that is possible for Dutch web shops, but if a shipping line does have
multiple taxes we fall back to the tax class setting for shipping
methods, that can have multiple tax rates itself ... | [
"Looks",
"up",
"and",
"returns",
"vat",
"rate",
"metadata",
"for",
"shipping",
"lines",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/WooCommerce/Invoice/Creator.php#L423-L485 |
30,331 | fontis/composer-autoloader | src/app/code/community/Fontis/ComposerAutoloader/Model/Observer.php | Fontis_ComposerAutoloader_Model_Observer.addComposerAutoloader | public function addComposerAutoloader(Varien_Event_Observer $observer)
{
if (self::$added === false) {
/** @var Fontis_ComposerAutoloader_Helper_Data $helper */
$helper = Mage::helper('fontis_composerautoloader');
$helper->registerAutoloader();
self::$added = ... | php | public function addComposerAutoloader(Varien_Event_Observer $observer)
{
if (self::$added === false) {
/** @var Fontis_ComposerAutoloader_Helper_Data $helper */
$helper = Mage::helper('fontis_composerautoloader');
$helper->registerAutoloader();
self::$added = ... | [
"public",
"function",
"addComposerAutoloader",
"(",
"Varien_Event_Observer",
"$",
"observer",
")",
"{",
"if",
"(",
"self",
"::",
"$",
"added",
"===",
"false",
")",
"{",
"/** @var Fontis_ComposerAutoloader_Helper_Data $helper */",
"$",
"helper",
"=",
"Mage",
"::",
"h... | Register the Composer autoloader.
@listen resource_get_tablename
@param Varien_Event_Observer $observer | [
"Register",
"the",
"Composer",
"autoloader",
"."
] | edebd4f638c3d60ce5a2329ff834c2f1048ef8be | https://github.com/fontis/composer-autoloader/blob/edebd4f638c3d60ce5a2329ff834c2f1048ef8be/src/app/code/community/Fontis/ComposerAutoloader/Model/Observer.php#L31-L39 |
30,332 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getTo | protected function getTo()
{
$credentials = $this->config->getCredentials();
if (isset($credentials[Tag::EmailOnError])) {
return $credentials[Tag::EmailOnError];
}
$env = $this->config->getEnvironment();
return 'webshop@' . $env['hostName'];
} | php | protected function getTo()
{
$credentials = $this->config->getCredentials();
if (isset($credentials[Tag::EmailOnError])) {
return $credentials[Tag::EmailOnError];
}
$env = $this->config->getEnvironment();
return 'webshop@' . $env['hostName'];
} | [
"protected",
"function",
"getTo",
"(",
")",
"{",
"$",
"credentials",
"=",
"$",
"this",
"->",
"config",
"->",
"getCredentials",
"(",
")",
";",
"if",
"(",
"isset",
"(",
"$",
"credentials",
"[",
"Tag",
"::",
"EmailOnError",
"]",
")",
")",
"{",
"return",
... | Returns the mail to address.
This base implementation returns the configured emailonerror address,
which normally is exactly what we want.
@return string | [
"Returns",
"the",
"mail",
"to",
"address",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L149-L157 |
30,333 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getSubject | protected function getSubject(Result $invoiceSendResult)
{
$pluginSettings = $this->config->getPluginSettings();
$isTestMode = $pluginSettings['debug'] === PluginConfig::Send_TestMode;
$resultInvoice = $invoiceSendResult->getResponse();
$isConcept = !$invoiceSendResult->hasError() &&... | php | protected function getSubject(Result $invoiceSendResult)
{
$pluginSettings = $this->config->getPluginSettings();
$isTestMode = $pluginSettings['debug'] === PluginConfig::Send_TestMode;
$resultInvoice = $invoiceSendResult->getResponse();
$isConcept = !$invoiceSendResult->hasError() &&... | [
"protected",
"function",
"getSubject",
"(",
"Result",
"$",
"invoiceSendResult",
")",
"{",
"$",
"pluginSettings",
"=",
"$",
"this",
"->",
"config",
"->",
"getPluginSettings",
"(",
")",
";",
"$",
"isTestMode",
"=",
"$",
"pluginSettings",
"[",
"'debug'",
"]",
"... | Returns the subject for the mail.
The subject depends on:
- the result status.
- whether the invoice was sent in test mode.
- whether the invoice was sent as concept.
- the emailAsPdf setting.
@param \Siel\Acumulus\Invoice\Result $invoiceSendResult
@return string | [
"Returns",
"the",
"subject",
"for",
"the",
"mail",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L172-L215 |
30,334 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getBody | protected function getBody(Result $result, $invoiceSourceType, $invoiceSourceReference)
{
$resultInvoice = $result->getResponse();
$bodyTexts = $this->getStatusSpecificBody($result);
$supportTexts = $this->getSupportMessages($result);
$messagesTexts = $this->getMessages($result);
... | php | protected function getBody(Result $result, $invoiceSourceType, $invoiceSourceReference)
{
$resultInvoice = $result->getResponse();
$bodyTexts = $this->getStatusSpecificBody($result);
$supportTexts = $this->getSupportMessages($result);
$messagesTexts = $this->getMessages($result);
... | [
"protected",
"function",
"getBody",
"(",
"Result",
"$",
"result",
",",
"$",
"invoiceSourceType",
",",
"$",
"invoiceSourceReference",
")",
"{",
"$",
"resultInvoice",
"=",
"$",
"result",
"->",
"getResponse",
"(",
")",
";",
"$",
"bodyTexts",
"=",
"$",
"this",
... | Returns the mail body as text and as html.
@param \Siel\Acumulus\Invoice\Result $result
@param string $invoiceSourceType
@param string $invoiceSourceReference
@return string[]
An array with keys text and html. | [
"Returns",
"the",
"mail",
"body",
"as",
"text",
"and",
"as",
"html",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L227-L251 |
30,335 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getStatusSpecificBody | protected function getStatusSpecificBody(Result $invoiceSendResult)
{
$pluginSettings = $this->config->getPluginSettings();
$isTestMode = $pluginSettings['debug'] === PluginConfig::Send_TestMode;
$resultInvoice = $invoiceSendResult->getResponse();
// @refactor: can be taken from invo... | php | protected function getStatusSpecificBody(Result $invoiceSendResult)
{
$pluginSettings = $this->config->getPluginSettings();
$isTestMode = $pluginSettings['debug'] === PluginConfig::Send_TestMode;
$resultInvoice = $invoiceSendResult->getResponse();
// @refactor: can be taken from invo... | [
"protected",
"function",
"getStatusSpecificBody",
"(",
"Result",
"$",
"invoiceSendResult",
")",
"{",
"$",
"pluginSettings",
"=",
"$",
"this",
"->",
"config",
"->",
"getPluginSettings",
"(",
")",
";",
"$",
"isTestMode",
"=",
"$",
"pluginSettings",
"[",
"'debug'",... | Returns the body for the mail.
The body depends on:
- the result status.
- the value of isSent (in the result object)
- whether the invoice was sent in test mode
- whether the invoice was sent as concept
- the emailAsPdf setting
@param \Siel\Acumulus\Invoice\Result $invoiceSendResult
@return string[] | [
"Returns",
"the",
"body",
"for",
"the",
"mail",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L267-L333 |
30,336 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getMessages | protected function getMessages(Result $result)
{
$messages = array(
'text' => '',
'html' => '',
);
if ($result->hasMessages()) {
$header = $this->t('mail_messages_header');
$description = $this->t('mail_messages_desc');
$descriptio... | php | protected function getMessages(Result $result)
{
$messages = array(
'text' => '',
'html' => '',
);
if ($result->hasMessages()) {
$header = $this->t('mail_messages_header');
$description = $this->t('mail_messages_desc');
$descriptio... | [
"protected",
"function",
"getMessages",
"(",
"Result",
"$",
"result",
")",
"{",
"$",
"messages",
"=",
"array",
"(",
"'text'",
"=>",
"''",
",",
"'html'",
"=>",
"''",
",",
")",
";",
"if",
"(",
"$",
"result",
"->",
"hasMessages",
"(",
")",
")",
"{",
"... | Returns the messages along with some descriptive text.
@param \Siel\Acumulus\Invoice\Result $result
@return string[]
An array with a plain text (key='text') and an html string (key='html')
containing the messages with some descriptive text. | [
"Returns",
"the",
"messages",
"along",
"with",
"some",
"descriptive",
"text",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L344-L363 |
30,337 | SIELOnline/libAcumulus | src/Helpers/Mailer.php | Mailer.getSupportMessages | protected function getSupportMessages(Result $result)
{
$messages = array(
'text' => '',
'html' => '',
);
$pluginSettings = $this->config->getPluginSettings();
// We add the request and response messages when set so or if there were
// warnings or sev... | php | protected function getSupportMessages(Result $result)
{
$messages = array(
'text' => '',
'html' => '',
);
$pluginSettings = $this->config->getPluginSettings();
// We add the request and response messages when set so or if there were
// warnings or sev... | [
"protected",
"function",
"getSupportMessages",
"(",
"Result",
"$",
"result",
")",
"{",
"$",
"messages",
"=",
"array",
"(",
"'text'",
"=>",
"''",
",",
"'html'",
"=>",
"''",
",",
")",
";",
"$",
"pluginSettings",
"=",
"$",
"this",
"->",
"config",
"->",
"g... | Returns the support messages along with some descriptive text.
@param \Siel\Acumulus\Invoice\Result $result
@return string[]
An array with a plain text (key='text') and an html string (key='html')
containing the support messages with some descriptive text. | [
"Returns",
"the",
"support",
"messages",
"along",
"with",
"some",
"descriptive",
"text",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Mailer.php#L374-L398 |
30,338 | SIELOnline/libAcumulus | src/Magento/Magento1/Invoice/Source.php | Source.getPaymentStatusCreditNote | protected function getPaymentStatusCreditNote()
{
return $this->source->getState() == \Mage_Sales_Model_Order_Creditmemo::STATE_REFUNDED
? Api::PaymentStatus_Paid
: Api::PaymentStatus_Due;
} | php | protected function getPaymentStatusCreditNote()
{
return $this->source->getState() == \Mage_Sales_Model_Order_Creditmemo::STATE_REFUNDED
? Api::PaymentStatus_Paid
: Api::PaymentStatus_Due;
} | [
"protected",
"function",
"getPaymentStatusCreditNote",
"(",
")",
"{",
"return",
"$",
"this",
"->",
"source",
"->",
"getState",
"(",
")",
"==",
"\\",
"Mage_Sales_Model_Order_Creditmemo",
"::",
"STATE_REFUNDED",
"?",
"Api",
"::",
"PaymentStatus_Paid",
":",
"Api",
":... | Returns whether the credit memo has been paid or not.
@return int
\Siel\Acumulus\Api::PaymentStatus_Paid or
\Siel\Acumulus\Api::PaymentStatus_Due | [
"Returns",
"whether",
"the",
"credit",
"memo",
"has",
"been",
"paid",
"or",
"not",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Magento1/Invoice/Source.php#L50-L55 |
30,339 | SIELOnline/libAcumulus | src/Magento/Magento1/Invoice/Source.php | Source.getPaymentDateOrder | protected function getPaymentDateOrder()
{
// Take date of last payment as payment date.
$paymentDate = null;
foreach ($this->source->getStatusHistoryCollection() as $statusChange) {
/** @var \Mage_Sales_Model_Order_Status_History $statusChange */
if (!$paymentDate ||... | php | protected function getPaymentDateOrder()
{
// Take date of last payment as payment date.
$paymentDate = null;
foreach ($this->source->getStatusHistoryCollection() as $statusChange) {
/** @var \Mage_Sales_Model_Order_Status_History $statusChange */
if (!$paymentDate ||... | [
"protected",
"function",
"getPaymentDateOrder",
"(",
")",
"{",
"// Take date of last payment as payment date.",
"$",
"paymentDate",
"=",
"null",
";",
"foreach",
"(",
"$",
"this",
"->",
"source",
"->",
"getStatusHistoryCollection",
"(",
")",
"as",
"$",
"statusChange",
... | Returns the payment date for the order.
@return string|null
The payment date (yyyy-mm-dd) or null if the order has not been paid yet. | [
"Returns",
"the",
"payment",
"date",
"for",
"the",
"order",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Magento1/Invoice/Source.php#L63-L77 |
30,340 | ipunkt/rancherize | app/Push/Modes/RollingUpgrade/RollingUpgradeParser.php | RollingUpgradeParser.isMode | public function isMode( Configuration $configuration ) {
if( $this->inServiceChecker->isInService($configuration) )
return false;
if( $this->replaceUpgradeChecker->isReplaceUpgrade($configuration) )
return false;
return true;
} | php | public function isMode( Configuration $configuration ) {
if( $this->inServiceChecker->isInService($configuration) )
return false;
if( $this->replaceUpgradeChecker->isReplaceUpgrade($configuration) )
return false;
return true;
} | [
"public",
"function",
"isMode",
"(",
"Configuration",
"$",
"configuration",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"inServiceChecker",
"->",
"isInService",
"(",
"$",
"configuration",
")",
")",
"return",
"false",
";",
"if",
"(",
"$",
"this",
"->",
"replace... | Returns true if the associate PushMode was selected in the configuration
@param Configuration $configuration
@return bool | [
"Returns",
"true",
"if",
"the",
"associate",
"PushMode",
"was",
"selected",
"in",
"the",
"configuration"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Push/Modes/RollingUpgrade/RollingUpgradeParser.php#L41-L49 |
30,341 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.uninstall | public function uninstall()
{
// "Disable" (delete) events, regardless the confirmation answer.
$this->uninstallEvents();
$this->registry->response->redirect($this->registry->getLink($this->getLocation() . '/confirmUninstall'));
} | php | public function uninstall()
{
// "Disable" (delete) events, regardless the confirmation answer.
$this->uninstallEvents();
$this->registry->response->redirect($this->registry->getLink($this->getLocation() . '/confirmUninstall'));
} | [
"public",
"function",
"uninstall",
"(",
")",
"{",
"// \"Disable\" (delete) events, regardless the confirmation answer.",
"$",
"this",
"->",
"uninstallEvents",
"(",
")",
";",
"$",
"this",
"->",
"registry",
"->",
"response",
"->",
"redirect",
"(",
"$",
"this",
"->",
... | Uninstall function, called when the module is uninstalled by an admin.
@throws \Exception | [
"Uninstall",
"function",
"called",
"when",
"the",
"module",
"is",
"uninstalled",
"by",
"an",
"admin",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L112-L117 |
30,342 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.confirmUninstall | public function confirmUninstall()
{
// @todo: implement uninstall form
// $this->displayFormCommon('uninstall');
//
// // Are we confirming, or should we show the confirm message?
// if ($this->registry->request->server['REQUEST_METHOD'] === 'POST') {
$this->doUninstall();
... | php | public function confirmUninstall()
{
// @todo: implement uninstall form
// $this->displayFormCommon('uninstall');
//
// // Are we confirming, or should we show the confirm message?
// if ($this->registry->request->server['REQUEST_METHOD'] === 'POST') {
$this->doUninstall();
... | [
"public",
"function",
"confirmUninstall",
"(",
")",
"{",
"// @todo: implement uninstall form",
"// $this->displayFormCommon('uninstall');",
"//",
"// // Are we confirming, or should we show the confirm message?",
"// if ($this->registry->request->server['REQUEST_METHOD'] ===... | Explicit confirmation step to allow to retain the settings.
The normal uninstall action will unconditionally delete all settings.
@throws \Exception | [
"Explicit",
"confirmation",
"step",
"to",
"allow",
"to",
"retain",
"the",
"settings",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L183-L202 |
30,343 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.extractOrderId | public function extractOrderId(array $args)
{
if (is_numeric($args[0])) {
// OC 2.0.
$order_id = $args[0];
} elseif (is_array($args[1])) {
// OC 2.3.
$route = $args[0];
$event_args = $args[1];
$output = $args[2];
$or... | php | public function extractOrderId(array $args)
{
if (is_numeric($args[0])) {
// OC 2.0.
$order_id = $args[0];
} elseif (is_array($args[1])) {
// OC 2.3.
$route = $args[0];
$event_args = $args[1];
$output = $args[2];
$or... | [
"public",
"function",
"extractOrderId",
"(",
"array",
"$",
"args",
")",
"{",
"if",
"(",
"is_numeric",
"(",
"$",
"args",
"[",
"0",
"]",
")",
")",
"{",
"// OC 2.0.",
"$",
"order_id",
"=",
"$",
"args",
"[",
"0",
"]",
";",
"}",
"elseif",
"(",
"is_array... | Extracts the order id of the parameters as passed to the event handler.
Event handling has undergone a lot of changes in OC, so where the order
id can be found depends on the version. However we do not check the
version itself but the (number and type of the) parameters passed in.
Parameters for OC2.0:
param int $ord... | [
"Extracts",
"the",
"order",
"id",
"of",
"the",
"parameters",
"as",
"passed",
"to",
"the",
"event",
"handler",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L251-L267 |
30,344 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.eventOrderUpdate | public function eventOrderUpdate($order_id)
{
$source = $this->container->getSource(Source::Order, $order_id);
$this->container->getInvoiceManager()->sourceStatusChange($source);
} | php | public function eventOrderUpdate($order_id)
{
$source = $this->container->getSource(Source::Order, $order_id);
$this->container->getInvoiceManager()->sourceStatusChange($source);
} | [
"public",
"function",
"eventOrderUpdate",
"(",
"$",
"order_id",
")",
"{",
"$",
"source",
"=",
"$",
"this",
"->",
"container",
"->",
"getSource",
"(",
"Source",
"::",
"Order",
",",
"$",
"order_id",
")",
";",
"$",
"this",
"->",
"container",
"->",
"getInvoi... | Event handler that executes on the creation or update of an order.
@param int $order_id | [
"Event",
"handler",
"that",
"executes",
"on",
"the",
"creation",
"or",
"update",
"of",
"an",
"order",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L274-L278 |
30,345 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.eventViewColumnLeft | public function eventViewColumnLeft(&$menus)
{
foreach ($menus as &$menu) {
if ($menu['id'] === 'menu-sale') {
$menu['children'][] = array(
'name' => 'Acumulus',
'href' => '',
'children' => array(
... | php | public function eventViewColumnLeft(&$menus)
{
foreach ($menus as &$menu) {
if ($menu['id'] === 'menu-sale') {
$menu['children'][] = array(
'name' => 'Acumulus',
'href' => '',
'children' => array(
... | [
"public",
"function",
"eventViewColumnLeft",
"(",
"&",
"$",
"menus",
")",
"{",
"foreach",
"(",
"$",
"menus",
"as",
"&",
"$",
"menu",
")",
"{",
"if",
"(",
"$",
"menu",
"[",
"'id'",
"]",
"===",
"'menu-sale'",
")",
"{",
"$",
"menu",
"[",
"'children'",
... | Adds our menu-items to the admin menu.
@param array $menus
The menus part of the data as will be passed to the view. | [
"Adds",
"our",
"menu",
"-",
"items",
"to",
"the",
"admin",
"menu",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L286-L308 |
30,346 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.displayFormCommon | protected function displayFormCommon($task)
{
// This will initialize the form translations.
$this->container->getForm($task);
$this->registry->document->addStyle('view/stylesheet/acumulus.css');
$this->data['success_messages'] = array();
$this->data['warning_messages'] = a... | php | protected function displayFormCommon($task)
{
// This will initialize the form translations.
$this->container->getForm($task);
$this->registry->document->addStyle('view/stylesheet/acumulus.css');
$this->data['success_messages'] = array();
$this->data['warning_messages'] = a... | [
"protected",
"function",
"displayFormCommon",
"(",
"$",
"task",
")",
"{",
"// This will initialize the form translations.",
"$",
"this",
"->",
"container",
"->",
"getForm",
"(",
"$",
"task",
")",
";",
"$",
"this",
"->",
"registry",
"->",
"document",
"->",
"addSt... | Performs the common tasks when displaying a form.
@param string $task | [
"Performs",
"the",
"common",
"tasks",
"when",
"displaying",
"a",
"form",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L315-L341 |
30,347 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.renderFormCommon | protected function renderFormCommon($task, $button)
{
// Process the form if it was submitted and render it again.
$form = $this->container->getForm($task);
$form->process();
// Force the creation of the fields to get connection error messages
// shown.
$form->getFiel... | php | protected function renderFormCommon($task, $button)
{
// Process the form if it was submitted and render it again.
$form = $this->container->getForm($task);
$form->process();
// Force the creation of the fields to get connection error messages
// shown.
$form->getFiel... | [
"protected",
"function",
"renderFormCommon",
"(",
"$",
"task",
",",
"$",
"button",
")",
"{",
"// Process the form if it was submitted and render it again.",
"$",
"form",
"=",
"$",
"this",
"->",
"container",
"->",
"getForm",
"(",
"$",
"task",
")",
";",
"$",
"form... | Performs the common tasks when processing and rendering a form.
@param string $task
@param string $button | [
"Performs",
"the",
"common",
"tasks",
"when",
"processing",
"and",
"rendering",
"a",
"form",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L359-L401 |
30,348 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.setOutput | protected function setOutput()
{
// Send the output.
$this->registry->response->setOutput($this->registry->load->view($this->getLocation() . '_form', $this->data));
} | php | protected function setOutput()
{
// Send the output.
$this->registry->response->setOutput($this->registry->load->view($this->getLocation() . '_form', $this->data));
} | [
"protected",
"function",
"setOutput",
"(",
")",
"{",
"// Send the output.",
"$",
"this",
"->",
"registry",
"->",
"response",
"->",
"setOutput",
"(",
"$",
"this",
"->",
"registry",
"->",
"load",
"->",
"view",
"(",
"$",
"this",
"->",
"getLocation",
"(",
")",... | Outputs the form. | [
"Outputs",
"the",
"form",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L406-L410 |
30,349 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.doInstall | protected function doInstall()
{
$result = true;
$this->registry->load->model('setting/setting');
$setting = $this->registry->model_setting_setting->getSetting('acumulus_siel');
$currentDataModelVersion = isset($setting['acumulus_siel_datamodel_version']) ? $setting['acumulus_siel_da... | php | protected function doInstall()
{
$result = true;
$this->registry->load->model('setting/setting');
$setting = $this->registry->model_setting_setting->getSetting('acumulus_siel');
$currentDataModelVersion = isset($setting['acumulus_siel_datamodel_version']) ? $setting['acumulus_siel_da... | [
"protected",
"function",
"doInstall",
"(",
")",
"{",
"$",
"result",
"=",
"true",
";",
"$",
"this",
"->",
"registry",
"->",
"load",
"->",
"model",
"(",
"'setting/setting'",
")",
";",
"$",
"setting",
"=",
"$",
"this",
"->",
"registry",
"->",
"model_setting... | Checks requirements and installs tables for this module.
@return bool
Success.
@throws \Exception | [
"Checks",
"requirements",
"and",
"installs",
"tables",
"for",
"this",
"module",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L420-L461 |
30,350 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.doUninstall | protected function doUninstall()
{
$this->container->getAcumulusEntryManager()->uninstall();
// Delete all config values.
$this->registry->load->model('setting/setting');
$this->registry->model_setting_setting->deleteSetting('acumulus_siel');
return true;
} | php | protected function doUninstall()
{
$this->container->getAcumulusEntryManager()->uninstall();
// Delete all config values.
$this->registry->load->model('setting/setting');
$this->registry->model_setting_setting->deleteSetting('acumulus_siel');
return true;
} | [
"protected",
"function",
"doUninstall",
"(",
")",
"{",
"$",
"this",
"->",
"container",
"->",
"getAcumulusEntryManager",
"(",
")",
"->",
"uninstall",
"(",
")",
";",
"// Delete all config values.",
"$",
"this",
"->",
"registry",
"->",
"load",
"->",
"model",
"(",... | Uninstalls data and settings from this module.
@return bool
Whether the uninstall was successful.
@throws \Exception | [
"Uninstalls",
"data",
"and",
"settings",
"from",
"this",
"module",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L471-L480 |
30,351 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.doUpgrade | protected function doUpgrade()
{
//Install/update datamodel first.
$result = $this->doInstall();
$this->registry->load->model('setting/setting');
$setting = $this->registry->model_setting_setting->getSetting('acumulus_siel');
$currentDataModelVersion = isset($setting['acumul... | php | protected function doUpgrade()
{
//Install/update datamodel first.
$result = $this->doInstall();
$this->registry->load->model('setting/setting');
$setting = $this->registry->model_setting_setting->getSetting('acumulus_siel');
$currentDataModelVersion = isset($setting['acumul... | [
"protected",
"function",
"doUpgrade",
"(",
")",
"{",
"//Install/update datamodel first.",
"$",
"result",
"=",
"$",
"this",
"->",
"doInstall",
"(",
")",
";",
"$",
"this",
"->",
"registry",
"->",
"load",
"->",
"model",
"(",
"'setting/setting'",
")",
";",
"$",
... | Upgrades the data and settings for this module if needed.
The install now checks for the data model and can do an upgrade instead
of a clean install.
@return bool
Whether the upgrade was successful.
@throws \Exception | [
"Upgrades",
"the",
"data",
"and",
"settings",
"for",
"this",
"module",
"if",
"needed",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L493-L516 |
30,352 | SIELOnline/libAcumulus | src/OpenCart/Helpers/OcHelper.php | OcHelper.installEvents | protected function installEvents()
{
$this->uninstallEvents();
$location = $this->getLocation();
$model = $this->registry->getEventModel();
$model->addEvent('acumulus','catalog/model/*/addOrder/after',$location . '/eventOrderUpdate');
$model->addEvent('acumulus','catalog/mode... | php | protected function installEvents()
{
$this->uninstallEvents();
$location = $this->getLocation();
$model = $this->registry->getEventModel();
$model->addEvent('acumulus','catalog/model/*/addOrder/after',$location . '/eventOrderUpdate');
$model->addEvent('acumulus','catalog/mode... | [
"protected",
"function",
"installEvents",
"(",
")",
"{",
"$",
"this",
"->",
"uninstallEvents",
"(",
")",
";",
"$",
"location",
"=",
"$",
"this",
"->",
"getLocation",
"(",
")",
";",
"$",
"model",
"=",
"$",
"this",
"->",
"registry",
"->",
"getEventModel",
... | Installs our events.
This will add them to the table 'event' from where they are registered on
the start of each request. The controller actions can be found in the
catalog controller for the catalog events and the admin controller for
the admin events.
To support updating, this will also be called by the index funct... | [
"Installs",
"our",
"events",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/OcHelper.php#L535-L545 |
30,353 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.validateRelationFields | protected function validateRelationFields()
{
if (empty($this->submittedValues['sendCustomer']) && !empty($this->submittedValues['emailAsPdf'])) {
$this->warningMessages['conflicting_options'] = $this->t('message_validate_conflicting_options');
}
} | php | protected function validateRelationFields()
{
if (empty($this->submittedValues['sendCustomer']) && !empty($this->submittedValues['emailAsPdf'])) {
$this->warningMessages['conflicting_options'] = $this->t('message_validate_conflicting_options');
}
} | [
"protected",
"function",
"validateRelationFields",
"(",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"submittedValues",
"[",
"'sendCustomer'",
"]",
")",
"&&",
"!",
"empty",
"(",
"$",
"this",
"->",
"submittedValues",
"[",
"'emailAsPdf'",
"]",
")",
... | Validates fields in the relation management settings fieldset. | [
"Validates",
"fields",
"in",
"the",
"relation",
"management",
"settings",
"fieldset",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L28-L33 |
30,354 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.validateOptionsFields | protected function validateOptionsFields()
{
if ($this->submittedValues['optionsAllOn1Line'] == PHP_INT_MAX && $this->submittedValues['optionsAllOnOwnLine'] == 1) {
$this->errorMessages['optionsAllOnOwnLine'] = $this->t('message_validate_options_0');
}
if ($this->submittedValues[... | php | protected function validateOptionsFields()
{
if ($this->submittedValues['optionsAllOn1Line'] == PHP_INT_MAX && $this->submittedValues['optionsAllOnOwnLine'] == 1) {
$this->errorMessages['optionsAllOnOwnLine'] = $this->t('message_validate_options_0');
}
if ($this->submittedValues[... | [
"protected",
"function",
"validateOptionsFields",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"submittedValues",
"[",
"'optionsAllOn1Line'",
"]",
"==",
"PHP_INT_MAX",
"&&",
"$",
"this",
"->",
"submittedValues",
"[",
"'optionsAllOnOwnLine'",
"]",
"==",
"1",
")",... | Validates fields in the "Invoice" settings fieldset. | [
"Validates",
"fields",
"in",
"the",
"Invoice",
"settings",
"fieldset",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L38-L50 |
30,355 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.validateEmailAsPdfFields | protected function validateEmailAsPdfFields()
{
// Check for valid email address if no token syntax is used.
$regexpEmail = '/^[^@<>,; "\']+@([^.@ ,;]+\.)+[^.@ ,;]+$/';
if (!empty($this->submittedValues['emailTo']) && strpos($this->submittedValues['emailTo'], '[') === false && !preg_match($r... | php | protected function validateEmailAsPdfFields()
{
// Check for valid email address if no token syntax is used.
$regexpEmail = '/^[^@<>,; "\']+@([^.@ ,;]+\.)+[^.@ ,;]+$/';
if (!empty($this->submittedValues['emailTo']) && strpos($this->submittedValues['emailTo'], '[') === false && !preg_match($r... | [
"protected",
"function",
"validateEmailAsPdfFields",
"(",
")",
"{",
"// Check for valid email address if no token syntax is used.",
"$",
"regexpEmail",
"=",
"'/^[^@<>,; \"\\']+@([^.@ ,;]+\\.)+[^.@ ,;]+$/'",
";",
"if",
"(",
"!",
"empty",
"(",
"$",
"this",
"->",
"submittedValue... | Validates fields in the "Email as pdf" settings fieldset. | [
"Validates",
"fields",
"in",
"the",
"Email",
"as",
"pdf",
"settings",
"fieldset",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L55-L73 |
30,356 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.getInvoiceLinesFields | protected function getInvoiceLinesFields()
{
$fields = array(
'itemNumber' => array(
'type' => 'text',
'label' => $this->t('field_itemNumber'),
'description' => $this->t('desc_itemNumber') . ' ' . $this->t('msg_token'),
'attributes'... | php | protected function getInvoiceLinesFields()
{
$fields = array(
'itemNumber' => array(
'type' => 'text',
'label' => $this->t('field_itemNumber'),
'description' => $this->t('desc_itemNumber') . ' ' . $this->t('msg_token'),
'attributes'... | [
"protected",
"function",
"getInvoiceLinesFields",
"(",
")",
"{",
"$",
"fields",
"=",
"array",
"(",
"'itemNumber'",
"=>",
"array",
"(",
"'type'",
"=>",
"'text'",
",",
"'label'",
"=>",
"$",
"this",
"->",
"t",
"(",
"'field_itemNumber'",
")",
",",
"'description'... | Returns the set of invoice line related fields.
The fields returned:
- itemNumber
- productName
- nature
- costPrice
@return array[]
The set of invoice line related fields. | [
"Returns",
"the",
"set",
"of",
"invoice",
"line",
"related",
"fields",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L556-L593 |
30,357 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.getOptionsFields | protected function getOptionsFields()
{
$fields = array(
'showOptions' => array(
'type' => 'checkbox',
'label' => $this->t('field_showOptions'),
'description' => $this->t('desc_showOptions'),
'options' => array(
... | php | protected function getOptionsFields()
{
$fields = array(
'showOptions' => array(
'type' => 'checkbox',
'label' => $this->t('field_showOptions'),
'description' => $this->t('desc_showOptions'),
'options' => array(
... | [
"protected",
"function",
"getOptionsFields",
"(",
")",
"{",
"$",
"fields",
"=",
"array",
"(",
"'showOptions'",
"=>",
"array",
"(",
"'type'",
"=>",
"'checkbox'",
",",
"'label'",
"=>",
"$",
"this",
"->",
"t",
"(",
"'field_showOptions'",
")",
",",
"'description... | Returns the set of options related fields.
The fields returned:
- optionsAllOn1Line
- optionsAllOnOwnLine
- optionsMaxLength
@return array[]
The set of options related fields. | [
"Returns",
"the",
"set",
"of",
"options",
"related",
"fields",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L606-L643 |
30,358 | SIELOnline/libAcumulus | src/Shop/AdvancedConfigForm.php | AdvancedConfigForm.getEmailAsPdfFields | protected function getEmailAsPdfFields()
{
return array(
'emailAsPdf_cb' => array(
'type' => 'checkbox',
'label' => $this->t('field_emailAsPdf'),
'description' => $this->t('desc_emailAsPdf'),
'options' => array(
... | php | protected function getEmailAsPdfFields()
{
return array(
'emailAsPdf_cb' => array(
'type' => 'checkbox',
'label' => $this->t('field_emailAsPdf'),
'description' => $this->t('desc_emailAsPdf'),
'options' => array(
... | [
"protected",
"function",
"getEmailAsPdfFields",
"(",
")",
"{",
"return",
"array",
"(",
"'emailAsPdf_cb'",
"=>",
"array",
"(",
"'type'",
"=>",
"'checkbox'",
",",
"'label'",
"=>",
"$",
"this",
"->",
"t",
"(",
"'field_emailAsPdf'",
")",
",",
"'description'",
"=>"... | Returns the set of 'email invoice as PDF' related fields.
The fields returned:
- emailAsPdf
- emailFrom
- emailBcc
- subject
@return array[]
The set of 'email invoice as PDF' related fields. | [
"Returns",
"the",
"set",
"of",
"email",
"invoice",
"as",
"PDF",
"related",
"fields",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/AdvancedConfigForm.php#L657-L702 |
30,359 | SIELOnline/libAcumulus | src/Shop/BaseConfigForm.php | BaseConfigForm.checkAccountSettings | protected function checkAccountSettings()
{
// Check if we can retrieve a picklist. This indicates if the account
// settings are correct.
$message = '';
$credentials = $this->acumulusConfig->getCredentials();
if (!empty($credentials[Tag::ContractCode]) && !empty($credentials... | php | protected function checkAccountSettings()
{
// Check if we can retrieve a picklist. This indicates if the account
// settings are correct.
$message = '';
$credentials = $this->acumulusConfig->getCredentials();
if (!empty($credentials[Tag::ContractCode]) && !empty($credentials... | [
"protected",
"function",
"checkAccountSettings",
"(",
")",
"{",
"// Check if we can retrieve a picklist. This indicates if the account",
"// settings are correct.",
"$",
"message",
"=",
"''",
";",
"$",
"credentials",
"=",
"$",
"this",
"->",
"acumulusConfig",
"->",
"getCrede... | Checks the account settings for correctness and sufficient authorization.
This is done by calling the about API call and checking the result.
@return string
Message to show in the 2nd and 3rd fieldset. Empty if successful. | [
"Checks",
"the",
"account",
"settings",
"for",
"correctness",
"and",
"sufficient",
"authorization",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/BaseConfigForm.php#L112-L150 |
30,360 | SIELOnline/libAcumulus | src/Shop/BaseConfigForm.php | BaseConfigForm.getOptionsOrHiddenField | protected function getOptionsOrHiddenField($name, $type, $required = true, array $options = null)
{
if ($options === null) {
$methodName = 'get' . ucfirst($name) . 'Options';
$options = $this->shopCapabilities->$methodName();
}
if (count($options) === 1) {
... | php | protected function getOptionsOrHiddenField($name, $type, $required = true, array $options = null)
{
if ($options === null) {
$methodName = 'get' . ucfirst($name) . 'Options';
$options = $this->shopCapabilities->$methodName();
}
if (count($options) === 1) {
... | [
"protected",
"function",
"getOptionsOrHiddenField",
"(",
"$",
"name",
",",
"$",
"type",
",",
"$",
"required",
"=",
"true",
",",
"array",
"$",
"options",
"=",
"null",
")",
"{",
"if",
"(",
"$",
"options",
"===",
"null",
")",
"{",
"$",
"methodName",
"=",
... | Creates a hidden or an option field
If there is only 1 option, a hidden value with a fixed value will be
created, an option field that gives the user th choice otherwise.
@param string $name
The field name.
@param string $type
The field type: radio or select.
@param bool $required
Whether the required attribute shoul... | [
"Creates",
"a",
"hidden",
"or",
"an",
"option",
"field"
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/BaseConfigForm.php#L198-L222 |
30,361 | SIELOnline/libAcumulus | src/Shop/BaseConfigForm.php | BaseConfigForm.getOrderStatusesList | protected function getOrderStatusesList()
{
$result = array();
// Because many users won't know how to deselect a single option in a
// multiple select element, an empty option is added.
$result['0'] = $this->t('option_empty_triggerOrderStatus');
$result += $this->shopCapabi... | php | protected function getOrderStatusesList()
{
$result = array();
// Because many users won't know how to deselect a single option in a
// multiple select element, an empty option is added.
$result['0'] = $this->t('option_empty_triggerOrderStatus');
$result += $this->shopCapabi... | [
"protected",
"function",
"getOrderStatusesList",
"(",
")",
"{",
"$",
"result",
"=",
"array",
"(",
")",
";",
"// Because many users won't know how to deselect a single option in a",
"// multiple select element, an empty option is added.",
"$",
"result",
"[",
"'0'",
"]",
"=",
... | Returns an option list of all order statuses including an empty choice.
@return array
An options array of all order statuses. | [
"Returns",
"an",
"option",
"list",
"of",
"all",
"order",
"statuses",
"including",
"an",
"empty",
"choice",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Shop/BaseConfigForm.php#L282-L292 |
30,362 | ipunkt/rancherize | app/Blueprint/Flags/HasFlagsTrait.php | HasFlagsTrait.getFlag | public function getFlag(string $flag, $default = null) {
if( !array_key_exists($flag, $this->flags) )
return $default;
return $this->flags[$flag];
} | php | public function getFlag(string $flag, $default = null) {
if( !array_key_exists($flag, $this->flags) )
return $default;
return $this->flags[$flag];
} | [
"public",
"function",
"getFlag",
"(",
"string",
"$",
"flag",
",",
"$",
"default",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"array_key_exists",
"(",
"$",
"flag",
",",
"$",
"this",
"->",
"flags",
")",
")",
"return",
"$",
"default",
";",
"return",
"$",
... | Return the set value for the given flag. If the flag was not set then the given default value is returned
@param string $flag
@param mixed $default
@return null | [
"Return",
"the",
"set",
"value",
"for",
"the",
"given",
"flag",
".",
"If",
"the",
"flag",
"was",
"not",
"set",
"then",
"the",
"given",
"default",
"value",
"is",
"returned"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Blueprint/Flags/HasFlagsTrait.php#L35-L39 |
30,363 | SIELOnline/libAcumulus | src/WooCommerce/Shop/InvoiceManager.php | InvoiceManager.query2Sources | protected function query2Sources(array $args, $invoiceSourceType, $sort = true)
{
$this->getLog()->info('WooCommerce\InvoiceManager::query2Sources: args = %s', str_replace(array(' ', "\r", "\n", "\t"), '', var_export($args, true)));
// Add default arguments.
$args = $args + array(
... | php | protected function query2Sources(array $args, $invoiceSourceType, $sort = true)
{
$this->getLog()->info('WooCommerce\InvoiceManager::query2Sources: args = %s', str_replace(array(' ', "\r", "\n", "\t"), '', var_export($args, true)));
// Add default arguments.
$args = $args + array(
... | [
"protected",
"function",
"query2Sources",
"(",
"array",
"$",
"args",
",",
"$",
"invoiceSourceType",
",",
"$",
"sort",
"=",
"true",
")",
"{",
"$",
"this",
"->",
"getLog",
"(",
")",
"->",
"info",
"(",
"'WooCommerce\\InvoiceManager::query2Sources: args = %s'",
",",... | Helper method to get a list of Source given a set of query arguments.
@param array $args
@param string $invoiceSourceType
@param bool $sort
@return \Siel\Acumulus\Invoice\Source[] | [
"Helper",
"method",
"to",
"get",
"a",
"list",
"of",
"Source",
"given",
"a",
"set",
"of",
"query",
"arguments",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/WooCommerce/Shop/InvoiceManager.php#L227-L243 |
30,364 | ipunkt/rancherize | app/Push/CreateModeFactory/ContainerCreateModeFactory.php | ContainerCreateModeFactory.register | public function register( $modeName, CreateMode $createMode ) {
if( empty($this->defaultMode) )
$this->defaultMode = $modeName;
$this->container[$modeName] = function() use ($createMode) {
return $createMode;
};
} | php | public function register( $modeName, CreateMode $createMode ) {
if( empty($this->defaultMode) )
$this->defaultMode = $modeName;
$this->container[$modeName] = function() use ($createMode) {
return $createMode;
};
} | [
"public",
"function",
"register",
"(",
"$",
"modeName",
",",
"CreateMode",
"$",
"createMode",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"this",
"->",
"defaultMode",
")",
")",
"$",
"this",
"->",
"defaultMode",
"=",
"$",
"modeName",
";",
"$",
"this",
"->",... | Register a createMode.
If no Mode is registered yet it will be used as the default mode
@param $modeName
@param CreateMode $createMode | [
"Register",
"a",
"createMode",
".",
"If",
"no",
"Mode",
"is",
"registered",
"yet",
"it",
"will",
"be",
"used",
"as",
"the",
"default",
"mode"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Push/CreateModeFactory/ContainerCreateModeFactory.php#L56-L63 |
30,365 | SIELOnline/libAcumulus | src/OpenCart/OpenCart2/OpenCart23/Helpers/Registry.php | Registry.getLink | public function getLink($route)
{
$token = 'token';
$secure = true;
return $this->url->link($route, $token . '=' . $this->session->data[$token], $secure);
} | php | public function getLink($route)
{
$token = 'token';
$secure = true;
return $this->url->link($route, $token . '=' . $this->session->data[$token], $secure);
} | [
"public",
"function",
"getLink",
"(",
"$",
"route",
")",
"{",
"$",
"token",
"=",
"'token'",
";",
"$",
"secure",
"=",
"true",
";",
"return",
"$",
"this",
"->",
"url",
"->",
"link",
"(",
"$",
"route",
",",
"$",
"token",
".",
"'='",
".",
"$",
"this"... | Returns a link to the given route.
@param string $route
@return string
The link to the given route, including standard arguments. | [
"Returns",
"a",
"link",
"to",
"the",
"given",
"route",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/OpenCart2/OpenCart23/Helpers/Registry.php#L55-L60 |
30,366 | SIELOnline/libAcumulus | src/Magento/Invoice/Source.php | Source.getPaymentStatusOrder | protected function getPaymentStatusOrder()
{
return Number::isZero($this->source->getBaseTotalDue())
? Api::PaymentStatus_Paid
: Api::PaymentStatus_Due;
} | php | protected function getPaymentStatusOrder()
{
return Number::isZero($this->source->getBaseTotalDue())
? Api::PaymentStatus_Paid
: Api::PaymentStatus_Due;
} | [
"protected",
"function",
"getPaymentStatusOrder",
"(",
")",
"{",
"return",
"Number",
"::",
"isZero",
"(",
"$",
"this",
"->",
"source",
"->",
"getBaseTotalDue",
"(",
")",
")",
"?",
"Api",
"::",
"PaymentStatus_Paid",
":",
"Api",
"::",
"PaymentStatus_Due",
";",
... | Returns whether the order has been paid or not.
@return int
\Siel\Acumulus\Api::PaymentStatus_Paid or
\Siel\Acumulus\Api::PaymentStatus_Due | [
"Returns",
"whether",
"the",
"order",
"has",
"been",
"paid",
"or",
"not",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Magento/Invoice/Source.php#L115-L120 |
30,367 | SIELOnline/libAcumulus | src/OpenCart/Invoice/Source.php | Source.getOrderTotalLines | public function getOrderTotalLines()
{
if (!$this->orderTotalLines) {
$orderModel = $this->getRegistry()->getOrderModel();
$this->orderTotalLines = $orderModel->getOrderTotals($this->source['order_id']);
}
return $this->orderTotalLines;
} | php | public function getOrderTotalLines()
{
if (!$this->orderTotalLines) {
$orderModel = $this->getRegistry()->getOrderModel();
$this->orderTotalLines = $orderModel->getOrderTotals($this->source['order_id']);
}
return $this->orderTotalLines;
} | [
"public",
"function",
"getOrderTotalLines",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"orderTotalLines",
")",
"{",
"$",
"orderModel",
"=",
"$",
"this",
"->",
"getRegistry",
"(",
")",
"->",
"getOrderModel",
"(",
")",
";",
"$",
"this",
"->",
"ord... | Returns a list of OpenCart order total records. These are shipment,
other fee, tax, and discount lines.
@return array[]
@throws \Exception | [
"Returns",
"a",
"list",
"of",
"OpenCart",
"order",
"total",
"records",
".",
"These",
"are",
"shipment",
"other",
"fee",
"tax",
"and",
"discount",
"lines",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Invoice/Source.php#L155-L162 |
30,368 | SIELOnline/libAcumulus | src/Helpers/Container.php | Container.getForm | public function getForm($type)
{
$arguments = array();
switch (strtolower($type)) {
case 'config':
$class = 'Config';
$arguments[] = $this->getService();
break;
case 'advanced':
$class = 'AdvancedConfig';
... | php | public function getForm($type)
{
$arguments = array();
switch (strtolower($type)) {
case 'config':
$class = 'Config';
$arguments[] = $this->getService();
break;
case 'advanced':
$class = 'AdvancedConfig';
... | [
"public",
"function",
"getForm",
"(",
"$",
"type",
")",
"{",
"$",
"arguments",
"=",
"array",
"(",
")",
";",
"switch",
"(",
"strtolower",
"(",
"$",
"type",
")",
")",
"{",
"case",
"'config'",
":",
"$",
"class",
"=",
"'Config'",
";",
"$",
"arguments",
... | Returns a form instance of the given type.
@param string $type
The type of form requested.
@return \Siel\Acumulus\Helpers\Form | [
"Returns",
"a",
"form",
"instance",
"of",
"the",
"given",
"type",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Container.php#L493-L527 |
30,369 | SIELOnline/libAcumulus | src/Helpers/Container.php | Container.getInstance | public function getInstance($class, $subNamespace, array $constructorArgs = array(), $newInstance = false)
{
if (!isset($this->instances[$class]) || $newInstance) {
// Try custom namespace.
if (!empty($this->customNamespace)) {
$fqClass = $this->tryNsInstance($class, ... | php | public function getInstance($class, $subNamespace, array $constructorArgs = array(), $newInstance = false)
{
if (!isset($this->instances[$class]) || $newInstance) {
// Try custom namespace.
if (!empty($this->customNamespace)) {
$fqClass = $this->tryNsInstance($class, ... | [
"public",
"function",
"getInstance",
"(",
"$",
"class",
",",
"$",
"subNamespace",
",",
"array",
"$",
"constructorArgs",
"=",
"array",
"(",
")",
",",
"$",
"newInstance",
"=",
"false",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"instances... | Returns an instance of the given class.
This method should normally be avoided, use the get{Class}() methods as
they know (and hide) what arguments to inject into the constructor.
The class is looked for in multiple namespaces, starting with the
$customNameSpace properties, continuing with the $shopNamespace property... | [
"Returns",
"an",
"instance",
"of",
"the",
"given",
"class",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Container.php#L559-L600 |
30,370 | SIELOnline/libAcumulus | src/Helpers/Container.php | Container.tryNsInstance | protected function tryNsInstance($class, $subNamespace, $namespace)
{
$fqClass = $this->getFqClass($class, $subNamespace, $namespace);
$fileName = $this->getFileName($fqClass);
// Checking if the file exists prevents warnings in Magento whose own
// autoloader logs warnings when a cl... | php | protected function tryNsInstance($class, $subNamespace, $namespace)
{
$fqClass = $this->getFqClass($class, $subNamespace, $namespace);
$fileName = $this->getFileName($fqClass);
// Checking if the file exists prevents warnings in Magento whose own
// autoloader logs warnings when a cl... | [
"protected",
"function",
"tryNsInstance",
"(",
"$",
"class",
",",
"$",
"subNamespace",
",",
"$",
"namespace",
")",
"{",
"$",
"fqClass",
"=",
"$",
"this",
"->",
"getFqClass",
"(",
"$",
"class",
",",
"$",
"subNamespace",
",",
"$",
"namespace",
")",
";",
... | Tries to find a class in the given namespace.
@param $class
The class to find.
@param $subNamespace
The sub namespace to add to the namespace.
@param $namespace
The namespace to search in.
@return string
The full name of the class or the empty string if it does not exist in
the given namespace. | [
"Tries",
"to",
"find",
"a",
"class",
"in",
"the",
"given",
"namespace",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/Container.php#L616-L623 |
30,371 | SIELOnline/libAcumulus | src/OpenCart/Helpers/Registry.php | Registry.getOrder | public function getOrder($orderId)
{
if (strrpos(str_replace('\\', '/', DIR_APPLICATION), '/catalog/') === strlen(DIR_APPLICATION) - strlen('/catalog/')) {
// We are in the catalog section, use the checkout/order model as
// ModelAccountOrder::getOrder() also checks on user_id!
... | php | public function getOrder($orderId)
{
if (strrpos(str_replace('\\', '/', DIR_APPLICATION), '/catalog/') === strlen(DIR_APPLICATION) - strlen('/catalog/')) {
// We are in the catalog section, use the checkout/order model as
// ModelAccountOrder::getOrder() also checks on user_id!
... | [
"public",
"function",
"getOrder",
"(",
"$",
"orderId",
")",
"{",
"if",
"(",
"strrpos",
"(",
"str_replace",
"(",
"'\\\\'",
",",
"'/'",
",",
"DIR_APPLICATION",
")",
",",
"'/catalog/'",
")",
"===",
"strlen",
"(",
"DIR_APPLICATION",
")",
"-",
"strlen",
"(",
... | Returns the order.
@param int $orderId
@return array|false
@throws \Exception | [
"Returns",
"the",
"order",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Helpers/Registry.php#L141-L154 |
30,372 | SIELOnline/libAcumulus | src/Helpers/FormHelper.php | FormHelper.addMetaField | public function addMetaField(array $fields)
{
$this->setMeta($this->constructFieldMeta($fields));
$fields[static::Meta] = array(
'type' => 'hidden',
'value' => json_encode($this->getMeta()),
);
return $fields;
} | php | public function addMetaField(array $fields)
{
$this->setMeta($this->constructFieldMeta($fields));
$fields[static::Meta] = array(
'type' => 'hidden',
'value' => json_encode($this->getMeta()),
);
return $fields;
} | [
"public",
"function",
"addMetaField",
"(",
"array",
"$",
"fields",
")",
"{",
"$",
"this",
"->",
"setMeta",
"(",
"$",
"this",
"->",
"constructFieldMeta",
"(",
"$",
"fields",
")",
")",
";",
"$",
"fields",
"[",
"static",
"::",
"Meta",
"]",
"=",
"array",
... | Returns the keys of the fields in the given array.
Internal method, do not call directly.
@param array[] $fields
@return array
Array of key names, keyed by these names. | [
"Returns",
"the",
"keys",
"of",
"the",
"fields",
"in",
"the",
"given",
"array",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/FormHelper.php#L74-L82 |
30,373 | SIELOnline/libAcumulus | src/Helpers/FormHelper.php | FormHelper.constructFieldMeta | protected function constructFieldMeta(array $fields)
{
$result = array();
foreach ($fields as $key => $field) {
$name = isset($field['name']) ? $field['name'] : (isset($field['id']) ? $field['id'] : $key);
$type = $field['type'];
if ($type === 'checkbox') {
... | php | protected function constructFieldMeta(array $fields)
{
$result = array();
foreach ($fields as $key => $field) {
$name = isset($field['name']) ? $field['name'] : (isset($field['id']) ? $field['id'] : $key);
$type = $field['type'];
if ($type === 'checkbox') {
... | [
"protected",
"function",
"constructFieldMeta",
"(",
"array",
"$",
"fields",
")",
"{",
"$",
"result",
"=",
"array",
"(",
")",
";",
"foreach",
"(",
"$",
"fields",
"as",
"$",
"key",
"=>",
"$",
"field",
")",
"{",
"$",
"name",
"=",
"isset",
"(",
"$",
"f... | Returns meta data about the given fields.
Internal method, do not call directly.
@param array[] $fields
@return array
Associative array of field names and their types. | [
"Returns",
"meta",
"data",
"about",
"the",
"given",
"fields",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/FormHelper.php#L94-L120 |
30,374 | SIELOnline/libAcumulus | src/Helpers/FormHelper.php | FormHelper.isArray | public function isArray($key)
{
$fieldMeta = $this->getMeta();
return isset($fieldMeta[$key]) && substr($fieldMeta[$key]->name, -strlen('[]')) === '[]';
} | php | public function isArray($key)
{
$fieldMeta = $this->getMeta();
return isset($fieldMeta[$key]) && substr($fieldMeta[$key]->name, -strlen('[]')) === '[]';
} | [
"public",
"function",
"isArray",
"(",
"$",
"key",
")",
"{",
"$",
"fieldMeta",
"=",
"$",
"this",
"->",
"getMeta",
"(",
")",
";",
"return",
"isset",
"(",
"$",
"fieldMeta",
"[",
"$",
"key",
"]",
")",
"&&",
"substr",
"(",
"$",
"fieldMeta",
"[",
"$",
... | Indicates whether the given key defines an array field.
@param string $key
The name of the field.
@return bool
Whether the given key defines an array field. | [
"Indicates",
"whether",
"the",
"given",
"key",
"defines",
"an",
"array",
"field",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/FormHelper.php#L160-L164 |
30,375 | SIELOnline/libAcumulus | src/Helpers/FormHelper.php | FormHelper.isCheckbox | public function isCheckbox($key)
{
$fieldMeta = $this->getMeta();
return isset($fieldMeta[$key]) && $fieldMeta[$key]->type === 'checkbox';
} | php | public function isCheckbox($key)
{
$fieldMeta = $this->getMeta();
return isset($fieldMeta[$key]) && $fieldMeta[$key]->type === 'checkbox';
} | [
"public",
"function",
"isCheckbox",
"(",
"$",
"key",
")",
"{",
"$",
"fieldMeta",
"=",
"$",
"this",
"->",
"getMeta",
"(",
")",
";",
"return",
"isset",
"(",
"$",
"fieldMeta",
"[",
"$",
"key",
"]",
")",
"&&",
"$",
"fieldMeta",
"[",
"$",
"key",
"]",
... | Indicates whether the given key defines a checkbox field.
@param string $key
The name of the field.
@return bool
Whether the given key defines a checkbox field. | [
"Indicates",
"whether",
"the",
"given",
"key",
"defines",
"a",
"checkbox",
"field",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/FormHelper.php#L175-L179 |
30,376 | SIELOnline/libAcumulus | src/Helpers/FormHelper.php | FormHelper.getPostedValues | public function getPostedValues()
{
$result = $_POST;
$result = $this->alterPostedValues($result);
unset($result[static::Meta]);
return $result;
} | php | public function getPostedValues()
{
$result = $_POST;
$result = $this->alterPostedValues($result);
unset($result[static::Meta]);
return $result;
} | [
"public",
"function",
"getPostedValues",
"(",
")",
"{",
"$",
"result",
"=",
"$",
"_POST",
";",
"$",
"result",
"=",
"$",
"this",
"->",
"alterPostedValues",
"(",
"$",
"result",
")",
";",
"unset",
"(",
"$",
"result",
"[",
"static",
"::",
"Meta",
"]",
")... | Returns a flat array of the posted values.
As especially checkbox handling differs per webshop, often resulting in
an array of checkbox values, this method returns a flattened version of
the posted values.
@return array | [
"Returns",
"a",
"flat",
"array",
"of",
"the",
"posted",
"values",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Helpers/FormHelper.php#L190-L196 |
30,377 | ipunkt/rancherize | app/Services/ValidateService.php | ValidateService.validate | public function validate(Blueprint $blueprint, Configuration $configuration, string $environment) {
$projectConfigurable = new PrefixConfigurationDecorator($configuration, "project.default.");
$environmentConfigurable = new PrefixConfigurationDecorator($configuration, "project.environments.$environment.");
$fall... | php | public function validate(Blueprint $blueprint, Configuration $configuration, string $environment) {
$projectConfigurable = new PrefixConfigurationDecorator($configuration, "project.default.");
$environmentConfigurable = new PrefixConfigurationDecorator($configuration, "project.environments.$environment.");
$fall... | [
"public",
"function",
"validate",
"(",
"Blueprint",
"$",
"blueprint",
",",
"Configuration",
"$",
"configuration",
",",
"string",
"$",
"environment",
")",
"{",
"$",
"projectConfigurable",
"=",
"new",
"PrefixConfigurationDecorator",
"(",
"$",
"configuration",
",",
"... | validate the configuration for the given environment
@param Blueprint $blueprint
@param string $environment
@param Configuration $configuration | [
"validate",
"the",
"configuration",
"for",
"the",
"given",
"environment"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Services/ValidateService.php#L40-L55 |
30,378 | ipunkt/rancherize | app/Services/ValidateService.php | ValidateService.print | public function print(ValidationFailedException $e, OutputInterface $output) {
$table = new Table($output);
$table->setHeaders( ['Field', 'Problem'] );
$i = 0;
foreach( $e->getFailures() as $field => $messages ) {
foreach($messages as $message)
$table->setRow( $i++, [$field, $message] );
}
$table... | php | public function print(ValidationFailedException $e, OutputInterface $output) {
$table = new Table($output);
$table->setHeaders( ['Field', 'Problem'] );
$i = 0;
foreach( $e->getFailures() as $field => $messages ) {
foreach($messages as $message)
$table->setRow( $i++, [$field, $message] );
}
$table... | [
"public",
"function",
"print",
"(",
"ValidationFailedException",
"$",
"e",
",",
"OutputInterface",
"$",
"output",
")",
"{",
"$",
"table",
"=",
"new",
"Table",
"(",
"$",
"output",
")",
";",
"$",
"table",
"->",
"setHeaders",
"(",
"[",
"'Field'",
",",
"'Pro... | Print a table with one "field", "message" per row for all messages left in the ValidationFailedException
@param ValidationFailedException $e
@param OutputInterface $output | [
"Print",
"a",
"table",
"with",
"one",
"field",
"message",
"per",
"row",
"for",
"all",
"messages",
"left",
"in",
"the",
"ValidationFailedException"
] | 3c226da686b283e7fef961a9a79b54db53b8757b | https://github.com/ipunkt/rancherize/blob/3c226da686b283e7fef961a9a79b54db53b8757b/app/Services/ValidateService.php#L63-L76 |
30,379 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Helper.validateZipCode | public static function validateZipCode($zipCode, $country) {
switch (strtoupper($country)) {
case 'NL':
if (preg_match('/^[1-9]{1}[0-9]{3}[A-Z]{2}$/', $zipCode))
return true;
break;
case 'BE':
if (preg_match('/^[1-9]{4}$... | php | public static function validateZipCode($zipCode, $country) {
switch (strtoupper($country)) {
case 'NL':
if (preg_match('/^[1-9]{1}[0-9]{3}[A-Z]{2}$/', $zipCode))
return true;
break;
case 'BE':
if (preg_match('/^[1-9]{4}$... | [
"public",
"static",
"function",
"validateZipCode",
"(",
"$",
"zipCode",
",",
"$",
"country",
")",
"{",
"switch",
"(",
"strtoupper",
"(",
"$",
"country",
")",
")",
"{",
"case",
"'NL'",
":",
"if",
"(",
"preg_match",
"(",
"'/^[1-9]{1}[0-9]{3}[A-Z]{2}$/'",
",",
... | Validates a zipcode based on country
@since 1.0.0
@param string $zipCode A string containing the zipcode
@param string $country A string containing the ISO 3166-1 alpha-2 code of the country
@example validateZipCode('1122AA', 'NL')
@return boolean | [
"Validates",
"a",
"zipcode",
"based",
"on",
"country"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L84-L101 |
30,380 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Product.setProductID | public function setProductID($productID) {
if (empty($productID))
throw new Exception('Product ID must be set and cannot be empty.');
$this->productID = trim($productID);
return $this;
} | php | public function setProductID($productID) {
if (empty($productID))
throw new Exception('Product ID must be set and cannot be empty.');
$this->productID = trim($productID);
return $this;
} | [
"public",
"function",
"setProductID",
"(",
"$",
"productID",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"productID",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Product ID must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"productID",
"=",
"trim"... | Sets the product ID
@since 1.0.0
@param string Contains the product ID
@return \Icepay_Order_Product
@throws Exception when empty | [
"Sets",
"the",
"product",
"ID"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L177-L184 |
30,381 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Product.setProductName | public function setProductName($productName) {
if (empty($productName))
throw new Exception('Product name must be set and cannot be empty.');
$this->productName = trim($productName);
return $this;
} | php | public function setProductName($productName) {
if (empty($productName))
throw new Exception('Product name must be set and cannot be empty.');
$this->productName = trim($productName);
return $this;
} | [
"public",
"function",
"setProductName",
"(",
"$",
"productName",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"productName",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Product name must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"productName",
"="... | Sets the product name
@since 1.0.0
@param string Contains the product name
@return \Icepay_Order_Product
@throws Exception when empty | [
"Sets",
"the",
"product",
"name"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L194-L201 |
30,382 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Product.setQuantity | public function setQuantity($quantity) {
if (empty($quantity))
throw new Exception('Quantity must be set and cannot be empty.');
$this->quantity = trim($quantity);
return $this;
} | php | public function setQuantity($quantity) {
if (empty($quantity))
throw new Exception('Quantity must be set and cannot be empty.');
$this->quantity = trim($quantity);
return $this;
} | [
"public",
"function",
"setQuantity",
"(",
"$",
"quantity",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"quantity",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Quantity must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"quantity",
"=",
"trim",
"(... | Sets the product quantity
@since 1.0.0
@param string Contains the quantity of the product
@return \Icepay_Order_Product
@throws Exception when empty | [
"Sets",
"the",
"product",
"quantity"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L225-L232 |
30,383 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setInitials | public function setInitials($initials) {
if (empty($initials))
throw new Exception('Initials must be set and cannot be empty.');
$this->initials = trim($initials);
return $this;
} | php | public function setInitials($initials) {
if (empty($initials))
throw new Exception('Initials must be set and cannot be empty.');
$this->initials = trim($initials);
return $this;
} | [
"public",
"function",
"setInitials",
"(",
"$",
"initials",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"initials",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Initials must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"initials",
"=",
"trim",
"(... | Sets the initials
@since 1.0.0
@param string A string containing the initials
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"initials"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L308-L315 |
30,384 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setLastName | public function setLastName($lastName) {
if (empty($lastName))
throw new Exception('Lastname must be set and cannot be empty.');
$this->lastName = trim($lastName);
return $this;
} | php | public function setLastName($lastName) {
if (empty($lastName))
throw new Exception('Lastname must be set and cannot be empty.');
$this->lastName = trim($lastName);
return $this;
} | [
"public",
"function",
"setLastName",
"(",
"$",
"lastName",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"lastName",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Lastname must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"lastName",
"=",
"trim",
"(... | Sets the last name
@since 1.0.0
@param string A string containing the family name
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"last",
"name"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L339-L346 |
30,385 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setStreet | public function setStreet($street) {
if (empty($street))
throw new Exception('Streetname must be set and cannot be empty.');
$this->street = trim($street);
return $this;
} | php | public function setStreet($street) {
if (empty($street))
throw new Exception('Streetname must be set and cannot be empty.');
$this->street = trim($street);
return $this;
} | [
"public",
"function",
"setStreet",
"(",
"$",
"street",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"street",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Streetname must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"street",
"=",
"trim",
"(",
"... | Sets the streetname
@since 1.0.0
@param string A string containing the streetname
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"streetname"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L356-L363 |
30,386 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setHouseNumber | public function setHouseNumber($houseNumber) {
if (empty($houseNumber))
throw new Exception('Housenumber must be set and cannot be empty.');
$this->houseNumber = trim($houseNumber);
return $this;
} | php | public function setHouseNumber($houseNumber) {
if (empty($houseNumber))
throw new Exception('Housenumber must be set and cannot be empty.');
$this->houseNumber = trim($houseNumber);
return $this;
} | [
"public",
"function",
"setHouseNumber",
"(",
"$",
"houseNumber",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"houseNumber",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Housenumber must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"houseNumber",
"=",... | Sets the housenumber
@since 1.0.0
@param string A string containing the housenumber
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"housenumber"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L373-L380 |
30,387 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setZipCode | public function setZipCode($zipCode) {
if (empty($zipCode))
throw new Exception('Zipcode must be set and cannot be empty.');
$zipCode = str_replace(' ', '', $zipCode);
$this->zipCode = trim($zipCode);
return $this;
} | php | public function setZipCode($zipCode) {
if (empty($zipCode))
throw new Exception('Zipcode must be set and cannot be empty.');
$zipCode = str_replace(' ', '', $zipCode);
$this->zipCode = trim($zipCode);
return $this;
} | [
"public",
"function",
"setZipCode",
"(",
"$",
"zipCode",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"zipCode",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Zipcode must be set and cannot be empty.'",
")",
";",
"$",
"zipCode",
"=",
"str_replace",
"(",
"' '",
",... | Sets the address zipcode
@since 1.0.0
@param string A string containing the zipcode
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"address",
"zipcode"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L403-L412 |
30,388 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setCity | public function setCity($city) {
if (empty($city))
throw new Exception('City must be set and cannot be empty.');
$this->city = trim($city);
return $this;
} | php | public function setCity($city) {
if (empty($city))
throw new Exception('City must be set and cannot be empty.');
$this->city = trim($city);
return $this;
} | [
"public",
"function",
"setCity",
"(",
"$",
"city",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"city",
")",
")",
"throw",
"new",
"Exception",
"(",
"'City must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"city",
"=",
"trim",
"(",
"$",
"city",
... | Sets the address city
@since 1.0.0
@param string A string containing the cityname
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"address",
"city"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L422-L429 |
30,389 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Address.setCountry | public function setCountry($country) {
if (empty($country))
throw new Exception('Country must be set and cannot be empty.');
$this->country = trim($country);
return $this;
} | php | public function setCountry($country) {
if (empty($country))
throw new Exception('Country must be set and cannot be empty.');
$this->country = trim($country);
return $this;
} | [
"public",
"function",
"setCountry",
"(",
"$",
"country",
")",
"{",
"if",
"(",
"empty",
"(",
"$",
"country",
")",
")",
"throw",
"new",
"Exception",
"(",
"'Country must be set and cannot be empty.'",
")",
";",
"$",
"this",
"->",
"country",
"=",
"trim",
"(",
... | Sets the country
@since 1.0.0
@param string A string containing the countryname
@return \Icepay_Order_Address
@throws Exception when empty | [
"Sets",
"the",
"country"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L439-L446 |
30,390 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order_Consumer.setPhone | public function setPhone($phone) {
$phone = trim(str_replace('-', '', $phone));
if (empty($phone))
throw new Exception('Phone must be set and cannot be empty.');
$this->phone = $phone;
return $this;
} | php | public function setPhone($phone) {
$phone = trim(str_replace('-', '', $phone));
if (empty($phone))
throw new Exception('Phone must be set and cannot be empty.');
$this->phone = $phone;
return $this;
} | [
"public",
"function",
"setPhone",
"(",
"$",
"phone",
")",
"{",
"$",
"phone",
"=",
"trim",
"(",
"str_replace",
"(",
"'-'",
",",
"''",
",",
"$",
"phone",
")",
")",
";",
"if",
"(",
"empty",
"(",
"$",
"phone",
")",
")",
"throw",
"new",
"Exception",
"... | Sets the consumer's phonenumber
@since 1.0.0
@param string A string containing the consumer's phonenumber
@return \Icepay_Order_Consumer
@throws Exception when empty | [
"Sets",
"the",
"consumer",
"s",
"phonenumber"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L519-L528 |
30,391 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order.addProduct | public function addProduct(Icepay_Order_Product $obj) {
if (!isset($this->_data["products"]))
$this->_data["products"] = Array();
array_push($this->_data["products"], $obj);
return $this;
} | php | public function addProduct(Icepay_Order_Product $obj) {
if (!isset($this->_data["products"]))
$this->_data["products"] = Array();
array_push($this->_data["products"], $obj);
return $this;
} | [
"public",
"function",
"addProduct",
"(",
"Icepay_Order_Product",
"$",
"obj",
")",
"{",
"if",
"(",
"!",
"isset",
"(",
"$",
"this",
"->",
"_data",
"[",
"\"products\"",
"]",
")",
")",
"$",
"this",
"->",
"_data",
"[",
"\"products\"",
"]",
"=",
"Array",
"("... | Adds a product to the order
@since 1.0.0
@param obj object containing the Icepay_Order_Product class
@return \Icepay_Order | [
"Adds",
"a",
"product",
"to",
"the",
"order"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L600-L605 |
30,392 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order.setOrderDiscountAmount | public function setOrderDiscountAmount($amount, $name = 'Discount', $description = 'Order Discount') {
$obj = Icepay_Order_Product::create()
->setProductID('02')
->setProductName($name)
->setDescription($description)
->setQuantity('1')
... | php | public function setOrderDiscountAmount($amount, $name = 'Discount', $description = 'Order Discount') {
$obj = Icepay_Order_Product::create()
->setProductID('02')
->setProductName($name)
->setDescription($description)
->setQuantity('1')
... | [
"public",
"function",
"setOrderDiscountAmount",
"(",
"$",
"amount",
",",
"$",
"name",
"=",
"'Discount'",
",",
"$",
"description",
"=",
"'Order Discount'",
")",
"{",
"$",
"obj",
"=",
"Icepay_Order_Product",
"::",
"create",
"(",
")",
"->",
"setProductID",
"(",
... | Sets the order discount
@since 1.0.0
@param string $amount Contains the discount amount in cents
@param string $name Contains the name of the discount
@param string $description Contains description of the discount
@return \Icepay_Order | [
"Sets",
"the",
"order",
"discount"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L616-L628 |
30,393 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order.setShippingCosts | public function setShippingCosts($amount, $vat = -1, $name = 'Shipping Costs') {
$obj = Icepay_Order_Product::create()
->setProductID('01')
->setProductName($name)
->setDescription('')
->setQuantity('1')
->setUnitPrice($amount)
... | php | public function setShippingCosts($amount, $vat = -1, $name = 'Shipping Costs') {
$obj = Icepay_Order_Product::create()
->setProductID('01')
->setProductName($name)
->setDescription('')
->setQuantity('1')
->setUnitPrice($amount)
... | [
"public",
"function",
"setShippingCosts",
"(",
"$",
"amount",
",",
"$",
"vat",
"=",
"-",
"1",
",",
"$",
"name",
"=",
"'Shipping Costs'",
")",
"{",
"$",
"obj",
"=",
"Icepay_Order_Product",
"::",
"create",
"(",
")",
"->",
"setProductID",
"(",
"'01'",
")",
... | Sets the order shipping costs
@since 1.0.0
@param string $amount Contains the shipping costs in cents
@param int $vat Contains the VAT category in percentages
@param string $name Contains the shipping name
@return \Icepay_Order | [
"Sets",
"the",
"order",
"shipping",
"costs"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L639-L651 |
30,394 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order.validateOrder | public function validateOrder($paymentObj) {
switch (strtoupper($paymentObj->getPaymentMethod())) {
case 'AFTERPAY':
if ($this->_data['shippingAddress']->country !== $this->_data['billingAddress']->country)
throw new Exception('Billing and Shipping country must be... | php | public function validateOrder($paymentObj) {
switch (strtoupper($paymentObj->getPaymentMethod())) {
case 'AFTERPAY':
if ($this->_data['shippingAddress']->country !== $this->_data['billingAddress']->country)
throw new Exception('Billing and Shipping country must be... | [
"public",
"function",
"validateOrder",
"(",
"$",
"paymentObj",
")",
"{",
"switch",
"(",
"strtoupper",
"(",
"$",
"paymentObj",
"->",
"getPaymentMethod",
"(",
")",
")",
")",
"{",
"case",
"'AFTERPAY'",
":",
"if",
"(",
"$",
"this",
"->",
"_data",
"[",
"'ship... | Validates the Order
<p>Validates the order information based on the paymentmethod and country used</p>
<p>For example Afterpay, it will check the zipcodes and it makes sure that the billing and shipping address are in the same country</p>
@param obj $paymentObj
@throws Exception | [
"Validates",
"the",
"Order"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L662-L679 |
30,395 | ICEPAY/deprecated-i | src/icepay_api_order.php | Icepay_Order.createXML | public function createXML() {
$this->_orderData = new SimpleXMLElement("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Order></Order>");
$this->_consumerNode = $this->_orderData->addChild('Consumer');
$this->_addressesNode = $this->_orderData->addChild('Addresses');
$this->_productsNode = $... | php | public function createXML() {
$this->_orderData = new SimpleXMLElement("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Order></Order>");
$this->_consumerNode = $this->_orderData->addChild('Consumer');
$this->_addressesNode = $this->_orderData->addChild('Addresses');
$this->_productsNode = $... | [
"public",
"function",
"createXML",
"(",
")",
"{",
"$",
"this",
"->",
"_orderData",
"=",
"new",
"SimpleXMLElement",
"(",
"\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><Order></Order>\"",
")",
";",
"$",
"this",
"->",
"_consumerNode",
"=",
"$",
"this",
"->",
"_o... | Generates the XML for the webservice
@since 1.0.0
@return XML | [
"Generates",
"the",
"XML",
"for",
"the",
"webservice"
] | 9a22271dfaea7f318a555c00d7e3f8cca9f2a28e | https://github.com/ICEPAY/deprecated-i/blob/9a22271dfaea7f318a555c00d7e3f8cca9f2a28e/src/icepay_api_order.php#L697-L731 |
30,396 | ems-project/EMSCommonBundle | Storage/Processor/Processor.php | Processor.process | public function process(string $processor, string $assetHash, array $options = []): Config
{
$config = $this->getConfig($processor, $assetHash, $options);
$lastCacheDate = $this->storageManager->getLastCacheDate($config->getCacheKey(), $processor);
if (!$config->isValid($lastCacheDate)) {
... | php | public function process(string $processor, string $assetHash, array $options = []): Config
{
$config = $this->getConfig($processor, $assetHash, $options);
$lastCacheDate = $this->storageManager->getLastCacheDate($config->getCacheKey(), $processor);
if (!$config->isValid($lastCacheDate)) {
... | [
"public",
"function",
"process",
"(",
"string",
"$",
"processor",
",",
"string",
"$",
"assetHash",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
":",
"Config",
"{",
"$",
"config",
"=",
"$",
"this",
"->",
"getConfig",
"(",
"$",
"processor",
",",
"... | Called from twig function, the config is used for generating the url | [
"Called",
"from",
"twig",
"function",
"the",
"config",
"is",
"used",
"for",
"generating",
"the",
"url"
] | 994fce2f727ebf702d327ba4cfce53d3c75bcef5 | https://github.com/ems-project/EMSCommonBundle/blob/994fce2f727ebf702d327ba4cfce53d3c75bcef5/Storage/Processor/Processor.php#L125-L136 |
30,397 | SIELOnline/libAcumulus | src/OpenCart/Config/ShopCapabilities.php | ShopCapabilities.paymentMethodToOptions | protected function paymentMethodToOptions(array $extensions)
{
$results = array();
$registry = $this->getRegistry();
$directory = !$registry->isOc1() ? 'extension/payment/' : 'payment/';
foreach ($extensions as $extension) {
$registry->language->load($directory . $extensi... | php | protected function paymentMethodToOptions(array $extensions)
{
$results = array();
$registry = $this->getRegistry();
$directory = !$registry->isOc1() ? 'extension/payment/' : 'payment/';
foreach ($extensions as $extension) {
$registry->language->load($directory . $extensi... | [
"protected",
"function",
"paymentMethodToOptions",
"(",
"array",
"$",
"extensions",
")",
"{",
"$",
"results",
"=",
"array",
"(",
")",
";",
"$",
"registry",
"=",
"$",
"this",
"->",
"getRegistry",
"(",
")",
";",
"$",
"directory",
"=",
"!",
"$",
"registry",... | Turns the list into a translated list of options for a select.
@param array $extensions
@return array
an array with the extensions as key and their translated name as value. | [
"Turns",
"the",
"list",
"into",
"a",
"translated",
"list",
"of",
"options",
"for",
"a",
"select",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/OpenCart/Config/ShopCapabilities.php#L339-L349 |
30,398 | SIELOnline/libAcumulus | src/Joomla/VirtueMart/Invoice/Creator.php | Creator.getCouponCodeDiscountLine | protected function getCouponCodeDiscountLine()
{
$result = array(
Tag::ItemNumber => $this->order['details']['BT']->coupon_code,
Tag::Product => $this->t('discount'),
Tag::Quantity => 1,
Meta::UnitPriceInc => (float) $this->order['details']['BT']->coupon_disco... | php | protected function getCouponCodeDiscountLine()
{
$result = array(
Tag::ItemNumber => $this->order['details']['BT']->coupon_code,
Tag::Product => $this->t('discount'),
Tag::Quantity => 1,
Meta::UnitPriceInc => (float) $this->order['details']['BT']->coupon_disco... | [
"protected",
"function",
"getCouponCodeDiscountLine",
"(",
")",
"{",
"$",
"result",
"=",
"array",
"(",
"Tag",
"::",
"ItemNumber",
"=>",
"$",
"this",
"->",
"order",
"[",
"'details'",
"]",
"[",
"'BT'",
"]",
"->",
"coupon_code",
",",
"Tag",
"::",
"Product",
... | Returns an item line for the coupon code discount on this order.
@return array
An item line array. | [
"Returns",
"an",
"item",
"line",
"for",
"the",
"coupon",
"code",
"discount",
"on",
"this",
"order",
"."
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Joomla/VirtueMart/Invoice/Creator.php#L357-L370 |
30,399 | SIELOnline/libAcumulus | src/Joomla/VirtueMart/Invoice/Creator.php | Creator.getCalcRule | protected function getCalcRule($calcKind, $orderItemId = 0)
{
foreach ($this->order['calc_rules'] as $calcRule) {
if ($calcRule->calc_kind == $calcKind) {
if (empty($orderItemId) || $calcRule->virtuemart_order_item_id == $orderItemId) {
return $calcRule;
... | php | protected function getCalcRule($calcKind, $orderItemId = 0)
{
foreach ($this->order['calc_rules'] as $calcRule) {
if ($calcRule->calc_kind == $calcKind) {
if (empty($orderItemId) || $calcRule->virtuemart_order_item_id == $orderItemId) {
return $calcRule;
... | [
"protected",
"function",
"getCalcRule",
"(",
"$",
"calcKind",
",",
"$",
"orderItemId",
"=",
"0",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"order",
"[",
"'calc_rules'",
"]",
"as",
"$",
"calcRule",
")",
"{",
"if",
"(",
"$",
"calcRule",
"->",
"calc_ki... | Returns a calculation rule identified by the given reference
@param string $calcKind
The value for the kind of calc rule.
@param int $orderItemId
The value for the order item id, or 0 for special lines.
@return null|object
The (1st) calculation rule for the given reference, or null if none
found. | [
"Returns",
"a",
"calculation",
"rule",
"identified",
"by",
"the",
"given",
"reference"
] | 82f8d6c9c4929c41948c97d6cfdfac3f27c37255 | https://github.com/SIELOnline/libAcumulus/blob/82f8d6c9c4929c41948c97d6cfdfac3f27c37255/src/Joomla/VirtueMart/Invoice/Creator.php#L418-L428 |
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.