This file contains hidden or 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 | |
| /** | |
| * Работа с графами | |
| * | |
| * @author sagittaracc <sagittaracc@gmail.com> | |
| */ | |
| class Graph | |
| { | |
| /** |
This file contains hidden or 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 | |
| /** | |
| * ListInterface это интерфейс для классов IPIgnoreList, UserAgentIgnoreList и SearchBotList | |
| * | |
| * Должен реализовать метод `has($item)` для определения принадлежности пользователя к реализуемому списку | |
| */ | |
| interface ListInterface | |
| { | |
| /** |
This file contains hidden or 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 | |
| interface Dataset | |
| { | |
| public function output(); | |
| } |
This file contains hidden or 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 | |
| // Фабрика | |
| abstract class LogFactory | |
| { | |
| // Фабричный метод - создает конкретные продукты фабрики | |
| abstract public function getLog(): Log; | |
| // Метод реализующий основное назначение продуктов фабрики (в данном случае запись в лог) | |
| public function write($data): void |
This file contains hidden or 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> | |
| <head> | |
| <title>Chatbox</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="chat-box"> | |
| <div class="elder">Load earlier messages</div> | |
| <div class="sender"> |
This file contains hidden or 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
| function Pagination(countPages, maxLength) { | |
| if (maxLength < 5) return; | |
| if (countPages < maxLength) maxLength = countPages; | |
| this.countPages = countPages; | |
| this.maxLength = maxLength; | |
| this.currentLength = 0; | |
| this.currentPage = this.firstPage = 1; | |
| this.lastPage = this.countPages; |
NewerOlder