Added back the @package and @subpackage headers to /app and /config files.

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@239 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
pies 2005-06-05 23:41:46 +00:00
parent 3f10d747b7
commit f2f3d56e36
12 changed files with 86 additions and 30 deletions

View file

@ -13,7 +13,10 @@
* application-wide controller-related methods here.
*
* Add your application-wide methods in the class below, your controllers
* will be inheriting them.
* will inherit them.
*
* @package cake
* @subpackage cake.app
*/
class AppController extends Controller {

View file

@ -13,7 +13,10 @@
* application-wide model-related methods here.
*
* Add your application-wide methods in the class below, your models
* will be inheriting them.
* will inherit them.
*
* @package cake
* @subpackage cake.app
*/
class AppModel extends Model {

View file

@ -12,6 +12,9 @@ class PagesController extends PagesHelper {
/**
* Displays a view
*
* @package cake
* @subpackage cake.app
*/
function display () {

View file

@ -10,8 +10,7 @@
/**
* Description:
*
* The includes below are required for the TestsController to work.
*/
uses('test', 'folder', 'inflector');
@ -19,23 +18,30 @@ class TestsController extends TestsHelper {
/**
* Runs all library and application tests
*
* @package cake
* @subpackage cake.app
*/
function test_all () {
function test_all ()
{
$this->layout = 'test';
$tests_folder = new Folder('../tests');
$results = array();
$total_errors = 0;
foreach ($tests_folder->findRecursive('.*\.php') as $test) {
if (preg_match('/^(.+)\.php/i', basename($test), $r)) {
foreach ($tests_folder->findRecursive('.*\.php') as $test)
{
if (preg_match('/^(.+)\.php/i', basename($test), $r))
{
require_once($test);
$test_name = Inflector::Camelize($r[1]);
if (preg_match('/^(.+)Test$/i', $test_name, $r)) {
if (preg_match('/^(.+)Test$/i', $test_name, $r))
{
$module_name = $r[1];
}
else {
else
{
$module_name = $test_name;
}
$suite = new TestSuite($test_name);
@ -43,7 +49,8 @@ class TestsController extends TestsHelper {
$total_errors += $result['errors'];
$results[] = array(
$results[] = array
(
'name'=>$module_name,
'result'=>$result,
);
@ -53,7 +60,6 @@ class TestsController extends TestsHelper {
$this->set('success', !$total_errors);
$this->set('results', $results);
}
}
?>

View file

@ -8,7 +8,15 @@
// + Licensed under The MIT License + //
//////////////////////////////////////////////////////////////////////////
class PagesHelper extends AppController {
/**
* In this file you can extend the PagesController.
*
* @package cake
* @subpackage cake.app
*/
class PagesHelper extends AppController
{
}
?>

View file

@ -8,7 +8,15 @@
// + Licensed under The MIT License + //
//////////////////////////////////////////////////////////////////////////
class TestsHelper extends AppController {
/**
* In this file you can extend the TestsController.
*
* @package cake
* @subpackage cake.app
*/
class TestsHelper extends AppController
{
}
?>

View file

@ -11,6 +11,9 @@
/**
* This is core configuration file. Use it to configure core behaviour of
* Cake.
*
* @package cake
* @subpackage cake.config
*/
/**

View file

@ -10,6 +10,9 @@
/**
* In this file you set up your database connection details.
*
* @package cake
* @subpackage cake.config
*/
/**

View file

@ -10,6 +10,9 @@
/**
* In this file you set paths to different directories used by Cake.
*
* @package cake
* @subpackage cake.config
*/
/**
@ -89,11 +92,6 @@ define ('PUBLIC', ROOT.'public'.DS);
*/
define ('TESTS', ROOT.'tests'.DS);
/**
* Path to the vendors directory.
*/
define ('VENDORS', ROOT.'vendors'.DS);
/**
* Path to the controller test directory.
*/
@ -114,4 +112,16 @@ define ('MODEL_TESTS', TESTS.'app'.DS.'models'.DS);
*/
define ('LIB_TESTS', TESTS.'libs'.DS);
/**
* Path to the vendors directory.
*/
define ('VENDORS', ROOT.'vendors'.DS);
/**
* Path to the Pear directory
* The purporse is to make it easy porting Pear libs into Cake
* without setting the include_path PHP variable.
*/
define ('PEAR', VENDORS.'Pear'.DS);
?>

View file

@ -12,6 +12,9 @@
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (functions).
*
* @package cake
* @subpackage cake.config
*/
/**

View file

@ -12,6 +12,9 @@
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (functions).
*
* @package cake
* @subpackage cake.config
*/
/**

View file

@ -11,6 +11,9 @@
/**
* In this file, you can set up 'templates' for every tag generated by the tag
* generator.
*
* @package cake
* @subpackage cake.config
*/
/**