| 1: | <?php |
| 2: | namespace Sphp\core { |
| 3: | class SphpPreRunP { |
| 4: | /** |
| 5: | * Start Event Handler for prerun.php file. include any library here will be available |
| 6: | * in whole project |
| 7: | */ |
| 8: | public function onstart() {} |
| 9: | } |
| 10: | /** |
| 11: | * Description of GateLoader |
| 12: | * |
| 13: | * @author Sartaj Singh |
| 14: | */ |
| 15: | class GateLoader { |
| 16: | /** |
| 17: | * Advance Function, Internal use |
| 18: | * @return array |
| 19: | * @ignore |
| 20: | */ |
| 21: | /** |
| 22: | * Advance Function, Internal use |
| 23: | * @return array |
| 24: | * @ignore |
| 25: | */ |
| 26: | } |
| 27: | /** |
| 28: | * \Sphp\core\Exception |
| 29: | */ |
| 30: | class Exception extends \Exception { |
| 31: | /** |
| 32: | * Get Line Number of Error |
| 33: | */ |
| 34: | public function getLineNumber() {} |
| 35: | /** |
| 36: | * Get File Path where Error trigger |
| 37: | */ |
| 38: | public function getFilePath() {} |
| 39: | /** |
| 40: | * Set Line Number of Error |
| 41: | */ |
| 42: | public function setLineNumber($line) {} |
| 43: | /** |
| 44: | * Set File Path where Error trigger |
| 45: | */ |
| 46: | public function setFilePath($file) {} |
| 47: | } |
| 48: | class FrontPlace { |
| 49: | /** |
| 50: | * Create Front Place Object |
| 51: | * @param string $frontname Unique Name of Front Place |
| 52: | * @param string $filepath File Path of Front Place |
| 53: | * @param string $secname Section Name of master file where to display Front PLace |
| 54: | * @param string $type <p> Type of file using in File Path. |
| 55: | * $type = FrontFile(*.front) or PHP |
| 56: | * </p> |
| 57: | */ |
| 58: | /** |
| 59: | * Run Front Place before processing master file getHeaderHTML() code |
| 60: | */ |
| 61: | public function run() {} |
| 62: | /** |
| 63: | * Call Render in master file where to display html code |
| 64: | */ |
| 65: | public function render() {} |
| 66: | } |
| 67: | /** |
| 68: | * SphpVersion class |
| 69: | * |
| 70: | * This class is parent class of all Components. You can Develop SartajPHP Gate with version control |
| 71: | * of this class or simple use SphpBase::page() to implement page object in any php module. |
| 72: | * |
| 73: | * @author Sartaj Singh |
| 74: | * @copyright 2007 |
| 75: | */ |
| 76: | class SphpVersion { |
| 77: | public function setVersion($val) {} |
| 78: | public function setMinVersionSphp($val) {} |
| 79: | public function setMaxVersionSphp($val) {} |
| 80: | public function setMinVersionPHP($val) {} |
| 81: | public function setMaxVersionPHP($val) {} |
| 82: | public function getVersion() {} |
| 83: | public function getMinVersionSphp() {} |
| 84: | public function getMaxVersionSphp() {} |
| 85: | public function getMinVersionPHP() {} |
| 86: | public function getMaxVersionPHP() {} |
| 87: | } |
| 88: | } |
| 89: |