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
FROM php:7.2-fpm-alpine | |
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added | |
#RUN addgroup -S alpine && adduser -S -G alpine alpine | |
#ARG uid=1000 | |
#ARG gid=1000 | |
#RUN addgroup -g $gid -S alpine | |
#RUN adduser -u $uid -S alpine -G alpine |
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 interface Selector { | |
paramId: string | |
multiple: boolean | |
value: string | string[] | |
prevValue: string | string[] | |
} |
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
{ | |
"params": [ | |
{ | |
"id": "01h260rxh1wkp9jm5jx696r1mv", | |
"title": "Грузоподьемность борта", | |
"name": "gruzopodemnost_borta", | |
"type": "radio", | |
"multiple": false, | |
"required": true, | |
"main": true, |
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 | |
function sect_sort($array, $start, $length = null) | |
{ | |
$ar_start = []; | |
$ar_sort = []; | |
$ar_end = []; | |
$sort_index = 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
<?php | |
namespace App\Repositories\Manager\Content\Resource\Resources\Settings; | |
use App\Repositories\Manager\Content\Resource\Resources\Resource; | |
use App\Repositories\Manager\Manager; | |
use App\Repositories\Manager\Content\Resource\Libs\Form\Tabs\Tab; |
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\Repositories\Xlsx; | |
class Reader | |
{ | |
/** @var integer memory_get_usage() **/ | |
protected $start_memory = 0; | |
/** @var integer memory_get_usage() **/ |
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 | |
/* | |
* FPDF - http://www.fpdf.org/ | |
* EasyTable - https://github.com/fpdf-easytable/fpdf-easytable | |
*/ | |
namespace App\Repositories\Fpdf; | |
use App\Repositories\Fpdf\exFPDF; |
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 myCustomFilter extends mse2FiltersHandler { | |
/** | |
* Retrieves values from Resource table | |
* | |
* @param array $fields Name of resource fields. | |
* @param array $ids Ids of needed resources | |
* | |
* @return array Array with resource fields as keys and resources ids as values |
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
<!DOCTYPE HTML> | |
<html lang="ru"> | |
<head> | |
<title>Тест</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<style> | |
a { | |
text-decoration: none; | |
} |
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 | |
$time = microtime(true); | |
$json = $modx->getOption('json', $scriptProperties, ''); | |
$json = !empty($json) ? $modx->fromJSON($json) : array(); | |
$log = $modx->getOption('showLog', $scriptProperties, ''); | |
$tpl = $modx->getOption('tpl', $scriptProperties, ''); | |
$where = $modx->getOption('where', $scriptProperties, ''); | |
$where = !empty($where) ? $modx->fromJSON($where) : array(); |