going thru trunk and cleaning up the file headers so API docs can be created properly

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@311 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2005-07-04 01:24:13 +00:00
parent ec53963d40
commit 3b3a47e3f0
7 changed files with 102 additions and 18 deletions

View file

@ -8,6 +8,16 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
/**
*
* @filesource
* @package cake
* @subpackage cake.app
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/** /**
* This file is application-wide controller file. You can put all * This file is application-wide controller file. You can put all
* application-wide controller-related methods here. * application-wide controller-related methods here.

View file

@ -8,6 +8,16 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
/**
*
* @filesource
* @package cake
* @subpackage cake.app
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/** /**
* This file is application-wide model file. You can put all * This file is application-wide model file. You can put all
* application-wide model-related methods here. * application-wide model-related methods here.

View file

@ -8,23 +8,54 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
class PagesController extends PagesHelper
{ /**
*
* @filesource
* @package cake
* @subpackage cake.app.controllers
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/**
* This file is application-wide controller file. You can put all
* application-wide controller-related methods here.
*
* Add your application-wide methods in the class below, your controllers
* will inherit them.
*
* @package cake
* @subpackage cake.app.controllers
*/
class PagesController extends PagesHelper{
/**
* Enter description here...
*
* @var unknown_type
*/
var $helpers = array('html', 'ajax'); var $helpers = array('html', 'ajax');
/**
* Displays a view
* /**
* @package cake * Displays a view
* @subpackage cake.app *
*/ */
function display() function display()
{ {
if (!func_num_args()) if (!func_num_args())
{
$this->redirect('/'); $this->redirect('/');
}
$path = func_get_args(); $path = func_get_args();
if (!count($path)) if (!count($path))
{
$this->redirect('/'); $this->redirect('/');
}
$this->set('page', $path[0]); $this->set('page', $path[0]);
$this->set('subpage', empty($path[1])? null: $path[1]); $this->set('subpage', empty($path[1])? null: $path[1]);

View file

@ -8,13 +8,26 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
/**
*
* @filesource
* @package cake
* @subpackage cake.app.controllers
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/**
*
* @package cake
* @subpackage cake.app.controllers
*/
class TestsController extends TestsHelper { class TestsController extends TestsHelper {
/** /**
* Runs all library and application tests * Runs all library and application tests
* *
* @package cake
* @subpackage cake.app
*/ */
function test_all () function test_all ()
{ {

View file

@ -8,11 +8,21 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
/**
*
* @filesource
* @package cake
* @subpackage cake.app.helpers
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/** /**
* In this file you can extend the PagesController. * In this file you can extend the PagesController.
* *
* @package cake * @package cake
* @subpackage cake.app * @subpackage cake.app.helpers
*/ */
class PagesHelper extends AppController class PagesHelper extends AppController

View file

@ -8,11 +8,21 @@
// + Licensed under The MIT License + // // + Licensed under The MIT License + //
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
/**
*
* @filesource
* @package cake
* @subpackage cake.app.helpers
* @version $Revision:$
* @modifiedby $LastChangedBy:$
* @lastmodified $Date:$
*/
/** /**
* In this file you can extend the TestsController. * In this file you can extend the TestsController.
* *
* @package cake * @package cake
* @subpackage cake.app * @subpackage cake.app.helpers
*/ */
class TestsHelper extends AppController class TestsHelper extends AppController

View file

@ -54,12 +54,12 @@ function make_clean_css ($path, $name)
} }
/** /**
* Enter description here... * Enter description here...
* *
* @param unknown_type $path * @param unknown_type $path
* @param unknown_type $content * @param unknown_type $content
* @return unknown * @return unknown
*/ */
function write_css_cache ($path, $content) function write_css_cache ($path, $content)
{ {
if (!is_dir(dirname($path))) if (!is_dir(dirname($path)))