Changeset 12932 for websites/planet.php.gr.jp
- Timestamp:
- 06/01/08 00:17:47 (5 years ago)
- Location:
- websites/planet.php.gr.jp/trunk/app
- Files:
-
- 6 added
- 3 modified
-
Delphinus_ActionClass.php (added)
-
Delphinus_ActionForm.php (added)
-
Delphinus_Controller.php (modified) (10 diffs)
-
Delphinus_Error.php (modified) (1 diff)
-
Delphinus_UnitTestManager.php (modified) (1 diff)
-
Delphinus_UrlHandler.php (added)
-
Delphinus_ViewClass.php (added)
-
plugin/Filter/Delphinus_Plugin_Filter_InstallCheck.php (added)
-
test (added)
Legend:
- Unmodified
- Added
- Removed
-
websites/planet.php.gr.jp/trunk/app/Delphinus_Controller.php
r12929 r12932 3 3 * Delphinus_Controller.php 4 4 * 5 * @author halt <halt.hde@gmail.com>5 * @author {$author} 6 6 * @package Delphinus 7 * @version $Id: app.controller.php ,v 1.11 2005/04/07 11:00:00 fujimoto Exp$7 * @version $Id: app.controller.php 500 2008-04-24 19:47:05Z mumumu-org $ 8 8 */ 9 9 … … 11 11 define('BASE', dirname(dirname(__FILE__))); 12 12 13 // include_path������ץꥱ�������ǥ��쥯�ȥ���� 14 $include_path = array( 15 'app' => BASE . "/app", 16 'lib' => BASE . "/lib", 17 'include_path' => ini_get('include_path'), 18 ); 19 20 ini_set('include_path', implode(PATH_SEPARATOR, $include_path)); 13 /** include_path������ץꥱ�������ǥ��쥯�ȥ���� */ 14 $app = BASE . "/app"; 15 $lib = BASE . "/lib"; 16 17 //ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . implode(PATH_SEPARATOR, array($app, $lib))); 18 ini_set('include_path', implode(PATH_SEPARATOR, array($app, $lib))); 19 21 20 22 21 /** ���ץꥱ�������饤�֥��Υ��롼��*/ 23 include_once('Ethna/Ethna.php'); 22 require_once 'Ethna/Ethna.php'; 23 require_once 'Delphinus_Error.php'; 24 require_once 'Delphinus_ActionClass.php'; 24 25 require_once 'Ethna_AuthActionClass.php'; 25 include_once('Delphinus_Error.php'); 26 require_once 'Delphinus_ActionForm.php'; 27 require_once 'Delphinus_ViewClass.php'; 26 28 require_once 'Delphinus_DB.class.php'; 27 29 require_once 'Haste_SmartyPlugins.php'; … … 29 31 require_once 'Aero_Util.php'; 30 32 33 31 34 /** 32 35 * Delphinus���ץꥱ�������Υ������� * 33 * @author halt <halt.hde@gmail.com>36 * @author {$author} 34 37 * @access public 35 38 * @package Delphinus … … 89 92 'action_cli' => 'app/action_cli', 90 93 'action_xmlrpc' => 'app/action_xmlrpc', 94 'app' => 'app', 95 'plugin' => 'app/plugin', 96 'bin' => 'bin', 91 97 'etc' => 'etc', 92 98 'filter' => 'app/filter', … … 98 104 'tmp' => 'tmp', 99 105 'view' => 'app/view', 100 'bin' => 'bin' 106 'www' => 'www', 107 'test' => 'app/test', 101 108 ); 102 109 … … 125 132 'db' => 'Delphinus_DB', 126 133 'error' => 'Ethna_ActionError', 127 'form' => ' Haste_ActionForm',134 'form' => 'Delphinus_ActionForm', 128 135 'i18n' => 'Ethna_I18N', 129 136 'logger' => 'Ethna_Logger', 137 'plugin' => 'Ethna_Plugin', 130 138 'session' => 'Ethna_Session', 131 139 'sql' => 'Ethna_AppSQL', 132 'view' => 'Ethna_ViewClass', 140 'view' => 'Delphinus_ViewClass', 141 'renderer' => 'Ethna_Renderer_Smarty', 142 'url_handler' => 'Delphinus_UrlHandler', 143 ); 144 145 /** 146 * @var array ����ݤȤʤ��饰������ץꥱ������ID�Υꥹ�� */ 147 var $plugin_search_appids = array( 148 /* 149 * �ץ饰����˸���ݤȤʤ륢�ץꥱ������ID�Υꥹ�ȤҤ��ޤ��� 150 * 151 * ����㡧 152 * Common_Plugin_Foo_Bar �Τ褦���̾�Υץ饰�����ץꥱ�������� * �ץ饰������쥯�ȥ�¸�ߤ����硢�ʲ��Τ褦�˻�ꤹ�� 153 * Common_Plugin_Foo_Bar, Delphinus_Plugin_Foo_Bar, Ethna_Plugin_Foo_Bar 154 * �ν��ץ饰����������� 155 * 156 * 'Common', 'Delphinus', 'Ethna', 157 */ 158 'Delphinus', 'Ethna', 133 159 ); 134 160 … … 138 164 var $filter = array( 139 165 /* 140 * TODO: �ե��륿��Ѥ����������ˤ��Υ��饹̾�� * ���Ҥ��Ƥ������ 141 * 142 * ����㡧 143 * 144 * 'Delphinus_Filter_ExecutionTime', 145 */ 146 ); 147 148 /** 149 * @var array �ޥ͡������ 150 */ 151 var $manager = array( 152 /* 153 * TODO: �����˥��ץꥱ�������Υޥ͡����㥪�֥������Ȱ��� * ���Ҥ��Ƥ������ 154 * 155 * ����㡧 156 * 157 * 'um' => 'User', 166 * TODO: �ե��륿��Ѥ����������ˤ��Υץ饰����� * ���Ҥ��Ƥ������ 167 * (���饹̾��ꤹ��filter�ǥ��쥯�ȥ꤫�����륿���饹 168 * ��߹��ߤޤ�) 169 * 170 * ����㡧 171 * 172 * 'ExecutionTime', 158 173 */ 159 174 ); … … 184 199 array('Haste_SmartyPlugins', 'form_input'), 185 200 array('Haste_SmartyPlugins', 'rss'), 186 201 ); 202 203 /** 204 * @var array smarty block��� */ 205 var $smarty_block_plugin = array( 206 /* 207 * TODO: �����˥桼������marty block���Ҥ��Ƥ������ 208 * 209 * ����㡧 210 * 211 * 'smarty_block_foo_bar', 212 */ 187 213 ); 188 214 … … 225 251 /**#@-*/ 226 252 227 /**228 * ��ܻ��Υǥե����ޥ��������� *229 * @access protected230 * @param object Smarty $smarty �ƥ�졼�ȥ��֥������� */231 function _setDefaultTemplateEngine(&$smarty)232 {233 /*234 * TODO: �����ǥƥ�졼�ȥ�������� * ��ƤΥӥ塼�˶���ʥƥ�졼��ѿ��ꤷ�ޤ�235 *236 * ����㡧237 * $smarty->assign_by_ref('session_name', session_name());238 * $smarty->assign_by_ref('session_id', session_id());239 *240 * // �����饰(true/false)241 * $session =& $this->getClassFactory('session');242 * if ($session && $this->session->isStart()) {243 * $smarty->assign_by_ref('login', $session->isStart());244 * }245 */246 $Config = $this->getConfig();247 $smarty->assign('title', $Config->get('title') );248 $smarty->assign('base_url', $Config->get('base_url') );249 $smarty->assign('copyright', $Config->get('copyright') );250 }251 252 253 /** 253 254 * �ե���������ᤵ�줿��������̾��� … … 291 292 } 292 293 293 } 294 /** 295 * ��ܻ��Υǥե����ޥ��������� * 296 * @access protected 297 * @param object Smarty $smarty �ƥ�졼�ȥ��֥������� */ 298 function _setDefaultTemplateEngine(&$smarty) 299 { 300 /* 301 * TODO: �����ǥƥ�졼�ȥ�������� * ��ƤΥӥ塼�˶���ʥƥ�졼��ѿ��ꤷ�ޤ� 302 * 303 * ����㡧 304 * $smarty->assign_by_ref('session_name', session_name()); 305 * $smarty->assign_by_ref('session_id', session_id()); 306 * 307 * // �����饰(true/false) 308 * $session =& $this->getClassFactory('session'); 309 * if ($session && $this->session->isStart()) { 310 * $smarty->assign_by_ref('login', $session->isStart()); 311 * } 312 */ 313 $Config = $this->getConfig(); 314 $smarty->assign('title', $Config->get('title') ); 315 $smarty->assign('base_url', $Config->get('base_url') ); 316 $smarty->assign('copyright', $Config->get('copyright') ); 317 } 318 } 294 319 ?> -
websites/planet.php.gr.jp/trunk/app/Delphinus_Error.php
r12921 r12932 1 1 <?php 2 2 /** 3 * Delphinus_Error.php3 * Delphinus_Error.php 4 4 * 5 * @packageDelphinus5 * @package Delphinus 6 6 * 7 * $Id: app.error.php,v 1.2 2004/11/29 16:36:27 fujimoto Exp$7 * $Id: app.error.php 387 2006-11-06 14:31:24Z cocoitiban $ 8 8 */ 9 9 10 10 /*--- ���ץꥱ���������顼���---*/ 11 11 /* 12 * TODO: �����˥��ץꥱ�������Υ��顼���Ҥ��Ƥ��������13 * �ʤ���255�ޤǤΥ��顼�����ɤϥե졼�����������������ޤ��Τ� *���顼�����ɤˤ�56�ʾ�����Ѥ��Ƥ��������12 * TODO: �����˥��ץꥱ�������Υ��顼���Ҥ��Ƥ�������� 13 * �ʤ���255�ޤǤΥ��顼�����ɤϥե졼�����������������ޤ��Τ� * ���顼�����ɤˤ�56�ʾ�����Ѥ��Ƥ�������� 14 14 * 15 * ����� *define('E_LOGIN_INVALID', 256);15 * ����� * define('E_LOGIN_INVALID', 256); 16 16 */ 17 17 ?> -
websites/planet.php.gr.jp/trunk/app/Delphinus_UnitTestManager.php
r12921 r12932 1 1 <?php 2 2 /** 3 * Delphinus_UnitTestManager.php3 * Delphinus_UnitTestManager.php 4 4 * 5 * @author{$author}6 * @packageDelphinus7 * @version $Id: Delphinus_UnitTestManager.php 42 2006-05-15 10:31:41Z ha1t$5 * @author {$author} 6 * @package Delphinus 7 * @version $Id: app.unittest.php 387 2006-11-06 14:31:24Z cocoitiban $ 8 8 */ 9 9 10 10 /** 11 * Delphinus���åȥƥ��ȥޥ͡����㥯�饹11 * Delphinus���åȥƥ��ȥޥ͡����㥯�饹 12 12 * 13 * @author{$author}14 * @accesspublic15 * @packageDelphinus13 * @author {$author} 14 * @access public 15 * @package Delphinus 16 16 */ 17 17 class Delphinus_UnitTestManager extends Ethna_UnitTestManager 18 18 { 19 /**20 * @var array ���ƥ��ȥ��������*/21 var $testcase = array(22 /*23 *TODO: �����˰��ƥ��ȥ��������Ҥ��Ƥ������24 *25 *����㡧26 *27 *'util' => 'app/UtilTest.php',28 */29 );19 /** 20 * @var array ���ƥ��ȥ�������� */ 21 var $testcase = array( 22 /* 23 * TODO: �����˰��ƥ��ȥ��������Ҥ��Ƥ������ 24 * 25 * ����㡧 26 * 27 * 'util' => 'app/UtilTest.php', 28 */ 29 ); 30 30 } 31 31 ?>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)