Update of /cvsroot/phpvortex/phpvortex/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15946/test
Added Files:
vortex_test_page.php
Log Message:
Adding SEC_Page test program
--- NEW FILE: vortex_test_page.php ---
<?php
/**
* Test file for the PHP Vortex project - test SEC_Page functionality.
*
* @package Vortex
* @subpackage Debug
* @author Thiago Ramon Gonçalves Montoya
* @copyright Copyright 2004, Thiago Ramon Gonçalves Montoya
* @license http://opensource.org/licenses/lgpl-license.php GNU Lesser General Public License
*/
/** Require the header for SEC_Page functionality. */
require_once('../SEC_Page.class.php');
/**
* Testing class.
*
* @package Vortex
* @subpackage Debug
*/
class Test_Page extends SEC_Page {
function Test_Page() {
$this->header = array(
'class' => 'SEC_Header',
'opts' => array(
'title' => 'SEC_Page test page',
'styles' => array('tests.css')
)
);
$this->content = array(
'class' => 'SEC_Static',
'opts' => array(
'code' => 'Page content'
)
);
parent::SEC_Page(array());
}
}
$page =& new Test_Page;
$page->Show();
?>
|