This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arrayOfElementsOrElementApplyMethod($value, function($value, $validator, $logFiltered) { | |
if ($validator->isValid($value) === false) { | |
if ($logFiltered) { | |
// create a log item | |
$logItem = new ProductFilteredItem($testObject->getAggregateRoot()); | |
$logItem->setActorId($actorId); | |
$logItem->setProductContainerId($testObject->getProductId()); | |
$logItem->setAddedOn(new \Core\Domain\LendoDateTime()); | |
$logItem->setFilterId($validator->getFilterId()); | |
$logItem->setFilteredValue((string)$value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(\is_array($value)) { | |
foreach($value as $v) { | |
if ($validator->isValid($v) === false) { | |
if ($logFiltered) { | |
// create a log item | |
$logItem = new ProductFilteredItem($testObject->getAggregateRoot()); | |
$logItem->setActorId($actorId); | |
$logItem->setProductContainerId($testObject->getProductId()); | |
$logItem->setAddedOn(new \Core\Domain\LendoDateTime()); | |
$logItem->setFilterId($validator->getFilterId()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function _checkFiltersForContainer($container, $actors, $excludeFilters, $excludeActorIds){ | |
$atLeastOneActorInterested = false; | |
foreach ($actors as $actor) { | |
$mapper = new \Lendo\Domain\Filter\Mappers\LoanAppliedFilterMapper($excludeFilters); | |
if (!\in_array($actor->getId(), $excludeActorIds) && $actor->isInterested($container, $mapper, true)) { | |
$atLeastOneActorInterested = true; | |
} else { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($login['group'][1]) { | |
$group = 1; | |
} elseif ($login['group'][2]) { | |
$group = 2; | |
} elseif ($login['group'][3]) { | |
$group = 3; | |
} elseif ($login['group'][4]) { | |
$group = 4; | |
} elseif ($login['group'][5]) { | |
$group = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function closetags($html) | |
{ | |
preg_match_all("#<([a-z0-9]+)([^>]*)(?<!/)>#i".BX_UTF_PCRE_MODIFIER, $html, $result); | |
$openedtags = $result[1]; | |
preg_match_all("#</([a-z0-9]+)>#i".BX_UTF_PCRE_MODIFIER, $html, $result); | |
$closedtags = $result[1]; | |
$len_opened = count($openedtags); | |
if(count($closedtags) == $len_opened) |