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 | |
| use Rubricate\Widget\AnchorWidget; | |
| $href = 'https://rubricate.github.io'; | |
| $text = 'Rubricate'; | |
| $a = new AnchorWidget($href, $text); | |
| echo $a->getElement(); | |
| # <a href="https://rubricate.github.io">Rubricate</a> |
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 | |
| /** | |
| * sintax: | |
| $img = new ImageWidget('image.png'); | |
| echo $img->getElement(); | |
| */ | |
| use Rubricate\Widget\ImageWidget; |
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
| 2023-09-20 18:05:00 DEBUG: Array | |
| ( | |
| [0] => lorem | |
| [1] => ipsum | |
| [2] => dolor | |
| ) | |
| 2023-09-20 18:05:00 DEBUG: int(1) | |
| 2023-09-20 18:05:00 DEBUG: bool(true) | |
| 2023-09-20 18:05:00 DEBUG: some text here | |
| 2023-09-20 18:05:00 DEBUG: float(5.2) |
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 | |
| use Rubricate\Logger\AbstractLogger; | |
| class TestLog extends AbstractLogger | |
| { | |
| protected static $ex = '.log'; | |
| protected static function getDirFullPath() | |
| { |
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
| 2022-09-20 14:05:00 DEBUG: Array | |
| ( | |
| [0] => lorem | |
| [1] => ipsum | |
| [2] => dolor | |
| ) | |
| 2022-09-20 14:05:00 DEBUG: int(1) | |
| 2022-09-20 14:05:00 DEBUG: bool(true) | |
| 2022-09-20 14:05:00 DEBUG: some text here | |
| 2022-09-20 14:05:00 DEBUG: float(5.2) |
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 | |
| $arr = [ | |
| 'lorem', | |
| 'ipsum', | |
| 'dolor' | |
| ]; | |
| $int = 1; | |
| $bool = true; |
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 | |
| use Rubricate\Logger\AbstractLogger; | |
| class TestLog extends AbstractLogger | |
| { | |
| protected static function getDirFullPath() | |
| { | |
| return '/path/to/directory/logs/'; | |
| } |
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 | |
| use Rubricate\Element\CreateElement; | |
| use Rubricate\Element\StrElement; | |
| $select = new CreateElement('select'); | |
| $select->setAttribute('name', 'latim'); | |
| $opt[] = 'lorem'; | |
| $opt[] = 'ipsum'; |
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 | |
| use Rubricate\Element\CreateElement; | |
| $firstName = new CreateElement('input'); | |
| $firstName->setAttribute('type', 'text'); | |
| $firstName->setAttribute('name', 'firstName'); | |
| $firstName->setAttribute('class', 'form'); | |
| $firstName->setAttribute('required'); |
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 | |
| use Rubricate\Element\CreateElement; | |
| $img1 = new CreateElement('img'); | |
| $img1->setAttribute('src', 'image.png'); | |
| $img2 = new CreateElement('img'); | |
| $img2->setAttribute('src', 'image.png'); | |
| $img2->setAttribute('class', 'img-circle'); |