то будет подключать include.php из папки модуля и там уже будет найдена функция.
to_class Класс принадлежащий модулю module, метод которого является функцией-обработчиком события.
Необязательный параметр. По умолчанию - "" (будет просто подключен файл /bitrix/modules/to_module_id/include.php).
to_method Метод класса to_class являющийся функцией-обработчиком события.
Необязательный параметр. По умолчанию - "" (будет просто подключен файл /bitrix/modules/to_module_id/include.php).
$website = "https://api.telegram.org/bot".$botToken;
$update = file_get_contents($website);
$update = json_decode($update, TRUE);
print_r($update);
Как мы сложную задачу разбиваем на маленькие, которые легко решить, так же эти элементы необходимо отделить друг от другаДля этого используются пространства имён.
string date ( string $format [, int $timestamp = time() ] )
$first = DateTime::createFromFormat('d.m.Y', '01.01.2016');
$second = DateTime::createFromFormat('d.m.Y', '25.12.2015');
var_dump($first < $second);
var_dump(strtotime('01.01.2016') < strtotime('25.12.2015'));
$(selector).mCustomScrollbar("destroy");
public function __get($name) {
return $this->objects[$name];
}
$posts = Post::all();
return view('posts', ['posts' => $posts]);
$posts->chunk(200, function($chunk) {
foreach ($chunk as $post) {
//
}
});
$obj = [
'a' => function(){ return 1; },
'b' => [
'ba' => function(){ return 2; },
'bb' => [
'bba' => function(){ return 3; }
]
]
];
$obj['a']();
$obj['b']['ba']();
$obj['b']['bb']['bba']();
For the OpenPGP HTTP Key Server (HKP) client the new fetch api is used. There is a polyfill for both browsers and node.js runtimes. These are not bundled in the library however and users must add these themselves. See the unit tests for examples of how to integrate them.https://github.com/openpgpjs/openpgpjs#dependencies