framework/Data/SqlMap/TSqlMapConfig.php 1 location
|
@@ 136-143 (lines=8) @@
|
| 133 |
|
{ |
| 134 |
|
if (is_file($value)) { |
| 135 |
|
$this->_configFile = $value; |
| 136 |
|
} else { |
| 137 |
|
$file = Prado::getPathOfNamespace($value, self::CONFIG_FILE_EXT); |
| 138 |
|
if ($file === null || !is_file($file)) { |
| 139 |
|
throw new TConfigurationException('sqlmap_configfile_invalid', $value); |
| 140 |
|
} else { |
| 141 |
|
$this->_configFile = $file; |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
/** |
framework/Exceptions/TErrorHandler.php 1 location
|
@@ 108-112 (lines=5) @@
|
| 105 |
|
*/ |
| 106 |
|
public function setErrorTemplatePath($value) |
| 107 |
|
{ |
| 108 |
|
if (($templatePath = Prado::getPathOfNamespace($value)) !== null && is_dir($templatePath)) { |
| 109 |
|
$this->_templatePath = $templatePath; |
| 110 |
|
} else { |
| 111 |
|
throw new TConfigurationException('errorhandler_errortemplatepath_invalid', $value); |
| 112 |
|
} |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |