- <?
- /**
- * The Define resource file.
- * Defines the MVC system constants for the myPHP System
- * This file must be included before all other includes.
- *
- * @package mvc
- * @filesource
- * @see HTML_MVC_RESOURCE_PATH/Define.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * @global GRID_LAYOUT_xyz The Grid Layout xyz to use
- */
- define('GRID_LAYOUT_LIST' , 0x0001);
- define('GRID_LAYOUT_FORM' , 0x0002);
- define('GRID_LAYOUT_PLAIN' , 0x0004);
- define('GRID_LAYOUT_BASKET' , 0x0008);
- define('GRID_LAYOUT_DETAIL' , 0x0010);
- define('GRID_LAYOUT_LOGIN' , 0x0020);
- define('GRID_LAYOUT_XML_READER' , 0x1000);
- define('GRID_LAYOUT_XML_WRITER' , 0x2000);
-
- /**
- * The physical Engine Names
- * @global ENGINE_xyz The name of the Engine xyz to use
- */
- define('ENGINE_NAME_LIST' ,'EngineList');
- define('ENGINE_NAME_FORM' ,'EngineForm');
- define('ENGINE_NAME_LOGIN' ,'EngineLogin');
- define('ENGINE_NAME_EMAIL' ,'EngineEmail');
- define('ENGINE_NAME_SMS' ,'EngineSms');
- define('ENGINE_NAME_BASKET' ,'EngineBasket');
-
- /**
- * COMMAND_xxxx
- * Default command text,
- * NOTE: BE CAREFULL TO CHANGE THESE NAMES
- * The names are used in i.e. EngineObject
- * @global COMMAND_xyz The Command to execute
- */
- define('COMMAND_MASTER' ,'master');
- define('COMMAND_DETAIL' ,'detail');
- define('COMMAND_INSERT' ,'insert');
- define('COMMAND_UPDATE' ,'update');
- define('COMMAND_DELETE' ,'delete');
- define('COMMAND_LOGIN' ,'login');
- define('COMMAND_LOGOFF' ,'logoff');
- define('COMMAND_MAIL' ,'mail');
- define('COMMAND_SMS' ,'sms');
- define('COMMAND_NEW_USER','newuser');
- define('COMMAND_PASSWORD','password');
- define('COMMAND_TABLE' ,'table');
- define('COMMAND_LIST' ,'list');
- define('COMMAND_SEARCH' ,'search');
- define('COMMAND_BASKET' ,'basket');
-
- $DEFINE_COMMAND =
- array(
- 'ARRAY_NAME'=>'$DEFINE_COMMAND',
- 'COMMAND_MASTER'=>COMMAND_MASTER,
- 'COMMAND_DETAIL'=>COMMAND_DETAIL,
- 'COMMAND_INSERT'=>COMMAND_INSERT,
- 'COMMAND_UPDATE'=>COMMAND_UPDATE,
- 'COMMAND_DELETE'=>COMMAND_DELETE,
- 'COMMAND_LOGIN'=>COMMAND_LOGIN,
- 'COMMAND_LOGOFF'=>COMMAND_LOGOFF,
- 'COMMAND_MAIL'=>COMMAND_MAIL,
- 'COMMAND_SMS'=>COMMAND_SMS,
- 'COMMAND_NEW_USER'=>COMMAND_NEW_USER,
- 'COMMAND_PASSWORD'=>COMMAND_PASSWORD,
- 'COMMAND_TABLE'=>COMMAND_TABLE,
- 'COMMAND_LIST'=>COMMAND_LIST,
- 'COMMAND_SEARCH'=>COMMAND_SEARCH,
- 'COMMAND_BASKET'=>COMMAND_BASKET,
- );
-
- ?>