Ticket #869 (new defect)

Opened 4 months ago

Last modified 2 months ago

Namespace * fails for class files containing abstract class

Reported by: edward stow Owned by: xue
Priority: normal Milestone: 3.1.3
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords:
Cc:

Description

The prado namespace notation with an * fails to find sublclasses of abstract classes that are contained in the same php file. The sample below fails to find the ExtendedTestClass? declarations contained in the file TestClass?.php

Home.php:

Prado::using('Application.*');
//Prado::using('Application.TestClass');  // does work

class Home extends TPage
{
	function onLoad($param)
	{
		parent::onLoad($param);
		$test = new ExtendedTestClass();
	}
}

TestClass?.php with two classes, the first is abstract.

abstract class TestClass
{
	abstract function testFunction();
}

class ExtendedTestClass extends TestClass
{
	function testFunction()
	{	
	}
}

Change History

Changed 2 months ago by knut

  • milestone set to 3.1.3
Note: See TracTickets for help on using tickets.