repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/resource_model.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/resource_model.php
<?php $model = new \bitExpert\PHPStan\Magento\Rules\Helper\SampleModel(); $model->getResource();
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/block_settemplate.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/block_settemplate.php
<?php $block = new \bitExpert\PHPStan\Magento\Rules\Helper\SampleBlock(); $block->setTemplate('template.phtml');
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/SampleModel.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/SampleModel.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Rules\Helper; use Magento\Framework\M...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/SampleBlock.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/SampleBlock.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Rules\Helper; use \Magento\Framework\...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/objectmanager_collectionmock.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/objectmanager_collectionmock.php
<?php $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager( new class extends PHPUnit\Framework\TestCase { } ); $mock = $objectManager->getCollectionMock(\DateTime::class, []);
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/collection.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/collection.php
<?php $model = new \bitExpert\PHPStan\Magento\Rules\Helper\SampleModel(); $model->getCollection();
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Rules/Helper/service_contract.php
tests/bitExpert/PHPStan/Magento/Rules/Helper/service_contract.php
<?php $model = new \bitExpert\PHPStan\Magento\Rules\Helper\SampleModel(); $model->save(); $model->delete(); $model->load(1);
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloaderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/ExtensionAutoloaderUnitTest.php
<?php namespace bitExpert\PHPStan\Magento\Autoload; use bitExpert\PHPStan\Magento\Autoload\Cache\FileCacheStorage; use bitExpert\PHPStan\Magento\Autoload\DataProvider\ClassLoaderProvider; use bitExpert\PHPStan\Magento\Autoload\DataProvider\ExtensionAttributeDataProvider; use org\bovigo\vfs\vfsStream; use PHPStan\Cach...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/HelperProxy.php
tests/bitExpert/PHPStan/Magento/Autoload/HelperProxy.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; /** * Dummy class that can...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/ProxyAutoloaderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/ProxyAutoloaderUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; use bitExpert\PHPStan\Magen...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/HelperExtension.php
tests/bitExpert/PHPStan/Magento/Autoload/HelperExtension.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; /** * Dummy attribute exte...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/FactoryThingFactory.php
tests/bitExpert/PHPStan/Magento/Autoload/FactoryThingFactory.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; /** * Dummy class that can...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/HelperFactory.php
tests/bitExpert/PHPStan/Magento/Autoload/HelperFactory.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; /** * Dummy class that can...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/FactoryAutoloaderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/FactoryAutoloaderUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; use bitExpert\PHPStan\Magen...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloaderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/ExtensionInterfaceAutoloaderUnitTest.php
<?php namespace bitExpert\PHPStan\Magento\Autoload; use bitExpert\PHPStan\Magento\Autoload\Cache\FileCacheStorage; use bitExpert\PHPStan\Magento\Autoload\DataProvider\ClassLoaderProvider; use bitExpert\PHPStan\Magento\Autoload\DataProvider\ExtensionAttributeDataProvider; use InvalidArgumentException; use org\bovigo\v...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/HelperExtensionInterface.php
tests/bitExpert/PHPStan/Magento/Autoload/HelperExtensionInterface.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; /** * Dummy attribute exte...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/RegistrationUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload; use bitExpert\PHPStan\Magen...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/DataProvider/ClassLoaderProviderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/DataProvider/ClassLoaderProviderUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload\DataProvider; use PHPUnit\Fra...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/DataProvider/ExtensionAttributeDataProviderUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/DataProvider/ExtensionAttributeDataProviderUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload\DataProvider; use org\bovigo\...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
bitExpert/phpstan-magento
https://github.com/bitExpert/phpstan-magento/blob/f5640e72f0cfaa966dcd329ae2ffd1a789321c7a/tests/bitExpert/PHPStan/Magento/Autoload/Cache/FileCacheStorageUnitTest.php
tests/bitExpert/PHPStan/Magento/Autoload/Cache/FileCacheStorageUnitTest.php
<?php /* * This file is part of the phpstan-magento package. * * (c) bitExpert AG * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace bitExpert\PHPStan\Magento\Autoload\Cache; use InvalidArgumentEx...
php
MIT
f5640e72f0cfaa966dcd329ae2ffd1a789321c7a
2026-01-05T04:27:36.494382Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/setup.php
setup.php
<?php define('FORMR_VERSION', file_get_contents(__DIR__ . '/VERSION')); define('APPLICATION_ROOT', __DIR__ . '/'); define('INCLUDE_ROOT', APPLICATION_ROOT); define('APPLICATION_PATH', APPLICATION_ROOT . 'application/'); define('APPLICATION_CRYPTO_KEY_FILE', APPLICATION_ROOT . 'formr-crypto.key'); // Load composer ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/webroot/index.php
webroot/index.php
<?php require_once dirname(__FILE__) . '/../setup.php'; // Start formr session Session::configure([]); Session::start(); // Define SITE object /** @var Site $site */ if (($site = Session::get('site')) && is_object($site)) { $site->updateRequestObject(); } else { $site = Site::getInstance(); Session::set('site', $s...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/CryptoTest.php
tests/CryptoTest.php
<?php class CryptoTest extends \PHPUnit\Framework\TestCase { public function testEncryptDecryptArray() { $data = array('cyril@example.com', 'myP@ssw0Rd'); $glue = ':fmr:'; Crypto::setup(); $ciphertext = Crypto::encrypt($data, $glue); $plaintext = Crypto::decrypt($cipherte...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/DBTest.php
tests/DBTest.php
<?php use PHPUnit\Framework\TestCase; /** * Unit tests for the DB class */ class DBTest extends TestCase { /** * @var DB */ protected $db; /** * Set up the testing environment */ protected function setUp(): void { // Mock the Config class to return SQLite in-memory da...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/ClassLoaderTest.php
tests/ClassLoaderTest.php
<?php /** * Test Autoloder class */ class ClassLoaderTest extends PHPUnit\Framework\TestCase { public function testClasses() { $email = new Email(new Run()); $this->assertTrue(class_exists('DB') && class_exists('Email') && class_exists('RunUnit'), "Some class in test not autoloaded"); } ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/OpenCPUTest.php
tests/OpenCPUTest.php
<?php /* * Test Config class */ class OpenCPUTest extends PHPUnit\Framework\TestCase { public function configProvider() { $settings = array(); $settings['opencpu_instance'] = array( 'base_url' => 'https://opencpu.psych.bio.uni-goettingen.de', 'r_lib_path' => '/usr/local/...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/ConfigTest.php
tests/ConfigTest.php
<?php /* * Test Config class */ class ConfigTest extends PHPUnit\Framework\TestCase { public function configProvider() { $settings = array( 'username' => 'cyril', 'names' => array( 'first_name' => 'Cyril', 'last_name' => 'Tata', ), ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/block_ordering.php
tests/block_ordering.php
<?php function blocksort($items) { // sort blocks randomly (if they are consecutive), then by item number and if the latter are identical, randomly $block_order = $item_order = $random_order = $block_numbers = $item_ids = array(); $last_block = ""; $block_nr = 0; foreach ($items AS $item) { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/tests/FirstTest.php
tests/FirstTest.php
<?php class FirstTest extends PHPUnit\Framework\TestCase { private function checkPageForPHPErrors($address) { $bla = file_get_contents($address); $this->assertEquals(FALSE, strpos($bla, "Fatal error") OR strpos($bla, "Parse error") OR strpos($bla, "<b>Warning</b>:") OR strpos($bla, "<b>Notice</b>:...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Crypto.php
application/Crypto.php
<?php use ParagonIE\Halite\HiddenString; class Crypto { const KEY_FILE = APPLICATION_CRYPTO_KEY_FILE; private static $key = null; public static function setup() { if (!\ParagonIE\Halite\Halite::isLibsodiumSetupCorrectly()) { throw new Exception('The libsodium extension is required. P...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/LogParser.php
application/LogParser.php
<?php class LogParser { const LOG_MARKER = '----------'; const LOG_MARKER_START = 'cron-run call start'; const LOG_MARKER_END = 'cron-run call end'; const LOG_MARKER_ALERTS_START = '<alerts>'; const LOG_MARKER_ALERTS_END = '</alerts>'; const LOG_MARKER_START_GM = 'Processing run >>>'; cons...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Cron.php
application/Cron.php
<?php abstract class Cron { /** * @var DB */ protected $db; /** * @var Site */ protected $site; /** * @var User */ protected $user; protected $name = 'Formr.Cron'; protected $config = array(); protected $params = array(); protected $logfile; p...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/CleanupOrphanedFilesOnCron.php
application/CleanupOrphanedFilesOnCron.php
<?php class CleanupOrphanedFilesOnCron extends Cron { protected $name = 'Formr.CleanupOrphanedFilesOnCron'; protected function process(): void { $this->cleanupOrphanedFiles(); } private function cleanupOrphanedFiles() { // Get orphaned file records $orphanedFiles = $this->db->...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Pagination.php
application/Pagination.php
<?php class Pagination { public $maximum = 0; private $maximum_page; private $start = 0; private $per_page = 100; private $page = 0; private $enable_show_all = false; public function __construct($maximum, $per_page = 100, $enable_show_all = false) { if (is_numeric($per_page)) { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Functions.php
application/Functions.php
<?php /* HELPER FUNCTIONS */ function formr_log($msg, $type = '') {// shorthand $msg = print_r($msg, true); $msg = date('Y-m-d H:i:s') . ' ' . $msg; if ($type) { $msg = "[$type] $msg"; } /* if (DEBUG) { alert('<pre>' . $msg . '</pre>', 'alert-danger'); } */ er...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
true
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Request.php
application/Request.php
<?php class Request { private $data = array(); private static $globals = array(); /** * @param array $data */ public function __construct($data = null) { if ($data === null) { $data = $_REQUEST; } if (is_array($data)) { foreach ($data as $key...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/DB.php
application/DB.php
<?php class DB { /** * @var DB */ protected static $instance = null; /** * * @var array */ protected $types = array( // Integer types 'int' => PDO::PARAM_INT, 'integer' => PDO::PARAM_INT, // String Types 'str' => PDO::PARAM_STR, ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Autoloader.php
application/Autoloader.php
<?php /** * Primitive class loader based on composer's class loader * Implements only class map feature * */ class Autoload { private static $loader = null; /** * Register this class instance as an autoloader * @throws RuntimeException */ public function register() { if (!spl_...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Response.php
application/Response.php
<?php class Response { /** HTTP status codes */ const STATUS_OK = 200; const STATUS_CREATED = 201; const STATUS_NO_CONTENT = 204; const STATUS_NOT_MODIFIED = 304; const STATUS_TEMPORARY_REDIRECT = 307; const STATUS_PERMANENT_REDIRECT = 308; const STATUS_BAD_REQUEST = 400; const STA...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Template.php
application/Template.php
<?php /* * Vanilla Template */ class Template { protected static $cacheVars = array(); /** * Load and display a template * * @param string $template * @param array $vars As associative array representing variables to be passed to templates */ public static function load($templ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Site.php
application/Site.php
<?php use PHPMailer\PHPMailer\PHPMailer; class Site { public $alerts = array(); public $alert_types = array("alert-warning" => 0, "alert-success" => 0, "alert-info" => 0, "alert-danger" => 0); public $last_outside_referrer; /** * @var Request */ public $request; /** * @var Si...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/AnimalName.php
application/AnimalName.php
<?php use Atrox\Haikunator; /** * get random animal name */ Haikunator::$ADJECTIVES = array( "adorable", "awkward", "adventurous", "aggressive", "alert", "attractive", "average", "beautiful", "blue-eyed ", "bored", "bloody", "blushing", "bright", "clean", ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/RunExpiresOnCron.php
application/RunExpiresOnCron.php
<?php class RunExpiresOnCron extends Cron { protected $name = 'Formr.RunExpiresOnCron'; protected $mailer = null; protected function process(): void { try { $this->processRuns(); } finally { // Clean up SMTP connection if ($this->mailer !== null) { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Config.php
application/Config.php
<?php /* * Load settings (/config/settings.php) in a globally accesible object * */ class Config { /** * @var array */ private static $config = array(); /** * Already computed config values for caching * * @var array() */ private static $computed = array(); /** ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Cookie.php
application/Cookie.php
<?php class Cookie { protected $data = array(); protected $name; protected $value; protected $filename; protected $file; protected $isBrowserCookie = true; const REQUEST_TOKENS = '_formr_request_tokens'; const REQUEST_USER_CODE = '_formr_code'; const REQUEST_NAME = '_formr_cookie'...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Router.php
application/Router.php
<?php /** * Vanilla Router for formr.org * Heavily relies on defined .htaccess */ class Router { protected static $instance = null; protected $action; protected $controller; protected $webroot; protected $params; /** * @var Site */ protected $site; protected $routes; ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Cache.php
application/Cache.php
<?php /** * Cache database objects and others. * With allocation for implementing memcache in furture */ class Cache { protected static $memory = array(); protected static $type = 'memory'; protected static $allowed_types = array('memory'); public static function init($type = 'memory', $params = a...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Session.php
application/Session.php
<?php /** * Simple PHP session class * Manipulates the $_SESSION global variable * */ class Session { protected static $name = 'formr_session'; protected static $lifetime; protected static $path = '/'; protected static $domain = ''; // strictest domain matching is leaving domain empty protecte...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/CURL.php
application/CURL.php
<?php class CURL { /** * constant for HttpRequest UserAgent string */ const USERAGENT = 'formr-curl/1.0'; /** * Encoding used by translit() call */ const ENCODING = 'utf-8'; /** * Array key used to retrieve response headers with HttpRequest from $info */ const R...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Spreadsheet/PagedSpreadsheetRenderer.php
application/Spreadsheet/PagedSpreadsheetRenderer.php
<?php class PagedSpreadsheetRenderer extends SpreadsheetRenderer { protected $message = null; protected $maxPage = null; protected $postedValues = array(); protected $answeredItems = array(); protected $completed = false; protected $rendered = null; public $redirect = null; cons...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Spreadsheet/SpreadsheetReader.php
application/Spreadsheet/SpreadsheetReader.php
<?php class SpreadsheetReader { private $choices_columns = array('list_name', 'name', 'label'); private $survey_columns = array('name', 'type', 'label', 'optional', 'class', 'showif', 'choice1', 'choice2', 'choice3', 'choice4', 'choice5', 'choice6', 'choice7', 'choice8', 'choice9', 'choice10', 'choice11', 'ch...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
true
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Spreadsheet/SpreadsheetRenderer.php
application/Spreadsheet/SpreadsheetRenderer.php
<?php /** * Render a form for a unit sessions based on rendered and validated items * * @author ctata */ class SpreadsheetRenderer { /** * * @var Run */ protected $run; /** * * @var SurveyStudy */ protected $study; /** * * @var UnitSession */ ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Run.php
application/Model/Run.php
<?php /** * Types of run units * * branches * (these evaluate a condition and go to one position in the run, can be used for allowing access) * * feedback * (atm just markdown pages with a title and body, but will have to use these for making graphs etc at some point) * (END POINTS, does not automatically ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
true
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/User.php
application/Model/User.php
<?php use RobThree\Auth\TwoFactorAuth; class User extends Model { public $id = null; public $email = null; public $user_code = null; public $first_name = null; public $last_name = null; public $affiliation = null; public $created = 0; public $email_verified = 0; public $settings = ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunSession.php
application/Model/RunSession.php
<?php class RunSession extends Model { public $id; public $run_id; public $user_id; public $session = null; public $created; public $ended; public $last_access; public $position; public $current_unit_session_id; public $deactivated = 0; public $no_email; public $testing...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/SurveyStudy.php
application/Model/SurveyStudy.php
<?php //fixme: // attack vector against unlinked surveys // - delete user data one by one, see which one disappears // - calculate survey_run_sessions$session in the unlinked surveys // - calculate private data from unlinked survey in linked survey // - check user_overview to see which users have already made it to th...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
true
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/UnitSession.php
application/Model/UnitSession.php
<?php class UnitSession extends Model { public $id; public $unit_id; // survey_units.id public $run_session_id; public $created; public $expires; public $queued = 0; public $result; public $result_log; public $ended; public $expired; public $meta; public $queueable = 1;...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
true
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Model.php
application/Model/Model.php
<?php /** * Base Model Class * * @author ctata */ class Model { public $id = null; protected $table = null; /** * * @var DB */ protected $db; public $valid = false; protected $cron = false; /** * * @var array */ public $errors = [...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/EmailAccount.php
application/Model/EmailAccount.php
<?php use PHPMailer\PHPMailer\PHPMailer; class EmailAccount extends Model { public $id = null; public $user_id = null; public $valid = null; public $account = array(); /** * @var DB */ private $dbh; const AK_GLUE = ':fmr:'; public function __construct($id, $user_id) { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Page.php
application/Model/RunUnit/Page.php
<?php class Page extends RunUnit { public $title; public $type = 'Endpage'; public $icon = "fa-stop"; /** * An array of unit's exportable attributes * @var array */ public $export_attribs = array('type', 'description', 'position', 'special', 'body'); public function __construc...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/SkipBackward.php
application/Model/RunUnit/SkipBackward.php
<?php class SkipBackward extends Branch { public $type = 'SkipBackward'; public $icon = 'fa-backward'; /** * An array of unit's exportable attributes * @var array */ public $export_attribs = array('type', 'description', 'position', 'special', 'condition', 'if_true'); public functi...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/RunUnit.php
application/Model/RunUnit/RunUnit.php
<?php class RunUnitFactory { const SupportedUnits = array('Survey', 'Pause', 'Email', 'PushMessage', 'External', 'Page', 'SkipBackward', 'SkipForward', 'Shuffle', 'Wait'); /** * Create a RunUnit object based on supported types * * @param Run $run The run associated to a unit * @param arra...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Branch.php
application/Model/RunUnit/Branch.php
<?php class Branch extends RunUnit { protected $condition = null; protected $if_true = null; protected $automatically_jump = 1; protected $automatically_go_on = 1; public $type = 'Branch'; public $icon = 'fa-code-fork fa-flip-vertical'; protected $outputData; public function...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Shuffle.php
application/Model/RunUnit/Shuffle.php
<?php class Shuffle extends RunUnit { public $type = 'Shuffle'; public $icon = "fa-random"; protected $groups = 2; /** * An array of unit's exportable attributes * @var array */ public $export_attribs = array('type', 'description', 'position', 'special', 'groups'); pu...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/PushMessage.php
application/Model/RunUnit/PushMessage.php
<?php class PushMessage extends RunUnit { public $type = 'PushMessage'; public $message; public $errors = array(); public $id = null; public $unit = null; public $icon = "fa-bell"; public $topic; public $priority = 'high'; // normal, high, urgent public $time_to_live = 86400; // 24 ho...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/SkipForward.php
application/Model/RunUnit/SkipForward.php
<?php class SkipForward extends Branch { public $type = 'SkipForward'; public $icon = 'fa-forward'; /** * An array of unit's exportable attributes * @var array */ public $export_attribs = array('type', 'description', 'position', 'special', 'automatically_jump', 'if_true', 'automaticall...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Privacy.php
application/Model/RunUnit/Privacy.php
<?php class Privacy extends RunUnit { public $type = 'Privacy'; public $icon = "fa-vcard"; protected $privacy_label = ''; protected $privacy_label_parsed = ''; protected $tos_label = ''; protected $tos_label_parsed = ''; /** * An array of unit's exportable attributes * @var arra...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Email.php
application/Model/RunUnit/Email.php
<?php class Email extends RunUnit { public $errors = array(); public $id = null; public $unit = null; public $icon = "fa-envelope"; public $type = "Email"; protected $mail_queued = false; protected $mail_sent = false; protected $body = null; protected $body_parsed = null; ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Wait.php
application/Model/RunUnit/Wait.php
<?php class Wait extends Pause { public $type = "Wait"; public $icon = "fa-hourglass-half"; //protected $default_relative_to = 'FALSE'; public function __construct(Run $run, array $props = []) { parent::__construct($run, $props); } protected function parseRelativeTo() { $this...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/External.php
application/Model/RunUnit/External.php
<?php class External extends RunUnit { public $id = null; public $session = null; public $unit = null; protected $address = null; protected $api_end = 0; protected $expire_after = 0; public $icon = "fa-external-link-square"; public $type = "External"; /** * An array of unit's...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Survey.php
application/Model/RunUnit/Survey.php
<?php /** * RunUnit Survey * * @author ctata */ class Survey extends RunUnit { /** * Survey study assigned to the Survey unit * * @var SurveyStudy */ public $surveyStudy; public $icon = "fa-pencil-square-o"; public $type = "Survey"; public $export_attribs = array('type', 'd...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/RunUnit/Pause.php
application/Model/RunUnit/Pause.php
<?php class Pause extends RunUnit { public $type = "Pause"; public $icon = "fa-pause"; protected $body = ''; protected $body_parsed = ''; protected $relative_to = null; protected $wait_minutes = null; protected $wait_until_time = null; protected $wait_until_date = null; ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Number.php
application/Model/Item/Number.php
<?php /** * @todo Description * - the min/max stuff is confusing and will fail for real big numbers * - spinbox is polyfilled in browsers that lack it */ class Number_Item extends Item { public $type = 'number'; public $input_attributes = array('type' => 'number', 'min' => 0, 'max' => 10000000, 'step' => ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Blank.php
application/Model/Item/Blank.php
<?php class Blank_Item extends Text_Item { public $type = 'blank'; public $mysql_field = 'TEXT DEFAULT NULL'; public function render() { if ($this->error) { $this->classes_wrapper[] = "has-error"; } $template = '<div class="%{classes_wrapper}" %{showif}>%{text}</div>';...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Cc.php
application/Model/Item/Cc.php
<?php /* * Credit Card */ class Cc_Item extends Text_Item { public $type = 'cc'; public $input_attributes = array('type' => 'cc', "data-luhn" => ""); public $mysql_field = 'VARCHAR(255) DEFAULT NULL'; protected $prepend = 'fa-credit-card'; protected function setMoreOptions() { $this->c...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/DatetimeLocal.php
application/Model/Item/DatetimeLocal.php
<?php class DatetimeLocal_Item extends Datetime_Item { public $type = 'datetime-local'; public $input_attributes = array('type' => 'datetime-local'); }
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Month.php
application/Model/Item/Month.php
<?php class Month_Item extends Yearmonth_Item { public $type = 'month'; public $input_attributes = array('type' => 'month', 'placeholder' => 'yyyy-mm'); //protected $prepend = 'fa-calendar-o'; }
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/PushNotification.php
application/Model/Item/PushNotification.php
<?php class PushNotification_Item extends Item { public $type = 'push_notification'; public $no_user_input_required = false; public $hasChoices = true; public $mysql_field = 'TEXT DEFAULT NULL'; protected $classes_input = array('btn', 'btn-primary', 'push-notification-permission'); protected f...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/McMultipleButton.php
application/Model/Item/McMultipleButton.php
<?php class McMultipleButton_Item extends McMultiple_Item { public $mysql_field = 'VARCHAR(40) DEFAULT NULL'; public $type = "mc_multiple_button"; protected $js_hidden = true; protected function setMoreOptions() { parent::setMoreOptions(); $this->classes_wrapper[] = 'btn-checkbox'; ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/McMultiple.php
application/Model/Item/McMultiple.php
<?php /** * Multiple multiple choice, including Checkboxes * */ class McMultiple_Item extends Mc_Item { public $type = 'mc_multiple'; public $input_attributes = array('type' => 'checkbox'); public $optional = 1; public $mysql_field = 'VARCHAR(40) DEFAULT NULL'; protected function setMoreOpti...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Video.php
application/Model/Item/Video.php
<?php class Video_Item extends File_Item { public $type = 'video'; public $input_attributes = array('type' => 'file', 'capture' => "user"); public $mysql_field = 'VARCHAR(1000) DEFAULT NULL'; protected $file_endings = array( // MPEG video files 'video/mpeg' => '.mpg', // MPEG-1 or MPEG...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/ChooseTwoWeekdays.php
application/Model/Item/ChooseTwoWeekdays.php
<?php class ChooseTwoWeekdays_Item extends McMultiple_Item { protected function setMoreOptions() { $this->optional = 0; $this->classes_input[] = 'choose2days'; $this->input_attributes['name'] = $this->name . '[]'; } }
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Week.php
application/Model/Item/Week.php
<?php class Week_Item extends Datetime_Item { public $type = 'week'; public $input_attributes = array('type' => 'week'); public $mysql_field = 'VARCHAR(9) DEFAULT NULL'; protected $html5_date_format = 'Y-mW'; //protected $prepend = 'fa-calendar-o'; }
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Text.php
application/Model/Item/Text.php
<?php class Text_Item extends Item { public $type = 'text'; public $input_attributes = array('type' => 'text'); public $mysql_field = 'TEXT DEFAULT NULL'; protected function setMoreOptions() { if (is_array($this->type_options_array) && count($this->type_options_array) == 1) { $val...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/SelectOrAddOne.php
application/Model/Item/SelectOrAddOne.php
<?php class SelectOrAddOne_Item extends Item { public $type = 'select_or_add_one'; public $mysql_field = 'TEXT DEFAULT NULL'; public $input_attributes = array('type' => 'text'); protected $hasChoices = true; private $maxSelect = 0; private $maxType = 255; protected function setMoreOptions...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Datetime.php
application/Model/Item/Datetime.php
<?php class Datetime_Item extends Item { public $type = 'datetime'; public $input_attributes = array('type' => 'datetime'); public $mysql_field = 'DATETIME DEFAULT NULL'; //protected $prepend = 'fa-calendar'; protected $html5_date_format = 'Y-m-d\TH:i'; protected function setMoreOptions() { #...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/CheckButton.php
application/Model/Item/CheckButton.php
<?php class CheckButton_Item extends Check_Item { public $mysql_field = 'TINYINT UNSIGNED DEFAULT NULL'; protected $js_hidden = true; protected function setMoreOptions() { parent::setMoreOptions(); $this->classes_wrapper[] = 'btn-check'; } protected function render_label() { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Letters.php
application/Model/Item/Letters.php
<?php class Letters_Item extends Text_Item { public $type = 'letters'; public $input_attributes = array('type' => 'text'); public $mysql_field = 'TEXT DEFAULT NULL'; protected function setMoreOptions() { $this->input_attributes['pattern'] = "[A-Za-züäöß.;,!: ]+"; return parent::setMor...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Date.php
application/Model/Item/Date.php
<?php class Date_Item extends Datetime_Item { public $type = 'date'; public $input_attributes = array('type' => 'date', 'placeholder' => 'yyyy-mm-dd'); public $mysql_field = 'DATE DEFAULT NULL'; //protected $prepend = 'fa-calendar'; protected $html5_date_format = 'Y-m-d'; }
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Textarea.php
application/Model/Item/Textarea.php
<?php class Textarea_Item extends Text_Item { public $type = 'textarea'; public $mysql_field = 'MEDIUMTEXT DEFAULT NULL'; protected function render_input() { if ($this->value_validated) { $this->input_attributes['value'] = $this->value_validated; } $value = array_val(...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Time.php
application/Model/Item/Time.php
<?php // time is polyfilled, we prepended a clock class Time_Item extends Datetime_Item { public $type = 'time'; public $input_attributes = array('type' => 'time', 'style' => 'width:160px'); public $mysql_field = 'TIME DEFAULT NULL'; //protected $prepend = 'fa-clock-o'; protected $html5_date_forma...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Ip.php
application/Model/Item/Ip.php
<?php class Ip_Item extends Item { public $type = 'ip'; public $input_attributes = array('type' => 'hidden'); public $mysql_field = 'VARCHAR(46) DEFAULT NULL'; public $no_user_input_required = true; public $optional = 1; protected function setMoreOptions() { $this->input_attributes['v...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/AddToHomeScreen.php
application/Model/Item/AddToHomeScreen.php
<?php class AddToHomeScreen_Item extends Item { public $type = 'add_to_home_screen'; public $no_user_input_required = false; public $hasChoices = true; public $mysql_field = 'VARCHAR(20) DEFAULT NULL'; protected $classes_input = array('btn', 'btn-primary', 'add-to-homescreen'); protected funct...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Image.php
application/Model/Item/Image.php
<?php class Image_Item extends File_Item { public $type = 'image'; public $input_attributes = array('type' => 'file', 'capture' => "user"); public $mysql_field = 'VARCHAR(1000) DEFAULT NULL'; protected $file_endings = [ // JPEG image files 'image/jpeg' =...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Hidden.php
application/Model/Item/Hidden.php
<?php class Hidden_Item extends Item { public $type = 'hidden'; public $mysql_field = 'MEDIUMTEXT DEFAULT NULL'; public $input_attributes = array('type' => 'hidden'); public $optional = 1; public function setMoreOptions() { unset($this->input_attributes["required"]); $this->classe...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/SelectOne.php
application/Model/Item/SelectOne.php
<?php /** * Dropdown to choose one item */ class SelectOne_Item extends Item { public $type = 'select'; public $mysql_field = 'TEXT DEFAULT NULL'; public $input_attributes = array('type' => 'select'); protected $hasChoices = true; protected function setMoreOptions() { $this->classes_inp...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Random.php
application/Model/Item/Random.php
<?php class Random_Item extends Number_Item { public $type = 'random'; public $input_attributes = array('type' => 'hidden', 'step' => 1, 'min' => 0, 'max' => 1); public $mysql_field = 'INT UNSIGNED DEFAULT NULL'; public $no_user_input_required = true; protected function setMoreOptions() { ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Mc.php
application/Model/Item/Mc.php
<?php /** * Radio Buttons */ class Mc_Item extends Item { public $type = 'mc'; public $lower_text = ''; public $upper_text = ''; public $input_attributes = array('type' => 'radio'); public $mysql_field = 'TINYINT UNSIGNED DEFAULT NULL'; protected $hasChoices = true; protected $label_firs...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Email.php
application/Model/Item/Email.php
<?php /** * email is a special HTML5 type, validation is polyfilled in browsers that lack it */ class Email_Item extends Text_Item { public $type = 'email'; public $input_attributes = array('type' => 'email', 'maxlength' => 255); public $mysql_field = 'VARCHAR(255) DEFAULT NULL'; protected $prepend ...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false
rubenarslan/formr.org
https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Range.php
application/Model/Item/Range.php
<?php class Range_Item extends Number_Item { public $type = 'range'; public $input_attributes = array('type' => 'range', 'min' => 0, 'max' => 100, 'step' => 1); public $mysql_field = 'INT UNSIGNED DEFAULT NULL'; public $lower_text; public $upper_text; protected $hasChoices = true; protec...
php
BSD-3-Clause
708f2eb560f4c132c718a61cc8390e1ea7e272bc
2026-01-05T04:26:45.406941Z
false