Mercurial > SimpleWebPresenter
comparison Validator.inc.php @ 134:b6b4a58c7625
Using .inc.php rather than just .inc for include files.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Sun, 22 Jan 2023 19:22:00 +0100 |
| parents | Validator.inc@2370f4450983 |
| children |
comparison
equal
deleted
inserted
replaced
| 133:00255ca89459 | 134:b6b4a58c7625 |
|---|---|
| 1 <?php | |
| 2 include_once 'ScriptIncludeCache.inc.php'; | |
| 3 | |
| 4 /// @cond | |
| 5 $baseDir = dirname(__FILE__); | |
| 6 $cache = ScriptIncludeCache::instance(__FILE__); | |
| 7 /// @endcond | |
| 8 | |
| 9 /** | |
| 10 * This is the base class for all validators | |
| 11 */ | |
| 12 abstract class Validator | |
| 13 { | |
| 14 /** | |
| 15 * Performs the check if input is valid | |
| 16 * | |
| 17 * @return bool if the check went through | |
| 18 */ | |
| 19 abstract function check(); | |
| 20 } | |
| 21 ?> |
