Declaration of RecessReflectionClass::getProperties() should be compatible with that of ReflectionClass::getProperties()
Location: Line 65 of /var/www/recess/recess/lib/recess/lang/RecessReflectionClass.class.php
- 61: }
- 62: }
- 63: return $returns;
- 64: }
- 65:}
- 66:
- 67:?>
Local Context
Name |
Type |
Value |
$fullName |
string |
'recess.lang.RecessReflectionClass' |
$class |
string |
'RecessReflectionClass' |
$pathIndex |
integer |
-1 |
$file |
string |
'recess/lang/RecessReflectionClass.class.php' |
$path |
string |
'/var/www/recess/recess/lib/' |
$index |
integer |
0 |
Call Stack
11
Diagnostics::handleError( 'recess.lang.RecessReflectionClass' )
Arguments Passed In
Type |
Value |
string |
'recess.lang.RecessReflectionClass' |
Called From
- 188:
- 189: if($pathIndex == -1) {
- 190: foreach(self::$paths as $index => $path) {
- 191: if(file_exists($path . $file)) {
- 192: include_once($path . $file);
- 193: if(class_exists($class, false) || interface_exists($class, false)) {
- 194: if(isset(self::$namedRun)) { self::namedRunMissed($class); }
- 195: self::$dirtyClasses = true;
- 196: self::$classesByClass[$class][self::PATH] = $index;
- 197: self::$loaded[$class] = true;
10
Library::classExists()
Called From
- 188:
- 189: if($pathIndex == -1) {
- 190: foreach(self::$paths as $index => $path) {
- 191: if(file_exists($path . $file)) {
- 192: include_once($path . $file);
- 193: if(class_exists($class, false) || interface_exists($class, false)) {
- 194: if(isset(self::$namedRun)) { self::namedRunMissed($class); }
- 195: self::$dirtyClasses = true;
- 196: self::$classesByClass[$class][self::PATH] = $index;
- 197: self::$loaded[$class] = true;
9
Library::classExists( 'RecessReflectionClass' )
Arguments Passed In
Type |
Value |
string |
'RecessReflectionClass' |
Called From
- 220:
- 221: if(self::$loaded[$className]) { return; }
- 222:
- 223: // Search through paths to find requested file
- 224: if(class_exists($className, false) || self::classExists(self::$classesByClass[$className][self::NAME])) {
- 225: return;
- 226: } else {
- 227: // Could not load the desired class
- 228: $paths = '';
- 229: foreach(self::$paths as $path) {
8
Library::load( 'RecessReflectionClass' )
Arguments Passed In
Type |
Value |
string |
'RecessReflectionClass' |
Called From
- 284:}
- 285:
- 286:function __autoload($class) {
- 287: try {
- 288: Library::load($class);
- 289: } catch (Exception $exception) {
- 290: Diagnostics::handleException($exception);
- 291: die('Could not autoload ' . $class);
- 292: }
- 293:}
7
__autoload( 'RecessToolsDatabaseController' )
Arguments Passed In
Type |
Value |
string |
'RecessToolsDatabaseController' |
Called From
- 33: public function init() { }
- 34:
- 35: protected static function buildClassDescriptor($class) {
- 36: try {
- 37: $reflection = new RecessReflectionClass($class);
- 38: } catch(ReflectionException $e) {
- 39: throw new RecessException('Class "' . $class . '" has not been declared.', get_defined_vars());
- 40: }
- 41:
- 42: $descriptor = new ControllerDescriptor();
5
call_user_func( Array, 'RecessToolsDatabaseController' )
Arguments Passed In
Type |
Value |
RecessToolsDatabaseController |
RecessToolsDatabaseController |
Called From
- 79: $descriptor = Cache::get($cache_key);
- 80:
- 81: if($descriptor === false) {
- 82: if($instance instanceof RecessObject) {
- 83: $descriptor = call_user_func(array($class, 'buildClassDescriptor'), $class);
- 84: Cache::set($cache_key, $descriptor);
- 85: self::$descriptors[$class] = $descriptor;
- 86: } else {
- 87: throw new RecessException('RecessObjectRegistry only retains information on classes derived from RecessObject. Class of type "' . $class . '" given.', get_defined_vars());
- 88: }
4
RecessObject::getClassDescriptor( RecessToolsDatabaseController )
Arguments Passed In
Type |
Value |
RecessToolsDatabaseController |
RecessToolsDatabaseController |
Called From
- 27: return self::getClassDescriptor($class)->viewPrefix;
- 28: }
- 29:
- 30: public static function getRoutes($class) {
- 31: return self::getClassDescriptor($class)->routes;
- 32: }
- 33:
- 34: protected function ok($viewName = null) {
- 35: Library::import('recess.http.responses.OkResponse');
- 36: $response = new OkResponse($this->request);
3
AbstractController::getRoutes( RecessToolsDatabaseController )
Arguments Passed In
Called From
- 46: continue;
- 47: }
- 48:
- 49: if($instance instanceof Controller) {
- 50: $routes = Controller::getRoutes($instance);
- 51: if(!is_array($routes)) continue;
- 52: foreach($routes as $route) {
- 53: $router->addRoute($this, $route, $this->routingPrefix);
- 54: }
- 55: }
2
Application->addRoutesToRouter( RtNode )
Called From
- 123: if($router === false) {
- 124: $router = new RtNode();
- 125: foreach(self::$applications as $app) {
- 126: try {
- 127: $app->addRoutesToRouter($router);
- 128: } catch (DuplicateRouteException $e) {
- 129: throw new RecessErrorException("Conflicting routes found: " . $e->getMessage(), 0, 0, $e->file, $e->line, array());
- 130: }
- 131: }
- 132: Cache::set(self::ROUTES_CACHE_KEY, $router);
1
RecessConf::getRoutes()
Called From
- 18:Library::import('recess.http.Environment');
- 19:Library::import('recess.Recess');
- 20:
- 21:// Entry point to Recess!
- 22:Recess::main(Environment::getRawRequest(), RecessConf::$policy, RecessConf::$applications, RecessConf::getRoutes(), RecessConf::$plugins);
- 23:
- 24:// RecessConf follows...
- 25:
- 26:abstract class RecessConf {
- 27:
0
require_once()
Arguments Passed In
Type |
Value |
string |
'/var/www/recess/bootstrap.php' |
Called From
- 18:
- 19:$pos = strpos($_SERVER['REQUEST_URI'], INDEX_PHP);
- 20:$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],$pos + strlen(INDEX_PHP));
- 21:
- 22:require_once('bootstrap.php');
- 23:?>