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
<?php | |
namespace App\Model\Task; | |
class Task | |
{ | |
/** | |
* @var Uuid | |
*/ |
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
export function(parentSelector, selector, prevArrowImg, nextArrowImg) { | |
$(parentSelector).on('click', selector, function(e){ | |
e.preventDefault(); | |
let link = $(this); | |
let prev = $(this).parent().prev().find('a'); | |
let next = $(this).parent().next().find('a'); | |
let content = $('<div class="clearfix"></div>').css({ | |
'width': '900px', | |
'max-width':'calc(100vw - 100px)', | |
'position': 'relative' |
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
<?php | |
class PhpAuthManager extends CPhpAuthManager | |
{ | |
// your code | |
public function executeBizRule($bizRule, $params, $data) | |
{ | |
$bizRule = $bizRule ? @unserialize($bizRule) : null; | |
if (is_callable($bizRule)) { | |
return call_user_func_array($bizRule, [$params, $data]); |
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
<?php | |
$itemsPerRequest = 50; | |
$itemsCriteria = array( | |
'condition' => 't.type = 2 AND t.isDeleted != 1 AND t.isActive = 1 AND t.itemType = 1000', | |
'order' => 'id ASC', | |
'limit' => $itemsPerRequest, | |
'offset' => 0, | |
); | |
$i = 0; |
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
$abc = array(); | |
foreach (range(chr(0xC0), chr(0xDF)) as $b) { | |
$abc[] = iconv('CP1251', 'UTF-8', $b); | |
} |
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
/** | |
* Starts a batch query. | |
* | |
* A batch query supports fetching data in batches, which can keep the memory usage under a limit. | |
* This method will return a [[BatchQueryResult]] object which implements the [[\Iterator]] interface | |
* and can be traversed to retrieve the data in batches. | |
* | |
* For example, | |
* | |
* ```php |
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
var __extends = (this && this.__extends) || (function () { | |
var extendStatics = Object.setPrototypeOf || | |
({__proto__: []} instanceof Array && function (d, b) { | |
d.__proto__ = b; | |
}) || | |
function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
}; | |
return function (d, b) { | |
extendStatics(d, b); |
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
var GalaMessaging; | |
(function (GalaMessaging) { | |
var messagingPrivate = { | |
userId: 0, | |
apiHost: '', | |
userRole: '' | |
}; | |
var Messaging = (function () { | |
function Messaging(config) { | |
var _this = this; |
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
<?php | |
namespace App\Components\DeliveryCalculation; | |
use App\Components\Interfaces\DeliveryMethod\DeliveryMethodInterface; | |
class Calculation implements CalculationInterface, \JsonSerializable | |
{ | |
/** |