adding APP_FILES table to store templates and public files from Files Manager option
This commit is contained in:
19
workflow/engine/classes/model/AppFiles.php
Normal file
19
workflow/engine/classes/model/AppFiles.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once 'classes/model/om/BaseAppFiles.php';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Skeleton subclass for representing a row from the 'APP_FILES' table.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* You should add additional methods to this class to meet the
|
||||||
|
* application requirements. This class will only be generated as
|
||||||
|
* long as it does not already exist in the output directory.
|
||||||
|
*
|
||||||
|
* @package classes.model
|
||||||
|
*/
|
||||||
|
class AppFiles extends BaseAppFiles {
|
||||||
|
|
||||||
|
} // AppFiles
|
||||||
23
workflow/engine/classes/model/AppFilesPeer.php
Normal file
23
workflow/engine/classes/model/AppFilesPeer.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// include base peer class
|
||||||
|
require_once 'classes/model/om/BaseAppFilesPeer.php';
|
||||||
|
|
||||||
|
// include object class
|
||||||
|
include_once 'classes/model/AppFiles.php';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Skeleton subclass for performing query and update operations on the 'APP_FILES' table.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* You should add additional methods to this class to meet the
|
||||||
|
* application requirements. This class will only be generated as
|
||||||
|
* long as it does not already exist in the output directory.
|
||||||
|
*
|
||||||
|
* @package classes.model
|
||||||
|
*/
|
||||||
|
class AppFilesPeer extends BaseAppFilesPeer {
|
||||||
|
|
||||||
|
} // AppFilesPeer
|
||||||
88
workflow/engine/classes/model/map/AppFilesMapBuilder.php
Normal file
88
workflow/engine/classes/model/map/AppFilesMapBuilder.php
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once 'propel/map/MapBuilder.php';
|
||||||
|
include_once 'creole/CreoleTypes.php';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class adds structure of 'APP_FILES' table to 'workflow' DatabaseMap object.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||||
|
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||||
|
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||||
|
* (i.e. if it's a text column type).
|
||||||
|
*
|
||||||
|
* @package workflow.classes.model.map
|
||||||
|
*/
|
||||||
|
class AppFilesMapBuilder
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The (dot-path) name of this class
|
||||||
|
*/
|
||||||
|
const CLASS_NAME = 'classes.model.map.AppFilesMapBuilder';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The database map.
|
||||||
|
*/
|
||||||
|
private $dbMap;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tells us if this DatabaseMapBuilder is built so that we
|
||||||
|
* don't have to re-build it every time.
|
||||||
|
*
|
||||||
|
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||||
|
*/
|
||||||
|
public function isBuilt()
|
||||||
|
{
|
||||||
|
return ($this->dbMap !== null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the databasemap this map builder built.
|
||||||
|
*
|
||||||
|
* @return the databasemap
|
||||||
|
*/
|
||||||
|
public function getDatabaseMap()
|
||||||
|
{
|
||||||
|
return $this->dbMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The doBuild() method builds the DatabaseMap
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @throws PropelException
|
||||||
|
*/
|
||||||
|
public function doBuild()
|
||||||
|
{
|
||||||
|
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||||
|
|
||||||
|
$tMap = $this->dbMap->addTable('APP_FILES');
|
||||||
|
$tMap->setPhpName('AppFiles');
|
||||||
|
|
||||||
|
$tMap->setUseIdGenerator(false);
|
||||||
|
|
||||||
|
$tMap->addPrimaryKey('APF_UID', 'ApfUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
|
$tMap->addColumn('PRO_UID', 'ProUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
|
$tMap->addColumn('CREATE_USR_UID', 'CreateUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
|
$tMap->addColumn('LAST_UPDATE_USR_UID', 'LastUpdateUsrUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||||
|
|
||||||
|
$tMap->addColumn('APF_PATH', 'ApfPath', 'string', CreoleTypes::VARCHAR, true, 256);
|
||||||
|
|
||||||
|
$tMap->addColumn('APF_TYPE', 'ApfType', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||||
|
|
||||||
|
$tMap->addColumn('APF_EDITABLE', 'ApfEditable', 'int', CreoleTypes::TINYINT, false, null);
|
||||||
|
|
||||||
|
$tMap->addColumn('APF_CREATE_DATE', 'ApfCreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
||||||
|
|
||||||
|
$tMap->addColumn('APF_UPDATE_DATE', 'ApfUpdateDate', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||||
|
|
||||||
|
} // doBuild()
|
||||||
|
|
||||||
|
} // AppFilesMapBuilder
|
||||||
@@ -67,6 +67,8 @@ class LanguageMapBuilder
|
|||||||
|
|
||||||
$tMap->addPrimaryKey('LAN_ID', 'LanId', 'string', CreoleTypes::VARCHAR, true, 4);
|
$tMap->addPrimaryKey('LAN_ID', 'LanId', 'string', CreoleTypes::VARCHAR, true, 4);
|
||||||
|
|
||||||
|
$tMap->addColumn('LAN_LOCATION', 'LanLocation', 'string', CreoleTypes::VARCHAR, true, 4);
|
||||||
|
|
||||||
$tMap->addColumn('LAN_NAME', 'LanName', 'string', CreoleTypes::VARCHAR, true, 30);
|
$tMap->addColumn('LAN_NAME', 'LanName', 'string', CreoleTypes::VARCHAR, true, 30);
|
||||||
|
|
||||||
$tMap->addColumn('LAN_NATIVE_NAME', 'LanNativeName', 'string', CreoleTypes::VARCHAR, true, 30);
|
$tMap->addColumn('LAN_NATIVE_NAME', 'LanNativeName', 'string', CreoleTypes::VARCHAR, true, 30);
|
||||||
|
|||||||
1022
workflow/engine/classes/model/om/BaseAppFiles.php
Normal file
1022
workflow/engine/classes/model/om/BaseAppFiles.php
Normal file
File diff suppressed because it is too large
Load Diff
607
workflow/engine/classes/model/om/BaseAppFilesPeer.php
Normal file
607
workflow/engine/classes/model/om/BaseAppFilesPeer.php
Normal file
@@ -0,0 +1,607 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once 'propel/util/BasePeer.php';
|
||||||
|
// The object class -- needed for instanceof checks in this class.
|
||||||
|
// actual class may be a subclass -- as returned by AppFilesPeer::getOMClass()
|
||||||
|
include_once 'classes/model/AppFiles.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base static class for performing query and update operations on the 'APP_FILES' table.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @package workflow.classes.model.om
|
||||||
|
*/
|
||||||
|
abstract class BaseAppFilesPeer
|
||||||
|
{
|
||||||
|
|
||||||
|
/** the default database name for this class */
|
||||||
|
const DATABASE_NAME = 'workflow';
|
||||||
|
|
||||||
|
/** the table name for this class */
|
||||||
|
const TABLE_NAME = 'APP_FILES';
|
||||||
|
|
||||||
|
/** A class that can be returned by this peer. */
|
||||||
|
const CLASS_DEFAULT = 'classes.model.AppFiles';
|
||||||
|
|
||||||
|
/** The total number of columns. */
|
||||||
|
const NUM_COLUMNS = 9;
|
||||||
|
|
||||||
|
/** The number of lazy-loaded columns. */
|
||||||
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
|
|
||||||
|
/** the column name for the APF_UID field */
|
||||||
|
const APF_UID = 'APP_FILES.APF_UID';
|
||||||
|
|
||||||
|
/** the column name for the PRO_UID field */
|
||||||
|
const PRO_UID = 'APP_FILES.PRO_UID';
|
||||||
|
|
||||||
|
/** the column name for the CREATE_USR_UID field */
|
||||||
|
const CREATE_USR_UID = 'APP_FILES.CREATE_USR_UID';
|
||||||
|
|
||||||
|
/** the column name for the LAST_UPDATE_USR_UID field */
|
||||||
|
const LAST_UPDATE_USR_UID = 'APP_FILES.LAST_UPDATE_USR_UID';
|
||||||
|
|
||||||
|
/** the column name for the APF_PATH field */
|
||||||
|
const APF_PATH = 'APP_FILES.APF_PATH';
|
||||||
|
|
||||||
|
/** the column name for the APF_TYPE field */
|
||||||
|
const APF_TYPE = 'APP_FILES.APF_TYPE';
|
||||||
|
|
||||||
|
/** the column name for the APF_EDITABLE field */
|
||||||
|
const APF_EDITABLE = 'APP_FILES.APF_EDITABLE';
|
||||||
|
|
||||||
|
/** the column name for the APF_CREATE_DATE field */
|
||||||
|
const APF_CREATE_DATE = 'APP_FILES.APF_CREATE_DATE';
|
||||||
|
|
||||||
|
/** the column name for the APF_UPDATE_DATE field */
|
||||||
|
const APF_UPDATE_DATE = 'APP_FILES.APF_UPDATE_DATE';
|
||||||
|
|
||||||
|
/** The PHP to DB Name Mapping */
|
||||||
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* holds an array of fieldnames
|
||||||
|
*
|
||||||
|
* first dimension keys are the type constants
|
||||||
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
|
*/
|
||||||
|
private static $fieldNames = array (
|
||||||
|
BasePeer::TYPE_PHPNAME => array ('ApfUid', 'ProUid', 'CreateUsrUid', 'LastUpdateUsrUid', 'ApfPath', 'ApfType', 'ApfEditable', 'ApfCreateDate', 'ApfUpdateDate', ),
|
||||||
|
BasePeer::TYPE_COLNAME => array (AppFilesPeer::APF_UID, AppFilesPeer::PRO_UID, AppFilesPeer::CREATE_USR_UID, AppFilesPeer::LAST_UPDATE_USR_UID, AppFilesPeer::APF_PATH, AppFilesPeer::APF_TYPE, AppFilesPeer::APF_EDITABLE, AppFilesPeer::APF_CREATE_DATE, AppFilesPeer::APF_UPDATE_DATE, ),
|
||||||
|
BasePeer::TYPE_FIELDNAME => array ('APF_UID', 'PRO_UID', 'CREATE_USR_UID', 'LAST_UPDATE_USR_UID', 'APF_PATH', 'APF_TYPE', 'APF_EDITABLE', 'APF_CREATE_DATE', 'APF_UPDATE_DATE', ),
|
||||||
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* holds an array of keys for quick access to the fieldnames array
|
||||||
|
*
|
||||||
|
* first dimension keys are the type constants
|
||||||
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
|
*/
|
||||||
|
private static $fieldKeys = array (
|
||||||
|
BasePeer::TYPE_PHPNAME => array ('ApfUid' => 0, 'ProUid' => 1, 'CreateUsrUid' => 2, 'LastUpdateUsrUid' => 3, 'ApfPath' => 4, 'ApfType' => 5, 'ApfEditable' => 6, 'ApfCreateDate' => 7, 'ApfUpdateDate' => 8, ),
|
||||||
|
BasePeer::TYPE_COLNAME => array (AppFilesPeer::APF_UID => 0, AppFilesPeer::PRO_UID => 1, AppFilesPeer::CREATE_USR_UID => 2, AppFilesPeer::LAST_UPDATE_USR_UID => 3, AppFilesPeer::APF_PATH => 4, AppFilesPeer::APF_TYPE => 5, AppFilesPeer::APF_EDITABLE => 6, AppFilesPeer::APF_CREATE_DATE => 7, AppFilesPeer::APF_UPDATE_DATE => 8, ),
|
||||||
|
BasePeer::TYPE_FIELDNAME => array ('APF_UID' => 0, 'PRO_UID' => 1, 'CREATE_USR_UID' => 2, 'LAST_UPDATE_USR_UID' => 3, 'APF_PATH' => 4, 'APF_TYPE' => 5, 'APF_EDITABLE' => 6, 'APF_CREATE_DATE' => 7, 'APF_UPDATE_DATE' => 8, ),
|
||||||
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, )
|
||||||
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return MapBuilder the map builder for this peer
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function getMapBuilder()
|
||||||
|
{
|
||||||
|
include_once 'classes/model/map/AppFilesMapBuilder.php';
|
||||||
|
return BasePeer::getMapBuilder('classes.model.map.AppFilesMapBuilder');
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Gets a map (hash) of PHP names to DB column names.
|
||||||
|
*
|
||||||
|
* @return array The PHP to DB name map for this peer
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
* @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
|
||||||
|
*/
|
||||||
|
public static function getPhpNameMap()
|
||||||
|
{
|
||||||
|
if (self::$phpNameMap === null) {
|
||||||
|
$map = AppFilesPeer::getTableMap();
|
||||||
|
$columns = $map->getColumns();
|
||||||
|
$nameMap = array();
|
||||||
|
foreach ($columns as $column) {
|
||||||
|
$nameMap[$column->getPhpName()] = $column->getColumnName();
|
||||||
|
}
|
||||||
|
self::$phpNameMap = $nameMap;
|
||||||
|
}
|
||||||
|
return self::$phpNameMap;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Translates a fieldname to another type
|
||||||
|
*
|
||||||
|
* @param string $name field name
|
||||||
|
* @param string $fromType One of the class type constants TYPE_PHPNAME,
|
||||||
|
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
|
||||||
|
* @param string $toType One of the class type constants
|
||||||
|
* @return string translated name of the field.
|
||||||
|
*/
|
||||||
|
static public function translateFieldName($name, $fromType, $toType)
|
||||||
|
{
|
||||||
|
$toNames = self::getFieldNames($toType);
|
||||||
|
$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
|
||||||
|
if ($key === null) {
|
||||||
|
throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
|
||||||
|
}
|
||||||
|
return $toNames[$key];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array of of field names.
|
||||||
|
*
|
||||||
|
* @param string $type The type of fieldnames to return:
|
||||||
|
* One of the class type constants TYPE_PHPNAME,
|
||||||
|
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
|
||||||
|
* @return array A list of field names
|
||||||
|
*/
|
||||||
|
|
||||||
|
static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
|
||||||
|
{
|
||||||
|
if (!array_key_exists($type, self::$fieldNames)) {
|
||||||
|
throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
|
||||||
|
}
|
||||||
|
return self::$fieldNames[$type];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience method which changes table.column to alias.column.
|
||||||
|
*
|
||||||
|
* Using this method you can maintain SQL abstraction while using column aliases.
|
||||||
|
* <code>
|
||||||
|
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||||
|
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||||
|
* </code>
|
||||||
|
* @param string $alias The alias for the current table.
|
||||||
|
* @param string $column The column name for current table. (i.e. AppFilesPeer::COLUMN_NAME).
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function alias($alias, $column)
|
||||||
|
{
|
||||||
|
return str_replace(AppFilesPeer::TABLE_NAME.'.', $alias.'.', $column);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add all the columns needed to create a new object.
|
||||||
|
*
|
||||||
|
* Note: any columns that were marked with lazyLoad="true" in the
|
||||||
|
* XML schema will not be added to the select list and only loaded
|
||||||
|
* on demand.
|
||||||
|
*
|
||||||
|
* @param criteria object containing the columns to add.
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function addSelectColumns(Criteria $criteria)
|
||||||
|
{
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_UID);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::PRO_UID);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::CREATE_USR_UID);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::LAST_UPDATE_USR_UID);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_PATH);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_TYPE);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_EDITABLE);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_CREATE_DATE);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::APF_UPDATE_DATE);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const COUNT = 'COUNT(APP_FILES.APF_UID)';
|
||||||
|
const COUNT_DISTINCT = 'COUNT(DISTINCT APP_FILES.APF_UID)';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the number of rows matching criteria.
|
||||||
|
*
|
||||||
|
* @param Criteria $criteria
|
||||||
|
* @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
|
||||||
|
* @param Connection $con
|
||||||
|
* @return int Number of matching rows.
|
||||||
|
*/
|
||||||
|
public static function doCount(Criteria $criteria, $distinct = false, $con = null)
|
||||||
|
{
|
||||||
|
// we're going to modify criteria, so copy it first
|
||||||
|
$criteria = clone $criteria;
|
||||||
|
|
||||||
|
// clear out anything that might confuse the ORDER BY clause
|
||||||
|
$criteria->clearSelectColumns()->clearOrderByColumns();
|
||||||
|
if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::COUNT_DISTINCT);
|
||||||
|
} else {
|
||||||
|
$criteria->addSelectColumn(AppFilesPeer::COUNT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// just in case we're grouping: add those columns to the select statement
|
||||||
|
foreach ($criteria->getGroupByColumns() as $column) {
|
||||||
|
$criteria->addSelectColumn($column);
|
||||||
|
}
|
||||||
|
|
||||||
|
$rs = AppFilesPeer::doSelectRS($criteria, $con);
|
||||||
|
if ($rs->next()) {
|
||||||
|
return $rs->getInt(1);
|
||||||
|
} else {
|
||||||
|
// no rows returned; we infer that means 0 matches.
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Method to select one object from the DB.
|
||||||
|
*
|
||||||
|
* @param Criteria $criteria object used to create the SELECT statement.
|
||||||
|
* @param Connection $con
|
||||||
|
* @return AppFiles
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function doSelectOne(Criteria $criteria, $con = null)
|
||||||
|
{
|
||||||
|
$critcopy = clone $criteria;
|
||||||
|
$critcopy->setLimit(1);
|
||||||
|
$objects = AppFilesPeer::doSelect($critcopy, $con);
|
||||||
|
if ($objects) {
|
||||||
|
return $objects[0];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Method to do selects.
|
||||||
|
*
|
||||||
|
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
|
||||||
|
* @param Connection $con
|
||||||
|
* @return array Array of selected Objects
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function doSelect(Criteria $criteria, $con = null)
|
||||||
|
{
|
||||||
|
return AppFilesPeer::populateObjects(AppFilesPeer::doSelectRS($criteria, $con));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Prepares the Criteria object and uses the parent doSelect()
|
||||||
|
* method to get a ResultSet.
|
||||||
|
*
|
||||||
|
* Use this method directly if you want to just get the resultset
|
||||||
|
* (instead of an array of objects).
|
||||||
|
*
|
||||||
|
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
|
||||||
|
* @param Connection $con the connection to use
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
* @return ResultSet The resultset object with numerically-indexed fields.
|
||||||
|
* @see BasePeer::doSelect()
|
||||||
|
*/
|
||||||
|
public static function doSelectRS(Criteria $criteria, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$criteria->getSelectColumns()) {
|
||||||
|
$criteria = clone $criteria;
|
||||||
|
AppFilesPeer::addSelectColumns($criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the correct dbName
|
||||||
|
$criteria->setDbName(self::DATABASE_NAME);
|
||||||
|
|
||||||
|
// BasePeer returns a Creole ResultSet, set to return
|
||||||
|
// rows indexed numerically.
|
||||||
|
return BasePeer::doSelect($criteria, $con);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The returned array will contain objects of the default type or
|
||||||
|
* objects that inherit from the default.
|
||||||
|
*
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function populateObjects(ResultSet $rs)
|
||||||
|
{
|
||||||
|
$results = array();
|
||||||
|
|
||||||
|
// set the class once to avoid overhead in the loop
|
||||||
|
$cls = AppFilesPeer::getOMClass();
|
||||||
|
$cls = Propel::import($cls);
|
||||||
|
// populate the object(s)
|
||||||
|
while ($rs->next()) {
|
||||||
|
|
||||||
|
$obj = new $cls();
|
||||||
|
$obj->hydrate($rs);
|
||||||
|
$results[] = $obj;
|
||||||
|
|
||||||
|
}
|
||||||
|
return $results;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Returns the TableMap related to this peer.
|
||||||
|
* This method is not needed for general use but a specific application could have a need.
|
||||||
|
* @return TableMap
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function getTableMap()
|
||||||
|
{
|
||||||
|
return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class that the Peer will make instances of.
|
||||||
|
*
|
||||||
|
* This uses a dot-path notation which is tranalted into a path
|
||||||
|
* relative to a location on the PHP include_path.
|
||||||
|
* (e.g. path.to.MyClass -> 'path/to/MyClass.php')
|
||||||
|
*
|
||||||
|
* @return string path.to.ClassName
|
||||||
|
*/
|
||||||
|
public static function getOMClass()
|
||||||
|
{
|
||||||
|
return AppFilesPeer::CLASS_DEFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method perform an INSERT on the database, given a AppFiles or Criteria object.
|
||||||
|
*
|
||||||
|
* @param mixed $values Criteria or AppFiles object containing data that is used to create the INSERT statement.
|
||||||
|
* @param Connection $con the connection to use
|
||||||
|
* @return mixed The new primary key.
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function doInsert($values, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($values instanceof Criteria) {
|
||||||
|
$criteria = clone $values; // rename for clarity
|
||||||
|
} else {
|
||||||
|
$criteria = $values->buildCriteria(); // build Criteria from AppFiles object
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Set the correct dbName
|
||||||
|
$criteria->setDbName(self::DATABASE_NAME);
|
||||||
|
|
||||||
|
try {
|
||||||
|
// use transaction because $criteria could contain info
|
||||||
|
// for more than one table (I guess, conceivably)
|
||||||
|
$con->begin();
|
||||||
|
$pk = BasePeer::doInsert($criteria, $con);
|
||||||
|
$con->commit();
|
||||||
|
} catch (PropelException $e) {
|
||||||
|
$con->rollback();
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $pk;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method perform an UPDATE on the database, given a AppFiles or Criteria object.
|
||||||
|
*
|
||||||
|
* @param mixed $values Criteria or AppFiles object containing data create the UPDATE statement.
|
||||||
|
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
||||||
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function doUpdate($values, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
$selectCriteria = new Criteria(self::DATABASE_NAME);
|
||||||
|
|
||||||
|
if ($values instanceof Criteria) {
|
||||||
|
$criteria = clone $values; // rename for clarity
|
||||||
|
|
||||||
|
$comparison = $criteria->getComparison(AppFilesPeer::APF_UID);
|
||||||
|
$selectCriteria->add(AppFilesPeer::APF_UID, $criteria->remove(AppFilesPeer::APF_UID), $comparison);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$criteria = $values->buildCriteria(); // gets full criteria
|
||||||
|
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the correct dbName
|
||||||
|
$criteria->setDbName(self::DATABASE_NAME);
|
||||||
|
|
||||||
|
return BasePeer::doUpdate($selectCriteria, $criteria, $con);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to DELETE all rows from the APP_FILES table.
|
||||||
|
*
|
||||||
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
|
*/
|
||||||
|
public static function doDeleteAll($con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||||
|
try {
|
||||||
|
// use transaction because $criteria could contain info
|
||||||
|
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||||
|
$con->begin();
|
||||||
|
$affectedRows += BasePeer::doDeleteAll(AppFilesPeer::TABLE_NAME, $con);
|
||||||
|
$con->commit();
|
||||||
|
return $affectedRows;
|
||||||
|
} catch (PropelException $e) {
|
||||||
|
$con->rollback();
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method perform a DELETE on the database, given a AppFiles or Criteria object OR a primary key value.
|
||||||
|
*
|
||||||
|
* @param mixed $values Criteria or AppFiles object or primary key or array of primary keys
|
||||||
|
* which is used to create the DELETE statement
|
||||||
|
* @param Connection $con the connection to use
|
||||||
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
|
* This includes CASCADE-related rows
|
||||||
|
* if supported by native driver or if emulated using Propel.
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function doDelete($values, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(AppFilesPeer::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($values instanceof Criteria) {
|
||||||
|
$criteria = clone $values; // rename for clarity
|
||||||
|
} elseif ($values instanceof AppFiles) {
|
||||||
|
|
||||||
|
$criteria = $values->buildPkeyCriteria();
|
||||||
|
} else {
|
||||||
|
// it must be the primary key
|
||||||
|
$criteria = new Criteria(self::DATABASE_NAME);
|
||||||
|
$criteria->add(AppFilesPeer::APF_UID, (array) $values, Criteria::IN);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the correct dbName
|
||||||
|
$criteria->setDbName(self::DATABASE_NAME);
|
||||||
|
|
||||||
|
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||||
|
|
||||||
|
try {
|
||||||
|
// use transaction because $criteria could contain info
|
||||||
|
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||||
|
$con->begin();
|
||||||
|
|
||||||
|
$affectedRows += BasePeer::doDelete($criteria, $con);
|
||||||
|
$con->commit();
|
||||||
|
return $affectedRows;
|
||||||
|
} catch (PropelException $e) {
|
||||||
|
$con->rollback();
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validates all modified columns of given AppFiles object.
|
||||||
|
* If parameter $columns is either a single column name or an array of column names
|
||||||
|
* than only those columns are validated.
|
||||||
|
*
|
||||||
|
* NOTICE: This does not apply to primary or foreign keys for now.
|
||||||
|
*
|
||||||
|
* @param AppFiles $obj The object to validate.
|
||||||
|
* @param mixed $cols Column name or array of column names.
|
||||||
|
*
|
||||||
|
* @return mixed TRUE if all columns are valid or the error message of the first invalid column.
|
||||||
|
*/
|
||||||
|
public static function doValidate(AppFiles $obj, $cols = null)
|
||||||
|
{
|
||||||
|
$columns = array();
|
||||||
|
|
||||||
|
if ($cols) {
|
||||||
|
$dbMap = Propel::getDatabaseMap(AppFilesPeer::DATABASE_NAME);
|
||||||
|
$tableMap = $dbMap->getTable(AppFilesPeer::TABLE_NAME);
|
||||||
|
|
||||||
|
if (! is_array($cols)) {
|
||||||
|
$cols = array($cols);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($cols as $colName) {
|
||||||
|
if ($tableMap->containsColumn($colName)) {
|
||||||
|
$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
|
||||||
|
$columns[$colName] = $obj->$get();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return BasePeer::doValidate(AppFilesPeer::DATABASE_NAME, AppFilesPeer::TABLE_NAME, $columns);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve a single object by pkey.
|
||||||
|
*
|
||||||
|
* @param mixed $pk the primary key.
|
||||||
|
* @param Connection $con the connection to use
|
||||||
|
* @return AppFiles
|
||||||
|
*/
|
||||||
|
public static function retrieveByPK($pk, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
$criteria = new Criteria(AppFilesPeer::DATABASE_NAME);
|
||||||
|
|
||||||
|
$criteria->add(AppFilesPeer::APF_UID, $pk);
|
||||||
|
|
||||||
|
|
||||||
|
$v = AppFilesPeer::doSelect($criteria, $con);
|
||||||
|
|
||||||
|
return !empty($v) > 0 ? $v[0] : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve multiple objects by pkey.
|
||||||
|
*
|
||||||
|
* @param array $pks List of primary keys
|
||||||
|
* @param Connection $con the connection to use
|
||||||
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
|
* rethrown wrapped into a PropelException.
|
||||||
|
*/
|
||||||
|
public static function retrieveByPKs($pks, $con = null)
|
||||||
|
{
|
||||||
|
if ($con === null) {
|
||||||
|
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
|
$objs = null;
|
||||||
|
if (empty($pks)) {
|
||||||
|
$objs = array();
|
||||||
|
} else {
|
||||||
|
$criteria = new Criteria();
|
||||||
|
$criteria->add(AppFilesPeer::APF_UID, $pks, Criteria::IN);
|
||||||
|
$objs = AppFilesPeer::doSelect($criteria, $con);
|
||||||
|
}
|
||||||
|
return $objs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// static code to register the map builder for this Peer with the main Propel class
|
||||||
|
if (Propel::isInit()) {
|
||||||
|
// the MapBuilder classes register themselves with Propel during initialization
|
||||||
|
// so we need to load them here.
|
||||||
|
try {
|
||||||
|
BaseAppFilesPeer::getMapBuilder();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// even if Propel is not yet initialized, the map builder class can be registered
|
||||||
|
// now and then it will be loaded when Propel initializes.
|
||||||
|
require_once 'classes/model/map/AppFilesMapBuilder.php';
|
||||||
|
Propel::registerMapBuilder('classes.model.map.AppFilesMapBuilder');
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,13 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'propel/om/BaseObject.php';
|
require_once 'propel/om/BaseObject.php';
|
||||||
|
|
||||||
require_once 'propel/om/Persistent.php';
|
require_once 'propel/om/Persistent.php';
|
||||||
|
|
||||||
|
|
||||||
include_once 'propel/util/Criteria.php';
|
include_once 'propel/util/Criteria.php';
|
||||||
|
|
||||||
include_once 'classes/model/LanguagePeer.php';
|
include_once 'classes/model/LanguagePeer.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class that represents a row from the 'LANGUAGE' table.
|
* Base class that represents a row from the 'LANGUAGE' table.
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
* @package workflow.classes.model.om
|
* @package workflow.classes.model.om
|
||||||
*/
|
*/
|
||||||
abstract class BaseLanguage extends BaseObject implements Persistent
|
abstract class BaseLanguage extends BaseObject implements Persistent
|
||||||
@@ -385,7 +391,7 @@ abstract class BaseLanguage extends BaseObject implements Persistent
|
|||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
|
||||||
// FIXME - using NUM_COLUMNS may be clearer.
|
// FIXME - using NUM_COLUMNS may be clearer.
|
||||||
return $startcol + 7; // 7 = LanguagePeer::NUM_COLUMNS - LanguagePeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 8; // 8 = LanguagePeer::NUM_COLUMNS - LanguagePeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating Language object", $e);
|
throw new PropelException("Error populating Language object", $e);
|
||||||
@@ -750,6 +756,7 @@ abstract class BaseLanguage extends BaseObject implements Persistent
|
|||||||
if (array_key_exists($keys[7], $arr)) {
|
if (array_key_exists($keys[7], $arr)) {
|
||||||
$this->setLanCalendar($arr[$keys[7]]);
|
$this->setLanCalendar($arr[$keys[7]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -766,7 +773,7 @@ abstract class BaseLanguage extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(LanguagePeer::LAN_LOCATION)) {
|
if ($this->isColumnModified(LanguagePeer::LAN_LOCATION)) {
|
||||||
$criteria->add(LanguagePeer::LAN_ID, $this->lan_location);
|
$criteria->add(LanguagePeer::LAN_LOCATION, $this->lan_location);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified(LanguagePeer::LAN_NAME)) {
|
if ($this->isColumnModified(LanguagePeer::LAN_NAME)) {
|
||||||
@@ -896,7 +903,6 @@ abstract class BaseLanguage extends BaseObject implements Persistent
|
|||||||
* same instance for all member of this class. The method could therefore
|
* same instance for all member of this class. The method could therefore
|
||||||
* be static, but this would prevent one from overriding the behavior.
|
* be static, but this would prevent one from overriding the behavior.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @return LanguagePeer
|
* @return LanguagePeer
|
||||||
*/
|
*/
|
||||||
public function getPeer()
|
public function getPeer()
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ abstract class BaseLanguagePeer
|
|||||||
const CLASS_DEFAULT = 'classes.model.Language';
|
const CLASS_DEFAULT = 'classes.model.Language';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 7;
|
const NUM_COLUMNS = 8;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
@@ -69,7 +69,7 @@ abstract class BaseLanguagePeer
|
|||||||
BasePeer::TYPE_PHPNAME => array ('LanId', 'LanLocation', 'LanName', 'LanNativeName', 'LanDirection', 'LanWeight', 'LanEnabled', 'LanCalendar', ),
|
BasePeer::TYPE_PHPNAME => array ('LanId', 'LanLocation', 'LanName', 'LanNativeName', 'LanDirection', 'LanWeight', 'LanEnabled', 'LanCalendar', ),
|
||||||
BasePeer::TYPE_COLNAME => array (LanguagePeer::LAN_ID, LanguagePeer::LAN_LOCATION, LanguagePeer::LAN_NAME, LanguagePeer::LAN_NATIVE_NAME, LanguagePeer::LAN_DIRECTION, LanguagePeer::LAN_WEIGHT, LanguagePeer::LAN_ENABLED, LanguagePeer::LAN_CALENDAR, ),
|
BasePeer::TYPE_COLNAME => array (LanguagePeer::LAN_ID, LanguagePeer::LAN_LOCATION, LanguagePeer::LAN_NAME, LanguagePeer::LAN_NATIVE_NAME, LanguagePeer::LAN_DIRECTION, LanguagePeer::LAN_WEIGHT, LanguagePeer::LAN_ENABLED, LanguagePeer::LAN_CALENDAR, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('LAN_ID', 'LAN_LOCATION', 'LAN_NAME', 'LAN_NATIVE_NAME', 'LAN_DIRECTION', 'LAN_WEIGHT', 'LAN_ENABLED', 'LAN_CALENDAR', ),
|
BasePeer::TYPE_FIELDNAME => array ('LAN_ID', 'LAN_LOCATION', 'LAN_NAME', 'LAN_NATIVE_NAME', 'LAN_DIRECTION', 'LAN_WEIGHT', 'LAN_ENABLED', 'LAN_CALENDAR', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7,)
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -82,7 +82,7 @@ abstract class BaseLanguagePeer
|
|||||||
BasePeer::TYPE_PHPNAME => array ('LanId' => 0, 'LanLocation' => 1, 'LanName' => 2, 'LanNativeName' => 3, 'LanDirection' => 4, 'LanWeight' => 5, 'LanEnabled' => 6, 'LanCalendar' => 7, ),
|
BasePeer::TYPE_PHPNAME => array ('LanId' => 0, 'LanLocation' => 1, 'LanName' => 2, 'LanNativeName' => 3, 'LanDirection' => 4, 'LanWeight' => 5, 'LanEnabled' => 6, 'LanCalendar' => 7, ),
|
||||||
BasePeer::TYPE_COLNAME => array (LanguagePeer::LAN_ID => 0, LanguagePeer::LAN_LOCATION => 1, LanguagePeer::LAN_NAME => 2, LanguagePeer::LAN_NATIVE_NAME => 3, LanguagePeer::LAN_DIRECTION => 4, LanguagePeer::LAN_WEIGHT => 5, LanguagePeer::LAN_ENABLED => 6, LanguagePeer::LAN_CALENDAR => 7, ),
|
BasePeer::TYPE_COLNAME => array (LanguagePeer::LAN_ID => 0, LanguagePeer::LAN_LOCATION => 1, LanguagePeer::LAN_NAME => 2, LanguagePeer::LAN_NATIVE_NAME => 3, LanguagePeer::LAN_DIRECTION => 4, LanguagePeer::LAN_WEIGHT => 5, LanguagePeer::LAN_ENABLED => 6, LanguagePeer::LAN_CALENDAR => 7, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('LAN_ID' => 0, 'LAN_LOCATION' => 1, 'LAN_NAME' => 2, 'LAN_NATIVE_NAME' => 3, 'LAN_DIRECTION' => 4, 'LAN_WEIGHT' => 5, 'LAN_ENABLED' => 6, 'LAN_CALENDAR' => 7, ),
|
BasePeer::TYPE_FIELDNAME => array ('LAN_ID' => 0, 'LAN_LOCATION' => 1, 'LAN_NAME' => 2, 'LAN_NATIVE_NAME' => 3, 'LAN_DIRECTION' => 4, 'LAN_WEIGHT' => 5, 'LAN_ENABLED' => 6, 'LAN_CALENDAR' => 7, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7,)
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3014,6 +3014,38 @@
|
|||||||
</index>
|
</index>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<table name="APP_FILES">
|
||||||
|
<vendor type="mysql">
|
||||||
|
<parameter name="Name" value="APP_FILES"/>
|
||||||
|
<parameter name="Engine" value="InnoDB"/>
|
||||||
|
<parameter name="Version" value="10"/>
|
||||||
|
<parameter name="Row_format" value="Dynamic"/>
|
||||||
|
<parameter name="Rows" value="129"/>
|
||||||
|
<parameter name="Avg_row_length" value="115"/>
|
||||||
|
<parameter name="Data_length" value="14860"/>
|
||||||
|
<parameter name="Max_data_length" value="281474976710655"/>
|
||||||
|
<parameter name="Index_length" value="5120"/>
|
||||||
|
<parameter name="Data_free" value="0"/>
|
||||||
|
<parameter name="Auto_increment" value=""/>
|
||||||
|
<parameter name="Create_time" value="2011-10-28 09:55:00"/>
|
||||||
|
<parameter name="Update_time" value="2011-10-28 09:55:00"/>
|
||||||
|
<parameter name="Check_time" value=""/>
|
||||||
|
<parameter name="Collation" value="utf8_general_ci"/>
|
||||||
|
<parameter name="Checksum" value=""/>
|
||||||
|
<parameter name="Create_options" value=""/>
|
||||||
|
<parameter name="Comment" value="Application files metadata"/>
|
||||||
|
</vendor>
|
||||||
|
<column name="APF_UID" type="VARCHAR" size="32" required="true" primaryKey="true" />
|
||||||
|
<column name="PRO_UID" type="VARCHAR" size="32" required="true" />
|
||||||
|
<column name="CREATE_USR_UID" type="VARCHAR" size="32" required="true" />
|
||||||
|
<column name="LAST_UPDATE_USR_UID" type="VARCHAR" size="32" required="true" />
|
||||||
|
<column name="APF_PATH" type="VARCHAR" size="256" required="true" default="" />
|
||||||
|
<column name="APF_TYPE" type="VARCHAR" size="32" required="false" default="" />
|
||||||
|
<column name="APF_EDITABLE" type="TINYINT" required="false" default="1" />
|
||||||
|
<column name="APF_CREATE_DATE" type="TIMESTAMP" required="true" />
|
||||||
|
<column name="APF_UPDATE_DATE" type="TIMESTAMP" required="false" />
|
||||||
|
</table>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
OAUTH TABLES DEFINITION
|
OAUTH TABLES DEFINITION
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -321,8 +321,8 @@ DROP TABLE IF EXISTS `LANGUAGE`;
|
|||||||
CREATE TABLE `LANGUAGE`
|
CREATE TABLE `LANGUAGE`
|
||||||
(
|
(
|
||||||
`LAN_ID` VARCHAR(4) default '' NOT NULL,
|
`LAN_ID` VARCHAR(4) default '' NOT NULL,
|
||||||
`LAN_NAME` VARCHAR(30) default '' NOT NULL,
|
|
||||||
`LAN_LOCATION` VARCHAR(4) default '' NOT NULL,
|
`LAN_LOCATION` VARCHAR(4) default '' NOT NULL,
|
||||||
|
`LAN_NAME` VARCHAR(30) default '' NOT NULL,
|
||||||
`LAN_NATIVE_NAME` VARCHAR(30) default '' NOT NULL,
|
`LAN_NATIVE_NAME` VARCHAR(30) default '' NOT NULL,
|
||||||
`LAN_DIRECTION` CHAR(1) default 'L' NOT NULL,
|
`LAN_DIRECTION` CHAR(1) default 'L' NOT NULL,
|
||||||
`LAN_WEIGHT` INTEGER default 0 NOT NULL,
|
`LAN_WEIGHT` INTEGER default 0 NOT NULL,
|
||||||
@@ -1475,6 +1475,26 @@ CREATE TABLE `SESSION_STORAGE`
|
|||||||
KEY `indexSessionStorage`(`ID`)
|
KEY `indexSessionStorage`(`ID`)
|
||||||
)ENGINE=InnoDB ;
|
)ENGINE=InnoDB ;
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
#-- APP_FILES
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `APP_FILES`;
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE `APP_FILES`
|
||||||
|
(
|
||||||
|
`APF_UID` VARCHAR(32) NOT NULL,
|
||||||
|
`PRO_UID` VARCHAR(32) NOT NULL,
|
||||||
|
`CREATE_USR_UID` VARCHAR(32) NOT NULL,
|
||||||
|
`LAST_UPDATE_USR_UID` VARCHAR(32) NOT NULL,
|
||||||
|
`APF_PATH` VARCHAR(256) default '' NOT NULL,
|
||||||
|
`APF_TYPE` VARCHAR(32) default '',
|
||||||
|
`APF_EDITABLE` TINYINT default 1,
|
||||||
|
`APF_CREATE_DATE` DATETIME NOT NULL,
|
||||||
|
`APF_UPDATE_DATE` DATETIME,
|
||||||
|
PRIMARY KEY (`APF_UID`)
|
||||||
|
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='Application files metadata';
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
#-- OAUTH_ACCESS_TOKENS
|
#-- OAUTH_ACCESS_TOKENS
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user