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\Form\SelectForm; | |
use Rubricate\Form\OptionForm; | |
$select = new SelectForm('latim'); | |
$select->setAttribute('class', 'sel_lorem'); |
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\Form\LabelForm; | |
use Rubricate\Form\RadioForm; | |
for ($i = 1; $i <= 3; $i++) { | |
$radio = new RadioForm('optradio', $i); | |
$radio->checked(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\Form\SelectOptForm; | |
$opt[] = 'choose'; | |
$opt[] = 'lorem'; | |
$opt[] = 'ipsum'; | |
$opt[] = 'dolor'; | |
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\Form\SelectOptForm; | |
use Rubricate\Form\SelectOptGroupForm; | |
$opt['lorem'] = array(1 => 'ipsum', 2 => 'dolor', 3 => 'amet'); | |
$opt['aliquam'] = array(4 => 'tincidunt', 5 => 'ligula', 6 => 'nulla'); | |
$select = new SelectOptGroupForm('latim', $opt); |
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\Form\FileForm; | |
use Rubricate\Form\LabelForm; | |
use Rubricate\Element\CreateElement; | |
$grp = new CreateElement('div'); | |
$lab = new LabelForm('image:'); | |
$usr = new FileForm('image'); |
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\Form\FieldsetForm; | |
use Rubricate\Form\LabelForm; | |
use Rubricate\Form\CheckboxForm; | |
$elem = new FieldsetForm('Category:'); | |
for ($i = 1; $i <= 3; $i++) { |
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\Form\LabelForm; | |
use Rubricate\Form\CheckboxForm; | |
for ($i = 1; $i <= 3; $i++) { | |
$checkbox = new CheckboxForm('checkbox[]', $i); | |
$checkbox->checked(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\Hash\PasswordHash; | |
use Rubricate\Hash\AlgorithmHash; | |
$h = new PasswordHash( | |
# new AlgorithmHash(PASSWORD_ARGON2I) | |
new AlgorithmHash(PASSWORD_DEFAULT) |
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\Hash\InitHash; | |
use Rubricate\Hash\AlgorithmHash; | |
use Rubricate\Hash\SaltHash; | |
$h = new InitHash( | |
new AlgorithmHash('md5'), |