-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Работа со строкой запроса #14
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,10 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
переименовать файл в config.php, тк он содержит не только данные для подключения к БД
* @return mysqli_stmt Подготовленное выражение | ||
*/ | ||
|
||
function dbGetPrepareStmt(mysqli $link, $sql, $data = []) : mysqli_stmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
дополнить сигнатуру типами:
string $sql, array $data = [])
functions/functions.php
Outdated
* @param array $data Ассоциативный массив с данными для шаблона | ||
* @return string Итоговый HTML | ||
*/ | ||
function includeTemplate($name, array $data = []) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(string $name, array $data = []): string
functions/functions.php
Outdated
*@param string $data | ||
*@return int | ||
*/ | ||
function remainingTime(string $date): int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
: array
functions/functions.php
Outdated
|
||
/** | ||
*@param string $data | ||
*@return int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправить phpdoc
functions/template.php
Outdated
* @return string Итоговый HTML | ||
*/ | ||
|
||
function includeTemplate($name, array $data = []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string $name, array $data = []): string
functions/validators.php
Outdated
$formatToCheck = 'Y-m-d'; | ||
$dateTimeObj = date_create_from_format($formatToCheck, $date); | ||
|
||
return $dateTimeObj !== false && array_sum(date_get_last_errors()) === 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return $dateTimeObj !== false;
No description provided.