framework/Web/Services/TPageService.php 1 location
|
@@ 500-502 (lines=3) @@
|
| 497 |
|
} else { |
| 498 |
|
$className = $this->getBasePageClass(); |
| 499 |
|
Prado::using($className); |
| 500 |
|
if (($pos = strrpos($className, '.')) !== false) { |
| 501 |
|
$className = substr($className, $pos + 1); |
| 502 |
|
} |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
if ($className !== '\Prado\Web\UI\TPage' && !is_subclass_of($className, '\Prado\Web\UI\TPage')) { |
framework/Web/UI/TTemplate.php 1 location
|
@@ 792-796 (lines=5) @@
|
| 789 |
|
protected function validateAttributes($type, $attributes) |
| 790 |
|
{ |
| 791 |
|
Prado::using($type); |
| 792 |
|
if (($pos = strrpos($type, '.')) !== false) { |
| 793 |
|
$className = substr($type, $pos + 1); |
| 794 |
|
} else { |
| 795 |
|
$className = $type; |
| 796 |
|
} |
| 797 |
|
$class = new \ReflectionClass($className); |
| 798 |
|
if (is_subclass_of($className, '\Prado\Web\UI\TControl') || $className === '\Prado\Web\UI\TControl') { |
| 799 |
|
foreach ($attributes as $name => $att) { |