excluding files from pull request part 3
This commit is contained in:
@@ -4,7 +4,6 @@ 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/AddonsManagerPeer.php';
|
include_once 'classes/model/AddonsManagerPeer.php';
|
||||||
@@ -23,114 +22,133 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
* The Peer class.
|
* The Peer class.
|
||||||
* Instance provides a convenient way of calling static methods on a class
|
* Instance provides a convenient way of calling static methods on a class
|
||||||
* that calling code may not be able to identify.
|
* that calling code may not be able to identify.
|
||||||
|
*
|
||||||
* @var AddonsManagerPeer
|
* @var AddonsManagerPeer
|
||||||
*/
|
*/
|
||||||
protected static $peer;
|
protected static $peer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_id field.
|
* The value for the addon_id field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_id;
|
protected $addon_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_id field.
|
* The value for the store_id field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $store_id;
|
protected $store_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_name field.
|
* The value for the addon_name field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_name;
|
protected $addon_name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_nick field.
|
* The value for the addon_nick field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_nick;
|
protected $addon_nick;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_download_filename field.
|
* The value for the addon_download_filename field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_download_filename;
|
protected $addon_download_filename;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_description field.
|
* The value for the addon_description field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_description;
|
protected $addon_description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_state field.
|
* The value for the addon_state field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_state;
|
protected $addon_state;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_state_changed field.
|
* The value for the addon_state_changed field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $addon_state_changed;
|
protected $addon_state_changed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_status field.
|
* The value for the addon_status field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_status;
|
protected $addon_status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_version field.
|
* The value for the addon_version field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_version;
|
protected $addon_version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_type field.
|
* The value for the addon_type field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_type;
|
protected $addon_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_publisher field.
|
* The value for the addon_publisher field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_publisher;
|
protected $addon_publisher;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_release_date field.
|
* The value for the addon_release_date field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $addon_release_date;
|
protected $addon_release_date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_release_type field.
|
* The value for the addon_release_type field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_release_type;
|
protected $addon_release_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_release_notes field.
|
* The value for the addon_release_notes field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_release_notes;
|
protected $addon_release_notes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_download_url field.
|
* The value for the addon_download_url field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_download_url;
|
protected $addon_download_url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_download_progress field.
|
* The value for the addon_download_progress field.
|
||||||
|
*
|
||||||
* @var double
|
* @var double
|
||||||
*/
|
*/
|
||||||
protected $addon_download_progress;
|
protected $addon_download_progress;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the addon_download_md5 field.
|
* The value for the addon_download_md5 field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $addon_download_md5;
|
protected $addon_download_md5;
|
||||||
@@ -138,6 +156,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInSave = false;
|
protected $alreadyInSave = false;
|
||||||
@@ -145,6 +164,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless validation loop, if this object is referenced
|
* Flag to prevent endless validation loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInValidation = false;
|
protected $alreadyInValidation = false;
|
||||||
@@ -156,7 +176,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonId ()
|
public function getAddonId ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_id;
|
return $this->addon_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +186,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreId ()
|
public function getStoreId ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->store_id;
|
return $this->store_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,7 +196,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonName ()
|
public function getAddonName ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_name;
|
return $this->addon_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -189,7 +206,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonNick ()
|
public function getAddonNick ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_nick;
|
return $this->addon_nick;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,7 +216,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonDownloadFilename ()
|
public function getAddonDownloadFilename ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_download_filename;
|
return $this->addon_download_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,7 +226,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonDescription ()
|
public function getAddonDescription ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_description;
|
return $this->addon_description;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,7 +236,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonState ()
|
public function getAddonState ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_state;
|
return $this->addon_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,15 +249,14 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonStateChanged ($format = 'Y-m-d H:i:s')
|
public function getAddonStateChanged ($format = 'Y-m-d H:i:s')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->addon_state_changed === null || $this->addon_state_changed === '') {
|
if ($this->addon_state_changed === null || $this->addon_state_changed === '') {
|
||||||
return null;
|
return null;
|
||||||
} elseif (! is_int( $this->addon_state_changed )) {
|
} elseif (! is_int( $this->addon_state_changed )) {
|
||||||
// a non-timestamp value was set externally, so we convert it
|
// a non-timestamp value was set externally, so we convert it
|
||||||
$ts = strtotime( $this->addon_state_changed );
|
$ts = strtotime( $this->addon_state_changed );
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse value of [addon_state_changed] as date/time value: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($this->addon_state_changed, true));
|
throw new PropelException( "Unable to parse value of [addon_state_changed] as date/time value: " . var_export( $this->addon_state_changed, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $this->addon_state_changed;
|
$ts = $this->addon_state_changed;
|
||||||
@@ -265,7 +277,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonStatus ()
|
public function getAddonStatus ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_status;
|
return $this->addon_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,7 +287,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonVersion ()
|
public function getAddonVersion ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_version;
|
return $this->addon_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,7 +297,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonType ()
|
public function getAddonType ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_type;
|
return $this->addon_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -298,7 +307,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonPublisher ()
|
public function getAddonPublisher ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_publisher;
|
return $this->addon_publisher;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -312,15 +320,14 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonReleaseDate ($format = 'Y-m-d H:i:s')
|
public function getAddonReleaseDate ($format = 'Y-m-d H:i:s')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->addon_release_date === null || $this->addon_release_date === '') {
|
if ($this->addon_release_date === null || $this->addon_release_date === '') {
|
||||||
return null;
|
return null;
|
||||||
} elseif (! is_int( $this->addon_release_date )) {
|
} elseif (! is_int( $this->addon_release_date )) {
|
||||||
// a non-timestamp value was set externally, so we convert it
|
// a non-timestamp value was set externally, so we convert it
|
||||||
$ts = strtotime( $this->addon_release_date );
|
$ts = strtotime( $this->addon_release_date );
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse value of [addon_release_date] as date/time value: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($this->addon_release_date, true));
|
throw new PropelException( "Unable to parse value of [addon_release_date] as date/time value: " . var_export( $this->addon_release_date, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $this->addon_release_date;
|
$ts = $this->addon_release_date;
|
||||||
@@ -341,7 +348,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonReleaseType ()
|
public function getAddonReleaseType ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_release_type;
|
return $this->addon_release_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -352,7 +358,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonReleaseNotes ()
|
public function getAddonReleaseNotes ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_release_notes;
|
return $this->addon_release_notes;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +368,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonDownloadUrl ()
|
public function getAddonDownloadUrl ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_download_url;
|
return $this->addon_download_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -374,7 +378,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonDownloadProgress ()
|
public function getAddonDownloadProgress ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_download_progress;
|
return $this->addon_download_progress;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -385,7 +388,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getAddonDownloadMd5 ()
|
public function getAddonDownloadMd5 ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->addon_download_md5;
|
return $this->addon_download_md5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,18 +399,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonId ($v)
|
public function setAddonId ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_id !== $v) {
|
if ($this->addon_id !== $v) {
|
||||||
$this->addon_id = $v;
|
$this->addon_id = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_ID;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonId()
|
} // setAddonId()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -419,18 +418,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreId ($v)
|
public function setStoreId ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->store_id !== $v) {
|
if ($this->store_id !== $v) {
|
||||||
$this->store_id = $v;
|
$this->store_id = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::STORE_ID;
|
$this->modifiedColumns[] = AddonsManagerPeer::STORE_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreId()
|
} // setStoreId()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -441,18 +437,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonName ($v)
|
public function setAddonName ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_name !== $v) {
|
if ($this->addon_name !== $v) {
|
||||||
$this->addon_name = $v;
|
$this->addon_name = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NAME;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonName()
|
} // setAddonName()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -463,13 +456,11 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonNick ($v)
|
public function setAddonNick ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_nick !== $v) {
|
if ($this->addon_nick !== $v) {
|
||||||
$this->addon_nick = $v;
|
$this->addon_nick = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NICK;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_NICK;
|
||||||
@@ -485,18 +476,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonDownloadFilename ($v)
|
public function setAddonDownloadFilename ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_download_filename !== $v) {
|
if ($this->addon_download_filename !== $v) {
|
||||||
$this->addon_download_filename = $v;
|
$this->addon_download_filename = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonDownloadFilename()
|
} // setAddonDownloadFilename()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -507,18 +495,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonDescription ($v)
|
public function setAddonDescription ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_description !== $v) {
|
if ($this->addon_description !== $v) {
|
||||||
$this->addon_description = $v;
|
$this->addon_description = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DESCRIPTION;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DESCRIPTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonDescription()
|
} // setAddonDescription()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -529,18 +514,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonState ($v)
|
public function setAddonState ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_state !== $v) {
|
if ($this->addon_state !== $v) {
|
||||||
$this->addon_state = $v;
|
$this->addon_state = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonState()
|
} // setAddonState()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -551,16 +533,11 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonStateChanged ($v)
|
public function setAddonStateChanged ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($v !== null && ! is_int( $v )) {
|
if ($v !== null && ! is_int( $v )) {
|
||||||
$ts = strtotime( $v );
|
$ts = strtotime( $v );
|
||||||
//Date/time accepts null values
|
|
||||||
if ($v == '') {
|
|
||||||
$ts = null;
|
|
||||||
}
|
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse date/time value for [addon_state_changed] from input: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($v, true));
|
throw new PropelException( "Unable to parse date/time value for [addon_state_changed] from input: " . var_export( $v, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $v;
|
$ts = $v;
|
||||||
@@ -569,7 +546,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
$this->addon_state_changed = $ts;
|
$this->addon_state_changed = $ts;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE_CHANGED;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATE_CHANGED;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonStateChanged()
|
} // setAddonStateChanged()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -580,18 +556,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonStatus ($v)
|
public function setAddonStatus ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_status !== $v) {
|
if ($this->addon_status !== $v) {
|
||||||
$this->addon_status = $v;
|
$this->addon_status = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATUS;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonStatus()
|
} // setAddonStatus()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -602,18 +575,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonVersion ($v)
|
public function setAddonVersion ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_version !== $v) {
|
if ($this->addon_version !== $v) {
|
||||||
$this->addon_version = $v;
|
$this->addon_version = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_VERSION;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonVersion()
|
} // setAddonVersion()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -624,18 +594,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonType ($v)
|
public function setAddonType ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_type !== $v) {
|
if ($this->addon_type !== $v) {
|
||||||
$this->addon_type = $v;
|
$this->addon_type = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_TYPE;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonType()
|
} // setAddonType()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -646,18 +613,15 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonPublisher ($v)
|
public function setAddonPublisher ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->addon_publisher !== $v) {
|
if ($this->addon_publisher !== $v) {
|
||||||
$this->addon_publisher = $v;
|
$this->addon_publisher = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_PUBLISHER;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_PUBLISHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonPublisher()
|
} // setAddonPublisher()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -668,16 +632,11 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonReleaseDate ($v)
|
public function setAddonReleaseDate ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($v !== null && ! is_int( $v )) {
|
if ($v !== null && ! is_int( $v )) {
|
||||||
$ts = strtotime( $v );
|
$ts = strtotime( $v );
|
||||||
//Date/time accepts null values
|
|
||||||
if ($v == '') {
|
|
||||||
$ts = null;
|
|
||||||
}
|
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse date/time value for [addon_release_date] from input: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($v, true));
|
throw new PropelException( "Unable to parse date/time value for [addon_release_date] from input: " . var_export( $v, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $v;
|
$ts = $v;
|
||||||
@@ -686,7 +645,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
$this->addon_release_date = $ts;
|
$this->addon_release_date = $ts;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_RELEASE_DATE;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_RELEASE_DATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonReleaseDate()
|
} // setAddonReleaseDate()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -697,7 +655,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonReleaseType ($v)
|
public function setAddonReleaseType ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -719,7 +676,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonReleaseNotes ($v)
|
public function setAddonReleaseNotes ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -741,7 +697,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonDownloadUrl ($v)
|
public function setAddonDownloadUrl ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -752,7 +707,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
$this->addon_download_url = $v;
|
$this->addon_download_url = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_URL;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonDownloadUrl()
|
} // setAddonDownloadUrl()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -763,12 +717,10 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonDownloadProgress ($v)
|
public function setAddonDownloadProgress ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->addon_download_progress !== $v) {
|
if ($this->addon_download_progress !== $v) {
|
||||||
$this->addon_download_progress = $v;
|
$this->addon_download_progress = $v;
|
||||||
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS;
|
$this->modifiedColumns[] = AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setAddonDownloadProgress()
|
} // setAddonDownloadProgress()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -779,7 +731,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setAddonDownloadMd5 ($v)
|
public function setAddonDownloadMd5 ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -889,12 +840,13 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the object in the database. If the object is new,
|
* Stores the object in the database.
|
||||||
|
* If the object is new,
|
||||||
* it inserts it; otherwise an update is performed. This method
|
* it inserts it; otherwise an update is performed. This method
|
||||||
* wraps the doSave() worker method in a transaction.
|
* wraps the doSave() worker method in a transaction.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see doSave()
|
* @see doSave()
|
||||||
*/
|
*/
|
||||||
@@ -926,7 +878,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
* All related objects are also updated in this method.
|
* All related objects are also updated in this method.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update and any referring
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see save()
|
* @see save()
|
||||||
*/
|
*/
|
||||||
@@ -936,7 +888,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
if (! $this->alreadyInSave) {
|
if (! $this->alreadyInSave) {
|
||||||
$this->alreadyInSave = true;
|
$this->alreadyInSave = true;
|
||||||
|
|
||||||
|
|
||||||
// If this object has been modified, then save it to the database.
|
// If this object has been modified, then save it to the database.
|
||||||
if ($this->isModified()) {
|
if ($this->isModified()) {
|
||||||
if ($this->isNew()) {
|
if ($this->isNew()) {
|
||||||
@@ -944,7 +895,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||||
// should always be true here (even though technically
|
// should always be true here (even though technically
|
||||||
// BasePeer::doInsert() can insert multiple rows).
|
// BasePeer::doInsert() can insert multiple rows).
|
||||||
|
|
||||||
$this->setNew( false );
|
$this->setNew( false );
|
||||||
} else {
|
} else {
|
||||||
$affectedRows += AddonsManagerPeer::doUpdate( $this, $con );
|
$affectedRows += AddonsManagerPeer::doUpdate( $this, $con );
|
||||||
@@ -959,6 +909,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of ValidationFailed objects.
|
* Array of ValidationFailed objects.
|
||||||
|
*
|
||||||
* @var array ValidationFailed[]
|
* @var array ValidationFailed[]
|
||||||
*/
|
*/
|
||||||
protected $validationFailures = array ();
|
protected $validationFailures = array ();
|
||||||
@@ -1006,8 +957,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
* an aggreagated array of ValidationFailed objects will be returned.
|
* an aggreagated array of ValidationFailed objects will be returned.
|
||||||
*
|
*
|
||||||
* @param array $columns Array of column names to validate.
|
* @param array $columns Array of column names to validate.
|
||||||
* @return mixed <code>true</code> if all validations pass;
|
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||||
array of <code>ValidationFailed</code> objects otherwise.
|
|
||||||
*/
|
*/
|
||||||
protected function doValidate ($columns = null)
|
protected function doValidate ($columns = null)
|
||||||
{
|
{
|
||||||
@@ -1017,13 +967,10 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$failureMap = array ();
|
$failureMap = array ();
|
||||||
|
|
||||||
|
|
||||||
if (($retval = AddonsManagerPeer::doValidate( $this, $columns )) !== true) {
|
if (($retval = AddonsManagerPeer::doValidate( $this, $columns )) !== true) {
|
||||||
$failureMap = array_merge( $failureMap, $retval );
|
$failureMap = array_merge( $failureMap, $retval );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->alreadyInValidation = false;
|
$this->alreadyInValidation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1146,7 +1093,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
$keys[14] => $this->getAddonReleaseNotes(),
|
$keys[14] => $this->getAddonReleaseNotes(),
|
||||||
$keys[15] => $this->getAddonDownloadUrl(),
|
$keys[15] => $this->getAddonDownloadUrl(),
|
||||||
$keys[16] => $this->getAddonDownloadProgress(),
|
$keys[16] => $this->getAddonDownloadProgress(),
|
||||||
$keys[17] => $this->getAddonDownloadMd5(),
|
$keys[17] => $this->getAddonDownloadMd5()
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -1258,75 +1205,57 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
if (array_key_exists( $keys[0], $arr )) {
|
if (array_key_exists( $keys[0], $arr )) {
|
||||||
$this->setAddonId( $arr[$keys[0]] );
|
$this->setAddonId( $arr[$keys[0]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[1], $arr )) {
|
if (array_key_exists( $keys[1], $arr )) {
|
||||||
$this->setStoreId( $arr[$keys[1]] );
|
$this->setStoreId( $arr[$keys[1]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[2], $arr )) {
|
if (array_key_exists( $keys[2], $arr )) {
|
||||||
$this->setAddonName( $arr[$keys[2]] );
|
$this->setAddonName( $arr[$keys[2]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[3], $arr )) {
|
if (array_key_exists( $keys[3], $arr )) {
|
||||||
$this->setAddonNick( $arr[$keys[3]] );
|
$this->setAddonNick( $arr[$keys[3]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[4], $arr )) {
|
if (array_key_exists( $keys[4], $arr )) {
|
||||||
$this->setAddonDownloadFilename( $arr[$keys[4]] );
|
$this->setAddonDownloadFilename( $arr[$keys[4]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[5], $arr )) {
|
if (array_key_exists( $keys[5], $arr )) {
|
||||||
$this->setAddonDescription( $arr[$keys[5]] );
|
$this->setAddonDescription( $arr[$keys[5]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[6], $arr )) {
|
if (array_key_exists( $keys[6], $arr )) {
|
||||||
$this->setAddonState( $arr[$keys[6]] );
|
$this->setAddonState( $arr[$keys[6]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[7], $arr )) {
|
if (array_key_exists( $keys[7], $arr )) {
|
||||||
$this->setAddonStateChanged( $arr[$keys[7]] );
|
$this->setAddonStateChanged( $arr[$keys[7]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[8], $arr )) {
|
if (array_key_exists( $keys[8], $arr )) {
|
||||||
$this->setAddonStatus( $arr[$keys[8]] );
|
$this->setAddonStatus( $arr[$keys[8]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[9], $arr )) {
|
if (array_key_exists( $keys[9], $arr )) {
|
||||||
$this->setAddonVersion( $arr[$keys[9]] );
|
$this->setAddonVersion( $arr[$keys[9]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[10], $arr )) {
|
if (array_key_exists( $keys[10], $arr )) {
|
||||||
$this->setAddonType( $arr[$keys[10]] );
|
$this->setAddonType( $arr[$keys[10]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[11], $arr )) {
|
if (array_key_exists( $keys[11], $arr )) {
|
||||||
$this->setAddonPublisher( $arr[$keys[11]] );
|
$this->setAddonPublisher( $arr[$keys[11]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[12], $arr )) {
|
if (array_key_exists( $keys[12], $arr )) {
|
||||||
$this->setAddonReleaseDate( $arr[$keys[12]] );
|
$this->setAddonReleaseDate( $arr[$keys[12]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[13], $arr )) {
|
if (array_key_exists( $keys[13], $arr )) {
|
||||||
$this->setAddonReleaseType( $arr[$keys[13]] );
|
$this->setAddonReleaseType( $arr[$keys[13]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[14], $arr )) {
|
if (array_key_exists( $keys[14], $arr )) {
|
||||||
$this->setAddonReleaseNotes( $arr[$keys[14]] );
|
$this->setAddonReleaseNotes( $arr[$keys[14]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[15], $arr )) {
|
if (array_key_exists( $keys[15], $arr )) {
|
||||||
$this->setAddonDownloadUrl( $arr[$keys[15]] );
|
$this->setAddonDownloadUrl( $arr[$keys[15]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[16], $arr )) {
|
if (array_key_exists( $keys[16], $arr )) {
|
||||||
$this->setAddonDownloadProgress( $arr[$keys[16]] );
|
$this->setAddonDownloadProgress( $arr[$keys[16]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[17], $arr )) {
|
if (array_key_exists( $keys[17], $arr )) {
|
||||||
$this->setAddonDownloadMd5( $arr[$keys[17]] );
|
$this->setAddonDownloadMd5( $arr[$keys[17]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1341,76 +1270,58 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_ID )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_ID )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_ID, $this->addon_id );
|
$criteria->add( AddonsManagerPeer::ADDON_ID, $this->addon_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::STORE_ID )) {
|
if ($this->isColumnModified( AddonsManagerPeer::STORE_ID )) {
|
||||||
$criteria->add( AddonsManagerPeer::STORE_ID, $this->store_id );
|
$criteria->add( AddonsManagerPeer::STORE_ID, $this->store_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_NAME )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_NAME )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_NAME, $this->addon_name );
|
$criteria->add( AddonsManagerPeer::ADDON_NAME, $this->addon_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_NICK )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_NICK )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_NICK, $this->addon_nick );
|
$criteria->add( AddonsManagerPeer::ADDON_NICK, $this->addon_nick );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME, $this->addon_download_filename );
|
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME, $this->addon_download_filename );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DESCRIPTION )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DESCRIPTION )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_DESCRIPTION, $this->addon_description );
|
$criteria->add( AddonsManagerPeer::ADDON_DESCRIPTION, $this->addon_description );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATE )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATE )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_STATE, $this->addon_state );
|
$criteria->add( AddonsManagerPeer::ADDON_STATE, $this->addon_state );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATE_CHANGED )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATE_CHANGED )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_STATE_CHANGED, $this->addon_state_changed );
|
$criteria->add( AddonsManagerPeer::ADDON_STATE_CHANGED, $this->addon_state_changed );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATUS )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_STATUS )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_STATUS, $this->addon_status );
|
$criteria->add( AddonsManagerPeer::ADDON_STATUS, $this->addon_status );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_VERSION )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_VERSION )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_VERSION, $this->addon_version );
|
$criteria->add( AddonsManagerPeer::ADDON_VERSION, $this->addon_version );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_TYPE )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_TYPE )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_TYPE, $this->addon_type );
|
$criteria->add( AddonsManagerPeer::ADDON_TYPE, $this->addon_type );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_PUBLISHER )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_PUBLISHER )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_PUBLISHER, $this->addon_publisher );
|
$criteria->add( AddonsManagerPeer::ADDON_PUBLISHER, $this->addon_publisher );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_DATE )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_DATE )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_DATE, $this->addon_release_date );
|
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_DATE, $this->addon_release_date );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_TYPE )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_TYPE )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_TYPE, $this->addon_release_type );
|
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_TYPE, $this->addon_release_type );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_NOTES )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_RELEASE_NOTES )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_NOTES, $this->addon_release_notes );
|
$criteria->add( AddonsManagerPeer::ADDON_RELEASE_NOTES, $this->addon_release_notes );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_URL )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_URL )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_URL, $this->addon_download_url );
|
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_URL, $this->addon_download_url );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS, $this->addon_download_progress );
|
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS, $this->addon_download_progress );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_MD5 )) {
|
if ($this->isColumnModified( AddonsManagerPeer::ADDON_DOWNLOAD_MD5 )) {
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_MD5, $this->addon_download_md5 );
|
$criteria->add( AddonsManagerPeer::ADDON_DOWNLOAD_MD5, $this->addon_download_md5 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1435,6 +1346,7 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Returns the composite primary key for this object.
|
* Returns the composite primary key for this object.
|
||||||
* The array elements will be in same order as specified in XML.
|
* The array elements will be in same order as specified in XML.
|
||||||
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getPrimaryKey ()
|
public function getPrimaryKey ()
|
||||||
@@ -1475,7 +1387,6 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function copyInto ($copyObj, $deepCopy = false)
|
public function copyInto ($copyObj, $deepCopy = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
$copyObj->setAddonName( $this->addon_name );
|
$copyObj->setAddonName( $this->addon_name );
|
||||||
|
|
||||||
$copyObj->setAddonNick( $this->addon_nick );
|
$copyObj->setAddonNick( $this->addon_nick );
|
||||||
@@ -1508,12 +1419,11 @@ abstract class BaseAddonsManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setAddonDownloadMd5( $this->addon_download_md5 );
|
$copyObj->setAddonDownloadMd5( $this->addon_download_md5 );
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew( true );
|
$copyObj->setNew( true );
|
||||||
|
|
||||||
$copyObj->setAddonId(NULL); // this is a pkey column, so set to default value
|
$copyObj->setAddonId( null ); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
$copyObj->setStoreId(NULL); // this is a pkey column, so set to default value
|
$copyObj->setStoreId( null ); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,80 +15,126 @@ include_once 'classes/model/AddonsManager.php';
|
|||||||
abstract class BaseAddonsManagerPeer
|
abstract class BaseAddonsManagerPeer
|
||||||
{
|
{
|
||||||
|
|
||||||
/** the default database name for this class */
|
/**
|
||||||
|
* the default database name for this class
|
||||||
|
*/
|
||||||
const DATABASE_NAME = 'workflow';
|
const DATABASE_NAME = 'workflow';
|
||||||
|
|
||||||
/** the table name for this class */
|
/**
|
||||||
|
* the table name for this class
|
||||||
|
*/
|
||||||
const TABLE_NAME = 'ADDONS_MANAGER';
|
const TABLE_NAME = 'ADDONS_MANAGER';
|
||||||
|
|
||||||
/** A class that can be returned by this peer. */
|
/**
|
||||||
|
* A class that can be returned by this peer.
|
||||||
|
*/
|
||||||
const CLASS_DEFAULT = 'classes.model.AddonsManager';
|
const CLASS_DEFAULT = 'classes.model.AddonsManager';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/**
|
||||||
|
* The total number of columns.
|
||||||
|
*/
|
||||||
const NUM_COLUMNS = 18;
|
const NUM_COLUMNS = 18;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/**
|
||||||
|
* The number of lazy-loaded columns.
|
||||||
|
*/
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
/** the column name for the ADDON_ID field */
|
* the column name for the ADDON_ID field
|
||||||
|
*/
|
||||||
const ADDON_ID = 'ADDONS_MANAGER.ADDON_ID';
|
const ADDON_ID = 'ADDONS_MANAGER.ADDON_ID';
|
||||||
|
|
||||||
/** the column name for the STORE_ID field */
|
/**
|
||||||
|
* the column name for the STORE_ID field
|
||||||
|
*/
|
||||||
const STORE_ID = 'ADDONS_MANAGER.STORE_ID';
|
const STORE_ID = 'ADDONS_MANAGER.STORE_ID';
|
||||||
|
|
||||||
/** the column name for the ADDON_NAME field */
|
/**
|
||||||
|
* the column name for the ADDON_NAME field
|
||||||
|
*/
|
||||||
const ADDON_NAME = 'ADDONS_MANAGER.ADDON_NAME';
|
const ADDON_NAME = 'ADDONS_MANAGER.ADDON_NAME';
|
||||||
|
|
||||||
/** the column name for the ADDON_NICK field */
|
/**
|
||||||
|
* the column name for the ADDON_NICK field
|
||||||
|
*/
|
||||||
const ADDON_NICK = 'ADDONS_MANAGER.ADDON_NICK';
|
const ADDON_NICK = 'ADDONS_MANAGER.ADDON_NICK';
|
||||||
|
|
||||||
/** the column name for the ADDON_DOWNLOAD_FILENAME field */
|
/**
|
||||||
|
* the column name for the ADDON_DOWNLOAD_FILENAME field
|
||||||
|
*/
|
||||||
const ADDON_DOWNLOAD_FILENAME = 'ADDONS_MANAGER.ADDON_DOWNLOAD_FILENAME';
|
const ADDON_DOWNLOAD_FILENAME = 'ADDONS_MANAGER.ADDON_DOWNLOAD_FILENAME';
|
||||||
|
|
||||||
/** the column name for the ADDON_DESCRIPTION field */
|
/**
|
||||||
|
* the column name for the ADDON_DESCRIPTION field
|
||||||
|
*/
|
||||||
const ADDON_DESCRIPTION = 'ADDONS_MANAGER.ADDON_DESCRIPTION';
|
const ADDON_DESCRIPTION = 'ADDONS_MANAGER.ADDON_DESCRIPTION';
|
||||||
|
|
||||||
/** the column name for the ADDON_STATE field */
|
/**
|
||||||
|
* the column name for the ADDON_STATE field
|
||||||
|
*/
|
||||||
const ADDON_STATE = 'ADDONS_MANAGER.ADDON_STATE';
|
const ADDON_STATE = 'ADDONS_MANAGER.ADDON_STATE';
|
||||||
|
|
||||||
/** the column name for the ADDON_STATE_CHANGED field */
|
/**
|
||||||
|
* the column name for the ADDON_STATE_CHANGED field
|
||||||
|
*/
|
||||||
const ADDON_STATE_CHANGED = 'ADDONS_MANAGER.ADDON_STATE_CHANGED';
|
const ADDON_STATE_CHANGED = 'ADDONS_MANAGER.ADDON_STATE_CHANGED';
|
||||||
|
|
||||||
/** the column name for the ADDON_STATUS field */
|
/**
|
||||||
|
* the column name for the ADDON_STATUS field
|
||||||
|
*/
|
||||||
const ADDON_STATUS = 'ADDONS_MANAGER.ADDON_STATUS';
|
const ADDON_STATUS = 'ADDONS_MANAGER.ADDON_STATUS';
|
||||||
|
|
||||||
/** the column name for the ADDON_VERSION field */
|
/**
|
||||||
|
* the column name for the ADDON_VERSION field
|
||||||
|
*/
|
||||||
const ADDON_VERSION = 'ADDONS_MANAGER.ADDON_VERSION';
|
const ADDON_VERSION = 'ADDONS_MANAGER.ADDON_VERSION';
|
||||||
|
|
||||||
/** the column name for the ADDON_TYPE field */
|
/**
|
||||||
|
* the column name for the ADDON_TYPE field
|
||||||
|
*/
|
||||||
const ADDON_TYPE = 'ADDONS_MANAGER.ADDON_TYPE';
|
const ADDON_TYPE = 'ADDONS_MANAGER.ADDON_TYPE';
|
||||||
|
|
||||||
/** the column name for the ADDON_PUBLISHER field */
|
/**
|
||||||
|
* the column name for the ADDON_PUBLISHER field
|
||||||
|
*/
|
||||||
const ADDON_PUBLISHER = 'ADDONS_MANAGER.ADDON_PUBLISHER';
|
const ADDON_PUBLISHER = 'ADDONS_MANAGER.ADDON_PUBLISHER';
|
||||||
|
|
||||||
/** the column name for the ADDON_RELEASE_DATE field */
|
/**
|
||||||
|
* the column name for the ADDON_RELEASE_DATE field
|
||||||
|
*/
|
||||||
const ADDON_RELEASE_DATE = 'ADDONS_MANAGER.ADDON_RELEASE_DATE';
|
const ADDON_RELEASE_DATE = 'ADDONS_MANAGER.ADDON_RELEASE_DATE';
|
||||||
|
|
||||||
/** the column name for the ADDON_RELEASE_TYPE field */
|
/**
|
||||||
|
* the column name for the ADDON_RELEASE_TYPE field
|
||||||
|
*/
|
||||||
const ADDON_RELEASE_TYPE = 'ADDONS_MANAGER.ADDON_RELEASE_TYPE';
|
const ADDON_RELEASE_TYPE = 'ADDONS_MANAGER.ADDON_RELEASE_TYPE';
|
||||||
|
|
||||||
/** the column name for the ADDON_RELEASE_NOTES field */
|
/**
|
||||||
|
* the column name for the ADDON_RELEASE_NOTES field
|
||||||
|
*/
|
||||||
const ADDON_RELEASE_NOTES = 'ADDONS_MANAGER.ADDON_RELEASE_NOTES';
|
const ADDON_RELEASE_NOTES = 'ADDONS_MANAGER.ADDON_RELEASE_NOTES';
|
||||||
|
|
||||||
/** the column name for the ADDON_DOWNLOAD_URL field */
|
/**
|
||||||
|
* the column name for the ADDON_DOWNLOAD_URL field
|
||||||
|
*/
|
||||||
const ADDON_DOWNLOAD_URL = 'ADDONS_MANAGER.ADDON_DOWNLOAD_URL';
|
const ADDON_DOWNLOAD_URL = 'ADDONS_MANAGER.ADDON_DOWNLOAD_URL';
|
||||||
|
|
||||||
/** the column name for the ADDON_DOWNLOAD_PROGRESS field */
|
/**
|
||||||
|
* the column name for the ADDON_DOWNLOAD_PROGRESS field
|
||||||
|
*/
|
||||||
const ADDON_DOWNLOAD_PROGRESS = 'ADDONS_MANAGER.ADDON_DOWNLOAD_PROGRESS';
|
const ADDON_DOWNLOAD_PROGRESS = 'ADDONS_MANAGER.ADDON_DOWNLOAD_PROGRESS';
|
||||||
|
|
||||||
/** the column name for the ADDON_DOWNLOAD_MD5 field */
|
/**
|
||||||
|
* the column name for the ADDON_DOWNLOAD_MD5 field
|
||||||
|
*/
|
||||||
const ADDON_DOWNLOAD_MD5 = 'ADDONS_MANAGER.ADDON_DOWNLOAD_MD5';
|
const ADDON_DOWNLOAD_MD5 = 'ADDONS_MANAGER.ADDON_DOWNLOAD_MD5';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/**
|
||||||
|
* The PHP to DB Name Mapping
|
||||||
|
*/
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* holds an array of fieldnames
|
* holds an array of fieldnames
|
||||||
*
|
*
|
||||||
@@ -96,10 +142,10 @@ abstract class BaseAddonsManagerPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AddonId', 'StoreId', 'AddonName', 'AddonNick', 'AddonDownloadFilename', 'AddonDescription', 'AddonState', 'AddonStateChanged', 'AddonStatus', 'AddonVersion', 'AddonType', 'AddonPublisher', 'AddonReleaseDate', 'AddonReleaseType', 'AddonReleaseNotes', 'AddonDownloadUrl', 'AddonDownloadProgress', 'AddonDownloadMd5', ),
|
BasePeer::TYPE_PHPNAME => array ('AddonId','StoreId','AddonName','AddonNick','AddonDownloadFilename','AddonDescription','AddonState','AddonStateChanged','AddonStatus','AddonVersion','AddonType','AddonPublisher','AddonReleaseDate','AddonReleaseType','AddonReleaseNotes','AddonDownloadUrl','AddonDownloadProgress','AddonDownloadMd5'),
|
||||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID, AddonsManagerPeer::STORE_ID, AddonsManagerPeer::ADDON_NAME, AddonsManagerPeer::ADDON_NICK, AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME, AddonsManagerPeer::ADDON_DESCRIPTION, AddonsManagerPeer::ADDON_STATE, AddonsManagerPeer::ADDON_STATE_CHANGED, AddonsManagerPeer::ADDON_STATUS, AddonsManagerPeer::ADDON_VERSION, AddonsManagerPeer::ADDON_TYPE, AddonsManagerPeer::ADDON_PUBLISHER, AddonsManagerPeer::ADDON_RELEASE_DATE, AddonsManagerPeer::ADDON_RELEASE_TYPE, AddonsManagerPeer::ADDON_RELEASE_NOTES, AddonsManagerPeer::ADDON_DOWNLOAD_URL, AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS, AddonsManagerPeer::ADDON_DOWNLOAD_MD5, ),
|
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID,AddonsManagerPeer::STORE_ID,AddonsManagerPeer::ADDON_NAME,AddonsManagerPeer::ADDON_NICK,AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME,AddonsManagerPeer::ADDON_DESCRIPTION,AddonsManagerPeer::ADDON_STATE,AddonsManagerPeer::ADDON_STATE_CHANGED,AddonsManagerPeer::ADDON_STATUS,AddonsManagerPeer::ADDON_VERSION,AddonsManagerPeer::ADDON_TYPE,AddonsManagerPeer::ADDON_PUBLISHER,AddonsManagerPeer::ADDON_RELEASE_DATE,AddonsManagerPeer::ADDON_RELEASE_TYPE,AddonsManagerPeer::ADDON_RELEASE_NOTES,AddonsManagerPeer::ADDON_DOWNLOAD_URL,AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS,AddonsManagerPeer::ADDON_DOWNLOAD_MD5),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID', 'STORE_ID', 'ADDON_NAME', 'ADDON_NICK', 'ADDON_DOWNLOAD_FILENAME', 'ADDON_DESCRIPTION', 'ADDON_STATE', 'ADDON_STATE_CHANGED', 'ADDON_STATUS', 'ADDON_VERSION', 'ADDON_TYPE', 'ADDON_PUBLISHER', 'ADDON_RELEASE_DATE', 'ADDON_RELEASE_TYPE', 'ADDON_RELEASE_NOTES', 'ADDON_DOWNLOAD_URL', 'ADDON_DOWNLOAD_PROGRESS', 'ADDON_DOWNLOAD_MD5', ),
|
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID','STORE_ID','ADDON_NAME','ADDON_NICK','ADDON_DOWNLOAD_FILENAME','ADDON_DESCRIPTION','ADDON_STATE','ADDON_STATE_CHANGED','ADDON_STATUS','ADDON_VERSION','ADDON_TYPE','ADDON_PUBLISHER','ADDON_RELEASE_DATE','ADDON_RELEASE_TYPE','ADDON_RELEASE_NOTES','ADDON_DOWNLOAD_URL','ADDON_DOWNLOAD_PROGRESS','ADDON_DOWNLOAD_MD5'),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -109,13 +155,14 @@ abstract class BaseAddonsManagerPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AddonId' => 0, 'StoreId' => 1, 'AddonName' => 2, 'AddonNick' => 3, 'AddonDownloadFilename' => 4, 'AddonDescription' => 5, 'AddonState' => 6, 'AddonStateChanged' => 7, 'AddonStatus' => 8, 'AddonVersion' => 9, 'AddonType' => 10, 'AddonPublisher' => 11, 'AddonReleaseDate' => 12, 'AddonReleaseType' => 13, 'AddonReleaseNotes' => 14, 'AddonDownloadUrl' => 15, 'AddonDownloadProgress' => 16, 'AddonDownloadMd5' => 17, ),
|
BasePeer::TYPE_PHPNAME => array ('AddonId' => 0,'StoreId' => 1,'AddonName' => 2,'AddonNick' => 3,'AddonDownloadFilename' => 4,'AddonDescription' => 5,'AddonState' => 6,'AddonStateChanged' => 7,'AddonStatus' => 8,'AddonVersion' => 9,'AddonType' => 10,'AddonPublisher' => 11,'AddonReleaseDate' => 12,'AddonReleaseType' => 13,'AddonReleaseNotes' => 14,'AddonDownloadUrl' => 15,'AddonDownloadProgress' => 16,'AddonDownloadMd5' => 17),
|
||||||
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID => 0, AddonsManagerPeer::STORE_ID => 1, AddonsManagerPeer::ADDON_NAME => 2, AddonsManagerPeer::ADDON_NICK => 3, AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME => 4, AddonsManagerPeer::ADDON_DESCRIPTION => 5, AddonsManagerPeer::ADDON_STATE => 6, AddonsManagerPeer::ADDON_STATE_CHANGED => 7, AddonsManagerPeer::ADDON_STATUS => 8, AddonsManagerPeer::ADDON_VERSION => 9, AddonsManagerPeer::ADDON_TYPE => 10, AddonsManagerPeer::ADDON_PUBLISHER => 11, AddonsManagerPeer::ADDON_RELEASE_DATE => 12, AddonsManagerPeer::ADDON_RELEASE_TYPE => 13, AddonsManagerPeer::ADDON_RELEASE_NOTES => 14, AddonsManagerPeer::ADDON_DOWNLOAD_URL => 15, AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS => 16, AddonsManagerPeer::ADDON_DOWNLOAD_MD5 => 17, ),
|
BasePeer::TYPE_COLNAME => array (AddonsManagerPeer::ADDON_ID => 0,AddonsManagerPeer::STORE_ID => 1,AddonsManagerPeer::ADDON_NAME => 2,AddonsManagerPeer::ADDON_NICK => 3,AddonsManagerPeer::ADDON_DOWNLOAD_FILENAME => 4,AddonsManagerPeer::ADDON_DESCRIPTION => 5,AddonsManagerPeer::ADDON_STATE => 6,AddonsManagerPeer::ADDON_STATE_CHANGED => 7,AddonsManagerPeer::ADDON_STATUS => 8,AddonsManagerPeer::ADDON_VERSION => 9,AddonsManagerPeer::ADDON_TYPE => 10,AddonsManagerPeer::ADDON_PUBLISHER => 11,AddonsManagerPeer::ADDON_RELEASE_DATE => 12,AddonsManagerPeer::ADDON_RELEASE_TYPE => 13,AddonsManagerPeer::ADDON_RELEASE_NOTES => 14,AddonsManagerPeer::ADDON_DOWNLOAD_URL => 15,AddonsManagerPeer::ADDON_DOWNLOAD_PROGRESS => 16,AddonsManagerPeer::ADDON_DOWNLOAD_MD5 => 17),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID' => 0, 'STORE_ID' => 1, 'ADDON_NAME' => 2, 'ADDON_NICK' => 3, 'ADDON_DOWNLOAD_FILENAME' => 4, 'ADDON_DESCRIPTION' => 5, 'ADDON_STATE' => 6, 'ADDON_STATE_CHANGED' => 7, 'ADDON_STATUS' => 8, 'ADDON_VERSION' => 9, 'ADDON_TYPE' => 10, 'ADDON_PUBLISHER' => 11, 'ADDON_RELEASE_DATE' => 12, 'ADDON_RELEASE_TYPE' => 13, 'ADDON_RELEASE_NOTES' => 14, 'ADDON_DOWNLOAD_URL' => 15, 'ADDON_DOWNLOAD_PROGRESS' => 16, 'ADDON_DOWNLOAD_MD5' => 17, ),
|
BasePeer::TYPE_FIELDNAME => array ('ADDON_ID' => 0,'STORE_ID' => 1,'ADDON_NAME' => 2,'ADDON_NICK' => 3,'ADDON_DOWNLOAD_FILENAME' => 4,'ADDON_DESCRIPTION' => 5,'ADDON_STATE' => 6,'ADDON_STATE_CHANGED' => 7,'ADDON_STATUS' => 8,'ADDON_VERSION' => 9,'ADDON_TYPE' => 10,'ADDON_PUBLISHER' => 11,'ADDON_RELEASE_DATE' => 12,'ADDON_RELEASE_TYPE' => 13,'ADDON_RELEASE_NOTES' => 14,'ADDON_DOWNLOAD_URL' => 15,'ADDON_DOWNLOAD_PROGRESS' => 16,'ADDON_DOWNLOAD_MD5' => 17),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @return MapBuilder the map builder for this peer
|
* @return MapBuilder the map builder for this peer
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -125,6 +172,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
include_once 'classes/model/map/AddonsManagerMapBuilder.php';
|
include_once 'classes/model/map/AddonsManagerMapBuilder.php';
|
||||||
return BasePeer::getMapBuilder( 'classes.model.map.AddonsManagerMapBuilder' );
|
return BasePeer::getMapBuilder( 'classes.model.map.AddonsManagerMapBuilder' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a map (hash) of PHP names to DB column names.
|
* Gets a map (hash) of PHP names to DB column names.
|
||||||
*
|
*
|
||||||
@@ -146,6 +194,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
}
|
}
|
||||||
return self::$phpNameMap;
|
return self::$phpNameMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translates a fieldname to another type
|
* Translates a fieldname to another type
|
||||||
*
|
*
|
||||||
@@ -190,6 +239,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
* @param string $alias The alias for the current table.
|
* @param string $alias The alias for the current table.
|
||||||
* @param string $column The column name for current table. (i.e. AddonsManagerPeer::COLUMN_NAME).
|
* @param string $column The column name for current table. (i.e. AddonsManagerPeer::COLUMN_NAME).
|
||||||
* @return string
|
* @return string
|
||||||
@@ -288,6 +338,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to select one object from the DB.
|
* Method to select one object from the DB.
|
||||||
*
|
*
|
||||||
@@ -307,6 +358,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to do selects.
|
* Method to do selects.
|
||||||
*
|
*
|
||||||
@@ -320,6 +372,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
{
|
{
|
||||||
return AddonsManagerPeer::populateObjects( AddonsManagerPeer::doSelectRS( $criteria, $con ) );
|
return AddonsManagerPeer::populateObjects( AddonsManagerPeer::doSelectRS( $criteria, $con ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the Criteria object and uses the parent doSelect()
|
* Prepares the Criteria object and uses the parent doSelect()
|
||||||
* method to get a ResultSet.
|
* method to get a ResultSet.
|
||||||
@@ -352,6 +405,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
// rows indexed numerically.
|
// rows indexed numerically.
|
||||||
return BasePeer::doSelect( $criteria, $con );
|
return BasePeer::doSelect( $criteria, $con );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The returned array will contain objects of the default type or
|
* The returned array will contain objects of the default type or
|
||||||
* objects that inherit from the default.
|
* objects that inherit from the default.
|
||||||
@@ -376,9 +430,11 @@ abstract class BaseAddonsManagerPeer
|
|||||||
}
|
}
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the TableMap related to this peer.
|
* Returns the TableMap related to this peer.
|
||||||
* This method is not needed for general use but a specific application could have a need.
|
* This method is not needed for general use but a specific application could have a need.
|
||||||
|
*
|
||||||
* @return TableMap
|
* @return TableMap
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -423,7 +479,6 @@ abstract class BaseAddonsManagerPeer
|
|||||||
$criteria = $values->buildCriteria(); // build Criteria from AddonsManager object
|
$criteria = $values->buildCriteria(); // build Criteria from AddonsManager object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
$criteria->setDbName( self::DATABASE_NAME );
|
$criteria->setDbName( self::DATABASE_NAME );
|
||||||
|
|
||||||
@@ -444,8 +499,8 @@ abstract class BaseAddonsManagerPeer
|
|||||||
/**
|
/**
|
||||||
* Method perform an UPDATE on the database, given a AddonsManager or Criteria object.
|
* Method perform an UPDATE on the database, given a AddonsManager or Criteria object.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or AddonsManager object containing data create the UPDATE statement.
|
* @param mixed $values Criteria or AddonsManager object containing data that is used to create the UPDATE statement.
|
||||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -468,6 +523,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
$selectCriteria->add( AddonsManagerPeer::STORE_ID, $criteria->remove( AddonsManagerPeer::STORE_ID ), $comparison );
|
$selectCriteria->add( AddonsManagerPeer::STORE_ID, $criteria->remove( AddonsManagerPeer::STORE_ID ), $comparison );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// $values is AddonsManager object
|
||||||
$criteria = $values->buildCriteria(); // gets full criteria
|
$criteria = $values->buildCriteria(); // gets full criteria
|
||||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||||
}
|
}
|
||||||
@@ -508,8 +564,7 @@ abstract class BaseAddonsManagerPeer
|
|||||||
* @param mixed $values Criteria or AddonsManager object or primary key or array of primary keys
|
* @param mixed $values Criteria or AddonsManager object or primary key or array of primary keys
|
||||||
* which is used to create the DELETE statement
|
* which is used to create the DELETE statement
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||||
* This includes CASCADE-related rows
|
|
||||||
* if supported by native driver or if emulated using Propel.
|
* if supported by native driver or if emulated using Propel.
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -523,7 +578,6 @@ abstract class BaseAddonsManagerPeer
|
|||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
} elseif ($values instanceof AddonsManager) {
|
} elseif ($values instanceof AddonsManager) {
|
||||||
|
|
||||||
$criteria = $values->buildPkeyCriteria();
|
$criteria = $values->buildPkeyCriteria();
|
||||||
} else {
|
} else {
|
||||||
// it must be the primary key
|
// it must be the primary key
|
||||||
@@ -533,15 +587,15 @@ abstract class BaseAddonsManagerPeer
|
|||||||
// values
|
// values
|
||||||
if (count( $values ) == count( $values, COUNT_RECURSIVE )) {
|
if (count( $values ) == count( $values, COUNT_RECURSIVE )) {
|
||||||
// array is not multi-dimensional
|
// array is not multi-dimensional
|
||||||
$values = array($values);
|
$values = array (
|
||||||
|
$values
|
||||||
|
);
|
||||||
}
|
}
|
||||||
$vals = array ();
|
$vals = array ();
|
||||||
foreach ($values as $value) {
|
foreach ($values as $value) {
|
||||||
|
|
||||||
$vals[0][] = $value[0];
|
$vals[0][] = $value[0];
|
||||||
$vals[1][] = $value[1];
|
$vals[1][] = $value[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
$criteria->add( AddonsManagerPeer::ADDON_ID, $vals[0], Criteria::IN );
|
$criteria->add( AddonsManagerPeer::ADDON_ID, $vals[0], Criteria::IN );
|
||||||
$criteria->add( AddonsManagerPeer::STORE_ID, $vals[1], Criteria::IN );
|
$criteria->add( AddonsManagerPeer::STORE_ID, $vals[1], Criteria::IN );
|
||||||
}
|
}
|
||||||
@@ -586,7 +640,9 @@ abstract class BaseAddonsManagerPeer
|
|||||||
$tableMap = $dbMap->getTable( AddonsManagerPeer::TABLE_NAME );
|
$tableMap = $dbMap->getTable( AddonsManagerPeer::TABLE_NAME );
|
||||||
|
|
||||||
if (! is_array( $cols )) {
|
if (! is_array( $cols )) {
|
||||||
$cols = array($cols);
|
$cols = array (
|
||||||
|
$cols
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($cols as $colName) {
|
foreach ($cols as $colName) {
|
||||||
@@ -604,8 +660,10 @@ abstract class BaseAddonsManagerPeer
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve object using using composite pkey values.
|
* Retrieve object using using composite pkey values.
|
||||||
|
*
|
||||||
* @param string $addon_id
|
* @param string $addon_id
|
||||||
* @param string $store_id
|
* @param string $store_id
|
||||||
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return AddonsManager
|
* @return AddonsManager
|
||||||
*/
|
*/
|
||||||
@@ -623,7 +681,6 @@ abstract class BaseAddonsManagerPeer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// static code to register the map builder for this Peer with the main Propel class
|
// static code to register the map builder for this Peer with the main Propel class
|
||||||
if (Propel::isInit()) {
|
if (Propel::isInit()) {
|
||||||
// the MapBuilder classes register themselves with Propel during initialization
|
// the MapBuilder classes register themselves with Propel during initialization
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ 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/AddonsStorePeer.php';
|
include_once 'classes/model/AddonsStorePeer.php';
|
||||||
@@ -23,36 +22,42 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
* The Peer class.
|
* The Peer class.
|
||||||
* Instance provides a convenient way of calling static methods on a class
|
* Instance provides a convenient way of calling static methods on a class
|
||||||
* that calling code may not be able to identify.
|
* that calling code may not be able to identify.
|
||||||
|
*
|
||||||
* @var AddonsStorePeer
|
* @var AddonsStorePeer
|
||||||
*/
|
*/
|
||||||
protected static $peer;
|
protected static $peer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_id field.
|
* The value for the store_id field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $store_id;
|
protected $store_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_version field.
|
* The value for the store_version field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $store_version;
|
protected $store_version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_location field.
|
* The value for the store_location field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $store_location;
|
protected $store_location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_type field.
|
* The value for the store_type field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $store_type;
|
protected $store_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the store_last_updated field.
|
* The value for the store_last_updated field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $store_last_updated;
|
protected $store_last_updated;
|
||||||
@@ -60,6 +65,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInSave = false;
|
protected $alreadyInSave = false;
|
||||||
@@ -67,6 +73,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless validation loop, if this object is referenced
|
* Flag to prevent endless validation loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInValidation = false;
|
protected $alreadyInValidation = false;
|
||||||
@@ -78,7 +85,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreId ()
|
public function getStoreId ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->store_id;
|
return $this->store_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +95,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreVersion ()
|
public function getStoreVersion ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->store_version;
|
return $this->store_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,7 +105,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreLocation ()
|
public function getStoreLocation ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->store_location;
|
return $this->store_location;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +115,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreType ()
|
public function getStoreType ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->store_type;
|
return $this->store_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,15 +128,14 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getStoreLastUpdated ($format = 'Y-m-d H:i:s')
|
public function getStoreLastUpdated ($format = 'Y-m-d H:i:s')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->store_last_updated === null || $this->store_last_updated === '') {
|
if ($this->store_last_updated === null || $this->store_last_updated === '') {
|
||||||
return null;
|
return null;
|
||||||
} elseif (! is_int( $this->store_last_updated )) {
|
} elseif (! is_int( $this->store_last_updated )) {
|
||||||
// a non-timestamp value was set externally, so we convert it
|
// a non-timestamp value was set externally, so we convert it
|
||||||
$ts = strtotime( $this->store_last_updated );
|
$ts = strtotime( $this->store_last_updated );
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse value of [store_last_updated] as date/time value: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($this->store_last_updated, true));
|
throw new PropelException( "Unable to parse value of [store_last_updated] as date/time value: " . var_export( $this->store_last_updated, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $this->store_last_updated;
|
$ts = $this->store_last_updated;
|
||||||
@@ -155,7 +157,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreId ($v)
|
public function setStoreId ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -166,7 +167,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
$this->store_id = $v;
|
$this->store_id = $v;
|
||||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_ID;
|
$this->modifiedColumns[] = AddonsStorePeer::STORE_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreId()
|
} // setStoreId()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -177,18 +177,15 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreVersion ($v)
|
public function setStoreVersion ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is integer,
|
||||||
// we will cast the input value to an int (if it is not).
|
// we will cast the input value to an int (if it is not).
|
||||||
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
||||||
$v = (int) $v;
|
$v = (int) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->store_version !== $v) {
|
if ($this->store_version !== $v) {
|
||||||
$this->store_version = $v;
|
$this->store_version = $v;
|
||||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_VERSION;
|
$this->modifiedColumns[] = AddonsStorePeer::STORE_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreVersion()
|
} // setStoreVersion()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -199,18 +196,15 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreLocation ($v)
|
public function setStoreLocation ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->store_location !== $v) {
|
if ($this->store_location !== $v) {
|
||||||
$this->store_location = $v;
|
$this->store_location = $v;
|
||||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_LOCATION;
|
$this->modifiedColumns[] = AddonsStorePeer::STORE_LOCATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreLocation()
|
} // setStoreLocation()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -221,18 +215,15 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreType ($v)
|
public function setStoreType ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->store_type !== $v) {
|
if ($this->store_type !== $v) {
|
||||||
$this->store_type = $v;
|
$this->store_type = $v;
|
||||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_TYPE;
|
$this->modifiedColumns[] = AddonsStorePeer::STORE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreType()
|
} // setStoreType()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -243,16 +234,11 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setStoreLastUpdated ($v)
|
public function setStoreLastUpdated ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($v !== null && ! is_int( $v )) {
|
if ($v !== null && ! is_int( $v )) {
|
||||||
$ts = strtotime( $v );
|
$ts = strtotime( $v );
|
||||||
//Date/time accepts null values
|
|
||||||
if ($v == '') {
|
|
||||||
$ts = null;
|
|
||||||
}
|
|
||||||
if ($ts === - 1 || $ts === false) {
|
if ($ts === - 1 || $ts === false) {
|
||||||
throw new PropelException("Unable to parse date/time value for [store_last_updated] from input: " .
|
// in PHP 5.1 return value changes to FALSE
|
||||||
var_export($v, true));
|
throw new PropelException( "Unable to parse date/time value for [store_last_updated] from input: " . var_export( $v, true ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ts = $v;
|
$ts = $v;
|
||||||
@@ -261,7 +247,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
$this->store_last_updated = $ts;
|
$this->store_last_updated = $ts;
|
||||||
$this->modifiedColumns[] = AddonsStorePeer::STORE_LAST_UPDATED;
|
$this->modifiedColumns[] = AddonsStorePeer::STORE_LAST_UPDATED;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setStoreLastUpdated()
|
} // setStoreLastUpdated()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -317,11 +302,9 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
if ($this->isDeleted()) {
|
if ($this->isDeleted()) {
|
||||||
throw new PropelException( "This object has already been deleted." );
|
throw new PropelException( "This object has already been deleted." );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($con === null) {
|
if ($con === null) {
|
||||||
$con = Propel::getConnection( AddonsStorePeer::DATABASE_NAME );
|
$con = Propel::getConnection( AddonsStorePeer::DATABASE_NAME );
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$con->begin();
|
$con->begin();
|
||||||
AddonsStorePeer::doDelete( $this, $con );
|
AddonsStorePeer::doDelete( $this, $con );
|
||||||
@@ -334,12 +317,13 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the object in the database. If the object is new,
|
* Stores the object in the database.
|
||||||
|
* If the object is new,
|
||||||
* it inserts it; otherwise an update is performed. This method
|
* it inserts it; otherwise an update is performed. This method
|
||||||
* wraps the doSave() worker method in a transaction.
|
* wraps the doSave() worker method in a transaction.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see doSave()
|
* @see doSave()
|
||||||
*/
|
*/
|
||||||
@@ -348,11 +332,9 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
if ($this->isDeleted()) {
|
if ($this->isDeleted()) {
|
||||||
throw new PropelException( "You cannot save an object that has been deleted." );
|
throw new PropelException( "You cannot save an object that has been deleted." );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($con === null) {
|
if ($con === null) {
|
||||||
$con = Propel::getConnection( AddonsStorePeer::DATABASE_NAME );
|
$con = Propel::getConnection( AddonsStorePeer::DATABASE_NAME );
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$con->begin();
|
$con->begin();
|
||||||
$affectedRows = $this->doSave( $con );
|
$affectedRows = $this->doSave( $con );
|
||||||
@@ -371,7 +353,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
* All related objects are also updated in this method.
|
* All related objects are also updated in this method.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update and any referring
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see save()
|
* @see save()
|
||||||
*/
|
*/
|
||||||
@@ -380,8 +362,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
$affectedRows = 0; // initialize var to track total num of affected rows
|
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||||
if (! $this->alreadyInSave) {
|
if (! $this->alreadyInSave) {
|
||||||
$this->alreadyInSave = true;
|
$this->alreadyInSave = true;
|
||||||
|
|
||||||
|
|
||||||
// If this object has been modified, then save it to the database.
|
// If this object has been modified, then save it to the database.
|
||||||
if ($this->isModified()) {
|
if ($this->isModified()) {
|
||||||
if ($this->isNew()) {
|
if ($this->isNew()) {
|
||||||
@@ -389,14 +369,12 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||||
// should always be true here (even though technically
|
// should always be true here (even though technically
|
||||||
// BasePeer::doInsert() can insert multiple rows).
|
// BasePeer::doInsert() can insert multiple rows).
|
||||||
|
|
||||||
$this->setNew( false );
|
$this->setNew( false );
|
||||||
} else {
|
} else {
|
||||||
$affectedRows += AddonsStorePeer::doUpdate( $this, $con );
|
$affectedRows += AddonsStorePeer::doUpdate( $this, $con );
|
||||||
}
|
}
|
||||||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->alreadyInSave = false;
|
$this->alreadyInSave = false;
|
||||||
}
|
}
|
||||||
return $affectedRows;
|
return $affectedRows;
|
||||||
@@ -404,6 +382,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of ValidationFailed objects.
|
* Array of ValidationFailed objects.
|
||||||
|
*
|
||||||
* @var array ValidationFailed[]
|
* @var array ValidationFailed[]
|
||||||
*/
|
*/
|
||||||
protected $validationFailures = array ();
|
protected $validationFailures = array ();
|
||||||
@@ -451,27 +430,19 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
* an aggreagated array of ValidationFailed objects will be returned.
|
* an aggreagated array of ValidationFailed objects will be returned.
|
||||||
*
|
*
|
||||||
* @param array $columns Array of column names to validate.
|
* @param array $columns Array of column names to validate.
|
||||||
* @return mixed <code>true</code> if all validations pass;
|
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||||
array of <code>ValidationFailed</code> objects otherwise.
|
|
||||||
*/
|
*/
|
||||||
protected function doValidate ($columns = null)
|
protected function doValidate ($columns = null)
|
||||||
{
|
{
|
||||||
if (! $this->alreadyInValidation) {
|
if (! $this->alreadyInValidation) {
|
||||||
$this->alreadyInValidation = true;
|
$this->alreadyInValidation = true;
|
||||||
$retval = null;
|
$retval = null;
|
||||||
|
|
||||||
$failureMap = array ();
|
$failureMap = array ();
|
||||||
|
|
||||||
|
|
||||||
if (($retval = AddonsStorePeer::doValidate( $this, $columns )) !== true) {
|
if (($retval = AddonsStorePeer::doValidate( $this, $columns )) !== true) {
|
||||||
$failureMap = array_merge( $failureMap, $retval );
|
$failureMap = array_merge( $failureMap, $retval );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->alreadyInValidation = false;
|
$this->alreadyInValidation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (! empty( $failureMap ) ? $failureMap : true);
|
return (! empty( $failureMap ) ? $failureMap : true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -539,7 +510,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
$keys[1] => $this->getStoreVersion(),
|
$keys[1] => $this->getStoreVersion(),
|
||||||
$keys[2] => $this->getStoreLocation(),
|
$keys[2] => $this->getStoreLocation(),
|
||||||
$keys[3] => $this->getStoreType(),
|
$keys[3] => $this->getStoreType(),
|
||||||
$keys[4] => $this->getStoreLastUpdated(),
|
$keys[4] => $this->getStoreLastUpdated()
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -612,23 +583,18 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
if (array_key_exists( $keys[0], $arr )) {
|
if (array_key_exists( $keys[0], $arr )) {
|
||||||
$this->setStoreId( $arr[$keys[0]] );
|
$this->setStoreId( $arr[$keys[0]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[1], $arr )) {
|
if (array_key_exists( $keys[1], $arr )) {
|
||||||
$this->setStoreVersion( $arr[$keys[1]] );
|
$this->setStoreVersion( $arr[$keys[1]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[2], $arr )) {
|
if (array_key_exists( $keys[2], $arr )) {
|
||||||
$this->setStoreLocation( $arr[$keys[2]] );
|
$this->setStoreLocation( $arr[$keys[2]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[3], $arr )) {
|
if (array_key_exists( $keys[3], $arr )) {
|
||||||
$this->setStoreType( $arr[$keys[3]] );
|
$this->setStoreType( $arr[$keys[3]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[4], $arr )) {
|
if (array_key_exists( $keys[4], $arr )) {
|
||||||
$this->setStoreLastUpdated( $arr[$keys[4]] );
|
$this->setStoreLastUpdated( $arr[$keys[4]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -643,24 +609,18 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
if ($this->isColumnModified( AddonsStorePeer::STORE_ID )) {
|
if ($this->isColumnModified( AddonsStorePeer::STORE_ID )) {
|
||||||
$criteria->add( AddonsStorePeer::STORE_ID, $this->store_id );
|
$criteria->add( AddonsStorePeer::STORE_ID, $this->store_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsStorePeer::STORE_VERSION )) {
|
if ($this->isColumnModified( AddonsStorePeer::STORE_VERSION )) {
|
||||||
$criteria->add( AddonsStorePeer::STORE_VERSION, $this->store_version );
|
$criteria->add( AddonsStorePeer::STORE_VERSION, $this->store_version );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsStorePeer::STORE_LOCATION )) {
|
if ($this->isColumnModified( AddonsStorePeer::STORE_LOCATION )) {
|
||||||
$criteria->add( AddonsStorePeer::STORE_LOCATION, $this->store_location );
|
$criteria->add( AddonsStorePeer::STORE_LOCATION, $this->store_location );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsStorePeer::STORE_TYPE )) {
|
if ($this->isColumnModified( AddonsStorePeer::STORE_TYPE )) {
|
||||||
$criteria->add( AddonsStorePeer::STORE_TYPE, $this->store_type );
|
$criteria->add( AddonsStorePeer::STORE_TYPE, $this->store_type );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( AddonsStorePeer::STORE_LAST_UPDATED )) {
|
if ($this->isColumnModified( AddonsStorePeer::STORE_LAST_UPDATED )) {
|
||||||
$criteria->add( AddonsStorePeer::STORE_LAST_UPDATED, $this->store_last_updated );
|
$criteria->add( AddonsStorePeer::STORE_LAST_UPDATED, $this->store_last_updated );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -683,6 +643,7 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primary key for this object (row).
|
* Returns the primary key for this object (row).
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getPrimaryKey ()
|
public function getPrimaryKey ()
|
||||||
@@ -713,7 +674,6 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function copyInto ($copyObj, $deepCopy = false)
|
public function copyInto ($copyObj, $deepCopy = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
$copyObj->setStoreVersion( $this->store_version );
|
$copyObj->setStoreVersion( $this->store_version );
|
||||||
|
|
||||||
$copyObj->setStoreLocation( $this->store_location );
|
$copyObj->setStoreLocation( $this->store_location );
|
||||||
@@ -722,11 +682,9 @@ abstract class BaseAddonsStore extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setStoreLastUpdated( $this->store_last_updated );
|
$copyObj->setStoreLastUpdated( $this->store_last_updated );
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew( true );
|
$copyObj->setNew( true );
|
||||||
|
|
||||||
$copyObj->setStoreId(NULL); // this is a pkey column, so set to default value
|
$copyObj->setStoreId( null ); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,41 +15,61 @@ include_once 'classes/model/AddonsStore.php';
|
|||||||
abstract class BaseAddonsStorePeer
|
abstract class BaseAddonsStorePeer
|
||||||
{
|
{
|
||||||
|
|
||||||
/** the default database name for this class */
|
/**
|
||||||
|
* the default database name for this class
|
||||||
|
*/
|
||||||
const DATABASE_NAME = 'workflow';
|
const DATABASE_NAME = 'workflow';
|
||||||
|
|
||||||
/** the table name for this class */
|
/**
|
||||||
|
* the table name for this class
|
||||||
|
*/
|
||||||
const TABLE_NAME = 'ADDONS_STORE';
|
const TABLE_NAME = 'ADDONS_STORE';
|
||||||
|
|
||||||
/** A class that can be returned by this peer. */
|
/**
|
||||||
|
* A class that can be returned by this peer.
|
||||||
|
*/
|
||||||
const CLASS_DEFAULT = 'classes.model.AddonsStore';
|
const CLASS_DEFAULT = 'classes.model.AddonsStore';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/**
|
||||||
|
* The total number of columns.
|
||||||
|
*/
|
||||||
const NUM_COLUMNS = 5;
|
const NUM_COLUMNS = 5;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/**
|
||||||
|
* The number of lazy-loaded columns.
|
||||||
|
*/
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
/** the column name for the STORE_ID field */
|
* the column name for the STORE_ID field
|
||||||
|
*/
|
||||||
const STORE_ID = 'ADDONS_STORE.STORE_ID';
|
const STORE_ID = 'ADDONS_STORE.STORE_ID';
|
||||||
|
|
||||||
/** the column name for the STORE_VERSION field */
|
/**
|
||||||
|
* the column name for the STORE_VERSION field
|
||||||
|
*/
|
||||||
const STORE_VERSION = 'ADDONS_STORE.STORE_VERSION';
|
const STORE_VERSION = 'ADDONS_STORE.STORE_VERSION';
|
||||||
|
|
||||||
/** the column name for the STORE_LOCATION field */
|
/**
|
||||||
|
* the column name for the STORE_LOCATION field
|
||||||
|
*/
|
||||||
const STORE_LOCATION = 'ADDONS_STORE.STORE_LOCATION';
|
const STORE_LOCATION = 'ADDONS_STORE.STORE_LOCATION';
|
||||||
|
|
||||||
/** the column name for the STORE_TYPE field */
|
/**
|
||||||
|
* the column name for the STORE_TYPE field
|
||||||
|
*/
|
||||||
const STORE_TYPE = 'ADDONS_STORE.STORE_TYPE';
|
const STORE_TYPE = 'ADDONS_STORE.STORE_TYPE';
|
||||||
|
|
||||||
/** the column name for the STORE_LAST_UPDATED field */
|
/**
|
||||||
|
* the column name for the STORE_LAST_UPDATED field
|
||||||
|
*/
|
||||||
const STORE_LAST_UPDATED = 'ADDONS_STORE.STORE_LAST_UPDATED';
|
const STORE_LAST_UPDATED = 'ADDONS_STORE.STORE_LAST_UPDATED';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/**
|
||||||
|
* The PHP to DB Name Mapping
|
||||||
|
*/
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* holds an array of fieldnames
|
* holds an array of fieldnames
|
||||||
*
|
*
|
||||||
@@ -57,10 +77,10 @@ abstract class BaseAddonsStorePeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('StoreId', 'StoreVersion', 'StoreLocation', 'StoreType', 'StoreLastUpdated', ),
|
BasePeer::TYPE_PHPNAME => array ('StoreId','StoreVersion','StoreLocation','StoreType','StoreLastUpdated'),
|
||||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID, AddonsStorePeer::STORE_VERSION, AddonsStorePeer::STORE_LOCATION, AddonsStorePeer::STORE_TYPE, AddonsStorePeer::STORE_LAST_UPDATED, ),
|
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID,AddonsStorePeer::STORE_VERSION,AddonsStorePeer::STORE_LOCATION,AddonsStorePeer::STORE_TYPE,AddonsStorePeer::STORE_LAST_UPDATED),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID', 'STORE_VERSION', 'STORE_LOCATION', 'STORE_TYPE', 'STORE_LAST_UPDATED', ),
|
BasePeer::TYPE_FIELDNAME => array ('STORE_ID','STORE_VERSION','STORE_LOCATION','STORE_TYPE','STORE_LAST_UPDATED'),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -70,13 +90,14 @@ abstract class BaseAddonsStorePeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('StoreId' => 0, 'StoreVersion' => 1, 'StoreLocation' => 2, 'StoreType' => 3, 'StoreLastUpdated' => 4, ),
|
BasePeer::TYPE_PHPNAME => array ('StoreId' => 0,'StoreVersion' => 1,'StoreLocation' => 2,'StoreType' => 3,'StoreLastUpdated' => 4),
|
||||||
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID => 0, AddonsStorePeer::STORE_VERSION => 1, AddonsStorePeer::STORE_LOCATION => 2, AddonsStorePeer::STORE_TYPE => 3, AddonsStorePeer::STORE_LAST_UPDATED => 4, ),
|
BasePeer::TYPE_COLNAME => array (AddonsStorePeer::STORE_ID => 0,AddonsStorePeer::STORE_VERSION => 1,AddonsStorePeer::STORE_LOCATION => 2,AddonsStorePeer::STORE_TYPE => 3,AddonsStorePeer::STORE_LAST_UPDATED => 4),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('STORE_ID' => 0, 'STORE_VERSION' => 1, 'STORE_LOCATION' => 2, 'STORE_TYPE' => 3, 'STORE_LAST_UPDATED' => 4, ),
|
BasePeer::TYPE_FIELDNAME => array ('STORE_ID' => 0,'STORE_VERSION' => 1,'STORE_LOCATION' => 2,'STORE_TYPE' => 3,'STORE_LAST_UPDATED' => 4),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @return MapBuilder the map builder for this peer
|
* @return MapBuilder the map builder for this peer
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -86,6 +107,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
include_once 'classes/model/map/AddonsStoreMapBuilder.php';
|
include_once 'classes/model/map/AddonsStoreMapBuilder.php';
|
||||||
return BasePeer::getMapBuilder( 'classes.model.map.AddonsStoreMapBuilder' );
|
return BasePeer::getMapBuilder( 'classes.model.map.AddonsStoreMapBuilder' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a map (hash) of PHP names to DB column names.
|
* Gets a map (hash) of PHP names to DB column names.
|
||||||
*
|
*
|
||||||
@@ -107,6 +129,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
}
|
}
|
||||||
return self::$phpNameMap;
|
return self::$phpNameMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translates a fieldname to another type
|
* Translates a fieldname to another type
|
||||||
*
|
*
|
||||||
@@ -151,6 +174,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
* @param string $alias The alias for the current table.
|
* @param string $alias The alias for the current table.
|
||||||
* @param string $column The column name for current table. (i.e. AddonsStorePeer::COLUMN_NAME).
|
* @param string $column The column name for current table. (i.e. AddonsStorePeer::COLUMN_NAME).
|
||||||
* @return string
|
* @return string
|
||||||
@@ -223,6 +247,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to select one object from the DB.
|
* Method to select one object from the DB.
|
||||||
*
|
*
|
||||||
@@ -242,6 +267,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to do selects.
|
* Method to do selects.
|
||||||
*
|
*
|
||||||
@@ -255,6 +281,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
{
|
{
|
||||||
return AddonsStorePeer::populateObjects( AddonsStorePeer::doSelectRS( $criteria, $con ) );
|
return AddonsStorePeer::populateObjects( AddonsStorePeer::doSelectRS( $criteria, $con ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the Criteria object and uses the parent doSelect()
|
* Prepares the Criteria object and uses the parent doSelect()
|
||||||
* method to get a ResultSet.
|
* method to get a ResultSet.
|
||||||
@@ -287,6 +314,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
// rows indexed numerically.
|
// rows indexed numerically.
|
||||||
return BasePeer::doSelect( $criteria, $con );
|
return BasePeer::doSelect( $criteria, $con );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The returned array will contain objects of the default type or
|
* The returned array will contain objects of the default type or
|
||||||
* objects that inherit from the default.
|
* objects that inherit from the default.
|
||||||
@@ -311,9 +339,11 @@ abstract class BaseAddonsStorePeer
|
|||||||
}
|
}
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the TableMap related to this peer.
|
* Returns the TableMap related to this peer.
|
||||||
* This method is not needed for general use but a specific application could have a need.
|
* This method is not needed for general use but a specific application could have a need.
|
||||||
|
*
|
||||||
* @return TableMap
|
* @return TableMap
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -358,7 +388,6 @@ abstract class BaseAddonsStorePeer
|
|||||||
$criteria = $values->buildCriteria(); // build Criteria from AddonsStore object
|
$criteria = $values->buildCriteria(); // build Criteria from AddonsStore object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
$criteria->setDbName( self::DATABASE_NAME );
|
$criteria->setDbName( self::DATABASE_NAME );
|
||||||
|
|
||||||
@@ -379,8 +408,8 @@ abstract class BaseAddonsStorePeer
|
|||||||
/**
|
/**
|
||||||
* Method perform an UPDATE on the database, given a AddonsStore or Criteria object.
|
* Method perform an UPDATE on the database, given a AddonsStore or Criteria object.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or AddonsStore object containing data create the UPDATE statement.
|
* @param mixed $values Criteria or AddonsStore object containing data that is used to create the UPDATE statement.
|
||||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -395,18 +424,16 @@ abstract class BaseAddonsStorePeer
|
|||||||
|
|
||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
|
|
||||||
$comparison = $criteria->getComparison( AddonsStorePeer::STORE_ID );
|
$comparison = $criteria->getComparison( AddonsStorePeer::STORE_ID );
|
||||||
$selectCriteria->add( AddonsStorePeer::STORE_ID, $criteria->remove( AddonsStorePeer::STORE_ID ), $comparison );
|
$selectCriteria->add( AddonsStorePeer::STORE_ID, $criteria->remove( AddonsStorePeer::STORE_ID ), $comparison );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// $values is AddonsStore object
|
||||||
$criteria = $values->buildCriteria(); // gets full criteria
|
$criteria = $values->buildCriteria(); // gets full criteria
|
||||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the correct dbName
|
// set the correct dbName
|
||||||
$criteria->setDbName( self::DATABASE_NAME );
|
$criteria->setDbName( self::DATABASE_NAME );
|
||||||
|
|
||||||
return BasePeer::doUpdate( $selectCriteria, $criteria, $con );
|
return BasePeer::doUpdate( $selectCriteria, $criteria, $con );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,8 +467,7 @@ abstract class BaseAddonsStorePeer
|
|||||||
* @param mixed $values Criteria or AddonsStore object or primary key or array of primary keys
|
* @param mixed $values Criteria or AddonsStore object or primary key or array of primary keys
|
||||||
* which is used to create the DELETE statement
|
* which is used to create the DELETE statement
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||||
* This includes CASCADE-related rows
|
|
||||||
* if supported by native driver or if emulated using Propel.
|
* if supported by native driver or if emulated using Propel.
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -455,14 +481,12 @@ abstract class BaseAddonsStorePeer
|
|||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
} elseif ($values instanceof AddonsStore) {
|
} elseif ($values instanceof AddonsStore) {
|
||||||
|
|
||||||
$criteria = $values->buildPkeyCriteria();
|
$criteria = $values->buildPkeyCriteria();
|
||||||
} else {
|
} else {
|
||||||
// it must be the primary key
|
// it must be the primary key
|
||||||
$criteria = new Criteria( self::DATABASE_NAME );
|
$criteria = new Criteria( self::DATABASE_NAME );
|
||||||
$criteria->add( AddonsStorePeer::STORE_ID, (array) $values, Criteria::IN );
|
$criteria->add( AddonsStorePeer::STORE_ID, (array) $values, Criteria::IN );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
$criteria->setDbName( self::DATABASE_NAME );
|
$criteria->setDbName( self::DATABASE_NAME );
|
||||||
|
|
||||||
@@ -472,7 +496,6 @@ abstract class BaseAddonsStorePeer
|
|||||||
// use transaction because $criteria could contain info
|
// use transaction because $criteria could contain info
|
||||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||||
$con->begin();
|
$con->begin();
|
||||||
|
|
||||||
$affectedRows += BasePeer::doDelete( $criteria, $con );
|
$affectedRows += BasePeer::doDelete( $criteria, $con );
|
||||||
$con->commit();
|
$con->commit();
|
||||||
return $affectedRows;
|
return $affectedRows;
|
||||||
@@ -497,15 +520,13 @@ abstract class BaseAddonsStorePeer
|
|||||||
public static function doValidate (AddonsStore $obj, $cols = null)
|
public static function doValidate (AddonsStore $obj, $cols = null)
|
||||||
{
|
{
|
||||||
$columns = array ();
|
$columns = array ();
|
||||||
|
|
||||||
if ($cols) {
|
if ($cols) {
|
||||||
$dbMap = Propel::getDatabaseMap( AddonsStorePeer::DATABASE_NAME );
|
$dbMap = Propel::getDatabaseMap( AddonsStorePeer::DATABASE_NAME );
|
||||||
$tableMap = $dbMap->getTable( AddonsStorePeer::TABLE_NAME );
|
$tableMap = $dbMap->getTable( AddonsStorePeer::TABLE_NAME );
|
||||||
|
|
||||||
if (! is_array( $cols )) {
|
if (! is_array( $cols )) {
|
||||||
$cols = array($cols);
|
$cols = array (
|
||||||
|
$cols);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($cols as $colName) {
|
foreach ($cols as $colName) {
|
||||||
if ($tableMap->containsColumn( $colName )) {
|
if ($tableMap->containsColumn( $colName )) {
|
||||||
$get = 'get' . $tableMap->getColumn( $colName )->getPhpName();
|
$get = 'get' . $tableMap->getColumn( $colName )->getPhpName();
|
||||||
@@ -515,7 +536,6 @@ abstract class BaseAddonsStorePeer
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return BasePeer::doValidate( AddonsStorePeer::DATABASE_NAME, AddonsStorePeer::TABLE_NAME, $columns );
|
return BasePeer::doValidate( AddonsStorePeer::DATABASE_NAME, AddonsStorePeer::TABLE_NAME, $columns );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -536,7 +556,6 @@ abstract class BaseAddonsStorePeer
|
|||||||
|
|
||||||
$criteria->add( AddonsStorePeer::STORE_ID, $pk );
|
$criteria->add( AddonsStorePeer::STORE_ID, $pk );
|
||||||
|
|
||||||
|
|
||||||
$v = AddonsStorePeer::doSelect( $criteria, $con );
|
$v = AddonsStorePeer::doSelect( $criteria, $con );
|
||||||
|
|
||||||
return ! empty( $v ) > 0 ? $v[0] : null;
|
return ! empty( $v ) > 0 ? $v[0] : null;
|
||||||
@@ -568,7 +587,6 @@ abstract class BaseAddonsStorePeer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// static code to register the map builder for this Peer with the main Propel class
|
// static code to register the map builder for this Peer with the main Propel class
|
||||||
if (Propel::isInit()) {
|
if (Propel::isInit()) {
|
||||||
// the MapBuilder classes register themselves with Propel during initialization
|
// the MapBuilder classes register themselves with Propel during initialization
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ 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/LicenseManagerPeer.php';
|
include_once 'classes/model/LicenseManagerPeer.php';
|
||||||
@@ -13,8 +12,7 @@ include_once 'classes/model/LicenseManagerPeer.php';
|
|||||||
* Base class that represents a row from the 'LICENSE_MANAGER' table.
|
* Base class that represents a row from the 'LICENSE_MANAGER' table.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
* @package classes.model.om
|
||||||
* @package workflow.classes.model.om
|
|
||||||
*/
|
*/
|
||||||
abstract class BaseLicenseManager extends BaseObject implements Persistent
|
abstract class BaseLicenseManager extends BaseObject implements Persistent
|
||||||
{
|
{
|
||||||
@@ -23,66 +21,77 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
* The Peer class.
|
* The Peer class.
|
||||||
* Instance provides a convenient way of calling static methods on a class
|
* Instance provides a convenient way of calling static methods on a class
|
||||||
* that calling code may not be able to identify.
|
* that calling code may not be able to identify.
|
||||||
|
*
|
||||||
* @var LicenseManagerPeer
|
* @var LicenseManagerPeer
|
||||||
*/
|
*/
|
||||||
protected static $peer;
|
protected static $peer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_uid field.
|
* The value for the license_uid field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_uid;
|
protected $license_uid = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_user field.
|
* The value for the license_user field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_user = '0';
|
protected $license_user = '0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_start field.
|
* The value for the license_start field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $license_start = 0;
|
protected $license_start = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_end field.
|
* The value for the license_end field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $license_end = 0;
|
protected $license_end = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_span field.
|
* The value for the license_span field.
|
||||||
|
*
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
protected $license_span = 0;
|
protected $license_span = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_status field.
|
* The value for the license_status field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_status = '';
|
protected $license_status = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_data field.
|
* The value for the license_data field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_data;
|
protected $license_data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_path field.
|
* The value for the license_path field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_path = '0';
|
protected $license_path = '0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_workspace field.
|
* The value for the license_workspace field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_workspace = '0';
|
protected $license_workspace = '0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the license_type field.
|
* The value for the license_type field.
|
||||||
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $license_type = '0';
|
protected $license_type = '0';
|
||||||
@@ -90,6 +99,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInSave = false;
|
protected $alreadyInSave = false;
|
||||||
@@ -97,6 +107,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
/**
|
/**
|
||||||
* Flag to prevent endless validation loop, if this object is referenced
|
* Flag to prevent endless validation loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
|
*
|
||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
protected $alreadyInValidation = false;
|
protected $alreadyInValidation = false;
|
||||||
@@ -108,7 +119,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseUid ()
|
public function getLicenseUid ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_uid;
|
return $this->license_uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,7 +129,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseUser ()
|
public function getLicenseUser ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_user;
|
return $this->license_user;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +139,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseStart ()
|
public function getLicenseStart ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_start;
|
return $this->license_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +149,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseEnd ()
|
public function getLicenseEnd ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_end;
|
return $this->license_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,7 +159,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseSpan ()
|
public function getLicenseSpan ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_span;
|
return $this->license_span;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,7 +169,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseStatus ()
|
public function getLicenseStatus ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_status;
|
return $this->license_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,7 +179,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseData ()
|
public function getLicenseData ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_data;
|
return $this->license_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,7 +189,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicensePath ()
|
public function getLicensePath ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_path;
|
return $this->license_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,7 +199,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseWorkspace ()
|
public function getLicenseWorkspace ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_workspace;
|
return $this->license_workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -207,7 +209,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function getLicenseType ()
|
public function getLicenseType ()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->license_type;
|
return $this->license_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,18 +220,16 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseUid ($v)
|
public function setLicenseUid ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->license_uid !== $v) {
|
if ($this->license_uid !== $v || $v === '') {
|
||||||
$this->license_uid = $v;
|
$this->license_uid = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_UID;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_UID;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseUid()
|
} // setLicenseUid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -241,7 +240,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseUser ($v)
|
public function setLicenseUser ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -252,7 +250,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$this->license_user = $v;
|
$this->license_user = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_USER;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_USER;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseUser()
|
} // setLicenseUser()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -263,18 +260,15 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseStart ($v)
|
public function setLicenseStart ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is integer,
|
||||||
// we will cast the input value to an int (if it is not).
|
// we will cast the input value to an int (if it is not).
|
||||||
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
||||||
$v = (int) $v;
|
$v = (int) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->license_start !== $v || $v === 0) {
|
if ($this->license_start !== $v || $v === 0) {
|
||||||
$this->license_start = $v;
|
$this->license_start = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_START;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_START;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseStart()
|
} // setLicenseStart()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -285,7 +279,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseEnd ($v)
|
public function setLicenseEnd ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is integer,
|
||||||
// we will cast the input value to an int (if it is not).
|
// we will cast the input value to an int (if it is not).
|
||||||
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
||||||
@@ -307,7 +300,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseSpan ($v)
|
public function setLicenseSpan ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is integer,
|
// Since the native PHP type for this column is integer,
|
||||||
// we will cast the input value to an int (if it is not).
|
// we will cast the input value to an int (if it is not).
|
||||||
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
if ($v !== null && ! is_int( $v ) && is_numeric( $v )) {
|
||||||
@@ -318,7 +310,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$this->license_span = $v;
|
$this->license_span = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_SPAN;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_SPAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseSpan()
|
} // setLicenseSpan()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -329,7 +320,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseStatus ($v)
|
public function setLicenseStatus ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -340,7 +330,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$this->license_status = $v;
|
$this->license_status = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_STATUS;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseStatus()
|
} // setLicenseStatus()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -351,7 +340,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseData ($v)
|
public function setLicenseData ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -373,18 +361,15 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicensePath ($v)
|
public function setLicensePath ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
$v = (string) $v;
|
$v = (string) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->license_path !== $v || $v === '0') {
|
if ($this->license_path !== $v || $v === '0') {
|
||||||
$this->license_path = $v;
|
$this->license_path = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_PATH;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_PATH;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicensePath()
|
} // setLicensePath()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -395,7 +380,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
public function setLicenseWorkspace ($v)
|
public function setLicenseWorkspace ($v)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Since the native PHP type for this column is string,
|
// Since the native PHP type for this column is string,
|
||||||
// we will cast the input to a string (if it is not).
|
// we will cast the input to a string (if it is not).
|
||||||
if ($v !== null && ! is_string( $v )) {
|
if ($v !== null && ! is_string( $v )) {
|
||||||
@@ -406,7 +390,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$this->license_workspace = $v;
|
$this->license_workspace = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_WORKSPACE;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_WORKSPACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseWorkspace()
|
} // setLicenseWorkspace()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -428,7 +411,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$this->license_type = $v;
|
$this->license_type = $v;
|
||||||
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_TYPE;
|
$this->modifiedColumns[] = LicenseManagerPeer::LICENSE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // setLicenseType()
|
} // setLicenseType()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -511,12 +493,13 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the object in the database. If the object is new,
|
* Stores the object in the database.
|
||||||
|
* If the object is new,
|
||||||
* it inserts it; otherwise an update is performed. This method
|
* it inserts it; otherwise an update is performed. This method
|
||||||
* wraps the doSave() worker method in a transaction.
|
* wraps the doSave() worker method in a transaction.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see doSave()
|
* @see doSave()
|
||||||
*/
|
*/
|
||||||
@@ -548,7 +531,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
* All related objects are also updated in this method.
|
* All related objects are also updated in this method.
|
||||||
*
|
*
|
||||||
* @param Connection $con
|
* @param Connection $con
|
||||||
* @return int The number of rows affected by this insert/update and any referring
|
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
|
||||||
* @throws PropelException
|
* @throws PropelException
|
||||||
* @see save()
|
* @see save()
|
||||||
*/
|
*/
|
||||||
@@ -558,7 +541,6 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
if (! $this->alreadyInSave) {
|
if (! $this->alreadyInSave) {
|
||||||
$this->alreadyInSave = true;
|
$this->alreadyInSave = true;
|
||||||
|
|
||||||
|
|
||||||
// If this object has been modified, then save it to the database.
|
// If this object has been modified, then save it to the database.
|
||||||
if ($this->isModified()) {
|
if ($this->isModified()) {
|
||||||
if ($this->isNew()) {
|
if ($this->isNew()) {
|
||||||
@@ -566,14 +548,12 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
|
||||||
// should always be true here (even though technically
|
// should always be true here (even though technically
|
||||||
// BasePeer::doInsert() can insert multiple rows).
|
// BasePeer::doInsert() can insert multiple rows).
|
||||||
|
|
||||||
$this->setNew( false );
|
$this->setNew( false );
|
||||||
} else {
|
} else {
|
||||||
$affectedRows += LicenseManagerPeer::doUpdate( $this, $con );
|
$affectedRows += LicenseManagerPeer::doUpdate( $this, $con );
|
||||||
}
|
}
|
||||||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->alreadyInSave = false;
|
$this->alreadyInSave = false;
|
||||||
}
|
}
|
||||||
return $affectedRows;
|
return $affectedRows;
|
||||||
@@ -581,6 +561,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Array of ValidationFailed objects.
|
* Array of ValidationFailed objects.
|
||||||
|
*
|
||||||
* @var array ValidationFailed[]
|
* @var array ValidationFailed[]
|
||||||
*/
|
*/
|
||||||
protected $validationFailures = array ();
|
protected $validationFailures = array ();
|
||||||
@@ -628,8 +609,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
* an aggreagated array of ValidationFailed objects will be returned.
|
* an aggreagated array of ValidationFailed objects will be returned.
|
||||||
*
|
*
|
||||||
* @param array $columns Array of column names to validate.
|
* @param array $columns Array of column names to validate.
|
||||||
* @return mixed <code>true</code> if all validations pass;
|
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
|
||||||
array of <code>ValidationFailed</code> objects otherwise.
|
|
||||||
*/
|
*/
|
||||||
protected function doValidate ($columns = null)
|
protected function doValidate ($columns = null)
|
||||||
{
|
{
|
||||||
@@ -639,13 +619,10 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$failureMap = array ();
|
$failureMap = array ();
|
||||||
|
|
||||||
|
|
||||||
if (($retval = LicenseManagerPeer::doValidate( $this, $columns )) !== true) {
|
if (($retval = LicenseManagerPeer::doValidate( $this, $columns )) !== true) {
|
||||||
$failureMap = array_merge( $failureMap, $retval );
|
$failureMap = array_merge( $failureMap, $retval );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->alreadyInValidation = false;
|
$this->alreadyInValidation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -710,7 +687,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
} // switch()
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -736,7 +713,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
$keys[6] => $this->getLicenseData(),
|
$keys[6] => $this->getLicenseData(),
|
||||||
$keys[7] => $this->getLicensePath(),
|
$keys[7] => $this->getLicensePath(),
|
||||||
$keys[8] => $this->getLicenseWorkspace(),
|
$keys[8] => $this->getLicenseWorkspace(),
|
||||||
$keys[9] => $this->getLicenseType(),
|
$keys[9] => $this->getLicenseType()
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -824,43 +801,33 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
if (array_key_exists( $keys[0], $arr )) {
|
if (array_key_exists( $keys[0], $arr )) {
|
||||||
$this->setLicenseUid( $arr[$keys[0]] );
|
$this->setLicenseUid( $arr[$keys[0]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[1], $arr )) {
|
if (array_key_exists( $keys[1], $arr )) {
|
||||||
$this->setLicenseUser( $arr[$keys[1]] );
|
$this->setLicenseUser( $arr[$keys[1]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[2], $arr )) {
|
if (array_key_exists( $keys[2], $arr )) {
|
||||||
$this->setLicenseStart( $arr[$keys[2]] );
|
$this->setLicenseStart( $arr[$keys[2]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[3], $arr )) {
|
if (array_key_exists( $keys[3], $arr )) {
|
||||||
$this->setLicenseEnd( $arr[$keys[3]] );
|
$this->setLicenseEnd( $arr[$keys[3]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[4], $arr )) {
|
if (array_key_exists( $keys[4], $arr )) {
|
||||||
$this->setLicenseSpan( $arr[$keys[4]] );
|
$this->setLicenseSpan( $arr[$keys[4]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[5], $arr )) {
|
if (array_key_exists( $keys[5], $arr )) {
|
||||||
$this->setLicenseStatus( $arr[$keys[5]] );
|
$this->setLicenseStatus( $arr[$keys[5]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[6], $arr )) {
|
if (array_key_exists( $keys[6], $arr )) {
|
||||||
$this->setLicenseData( $arr[$keys[6]] );
|
$this->setLicenseData( $arr[$keys[6]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[7], $arr )) {
|
if (array_key_exists( $keys[7], $arr )) {
|
||||||
$this->setLicensePath( $arr[$keys[7]] );
|
$this->setLicensePath( $arr[$keys[7]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[8], $arr )) {
|
if (array_key_exists( $keys[8], $arr )) {
|
||||||
$this->setLicenseWorkspace( $arr[$keys[8]] );
|
$this->setLicenseWorkspace( $arr[$keys[8]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists( $keys[9], $arr )) {
|
if (array_key_exists( $keys[9], $arr )) {
|
||||||
$this->setLicenseType( $arr[$keys[9]] );
|
$this->setLicenseType( $arr[$keys[9]] );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -875,44 +842,34 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_UID )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_UID )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_UID, $this->license_uid );
|
$criteria->add( LicenseManagerPeer::LICENSE_UID, $this->license_uid );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_USER )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_USER )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_USER, $this->license_user );
|
$criteria->add( LicenseManagerPeer::LICENSE_USER, $this->license_user );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_START )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_START )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_START, $this->license_start );
|
$criteria->add( LicenseManagerPeer::LICENSE_START, $this->license_start );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_END )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_END )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_END, $this->license_end );
|
$criteria->add( LicenseManagerPeer::LICENSE_END, $this->license_end );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_SPAN )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_SPAN )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_SPAN, $this->license_span );
|
$criteria->add( LicenseManagerPeer::LICENSE_SPAN, $this->license_span );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_STATUS )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_STATUS )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_STATUS, $this->license_status );
|
$criteria->add( LicenseManagerPeer::LICENSE_STATUS, $this->license_status );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_DATA )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_DATA )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_DATA, $this->license_data );
|
$criteria->add( LicenseManagerPeer::LICENSE_DATA, $this->license_data );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_PATH )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_PATH )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_PATH, $this->license_path );
|
$criteria->add( LicenseManagerPeer::LICENSE_PATH, $this->license_path );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_WORKSPACE )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_WORKSPACE )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_WORKSPACE, $this->license_workspace );
|
$criteria->add( LicenseManagerPeer::LICENSE_WORKSPACE, $this->license_workspace );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_TYPE )) {
|
if ($this->isColumnModified( LicenseManagerPeer::LICENSE_TYPE )) {
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_TYPE, $this->license_type );
|
$criteria->add( LicenseManagerPeer::LICENSE_TYPE, $this->license_type );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -935,6 +892,7 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the primary key for this object (row).
|
* Returns the primary key for this object (row).
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getPrimaryKey ()
|
public function getPrimaryKey ()
|
||||||
@@ -984,10 +942,9 @@ abstract class BaseLicenseManager extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setLicenseType( $this->license_type );
|
$copyObj->setLicenseType( $this->license_type );
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew( true );
|
$copyObj->setNew( true );
|
||||||
|
|
||||||
$copyObj->setLicenseUid(NULL); // this is a pkey column, so set to default value
|
$copyObj->setLicenseUid( '' ); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,61 +10,91 @@ include_once 'classes/model/LicenseManager.php';
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @package workflow.classes.model.om
|
* @package classes.model.om
|
||||||
*/
|
*/
|
||||||
abstract class BaseLicenseManagerPeer
|
abstract class BaseLicenseManagerPeer
|
||||||
{
|
{
|
||||||
|
|
||||||
/** the default database name for this class */
|
/**
|
||||||
|
* the default database name for this class
|
||||||
|
*/
|
||||||
const DATABASE_NAME = 'workflow';
|
const DATABASE_NAME = 'workflow';
|
||||||
|
|
||||||
/** the table name for this class */
|
/**
|
||||||
|
* the table name for this class
|
||||||
|
*/
|
||||||
const TABLE_NAME = 'LICENSE_MANAGER';
|
const TABLE_NAME = 'LICENSE_MANAGER';
|
||||||
|
|
||||||
/** A class that can be returned by this peer. */
|
/**
|
||||||
|
* A class that can be returned by this peer.
|
||||||
|
*/
|
||||||
const CLASS_DEFAULT = 'classes.model.LicenseManager';
|
const CLASS_DEFAULT = 'classes.model.LicenseManager';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/**
|
||||||
|
* The total number of columns.
|
||||||
|
*/
|
||||||
const NUM_COLUMNS = 10;
|
const NUM_COLUMNS = 10;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/**
|
||||||
|
* The number of lazy-loaded columns.
|
||||||
|
*/
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
/** the column name for the LICENSE_UID field */
|
* the column name for the LICENSE_UID field
|
||||||
|
*/
|
||||||
const LICENSE_UID = 'LICENSE_MANAGER.LICENSE_UID';
|
const LICENSE_UID = 'LICENSE_MANAGER.LICENSE_UID';
|
||||||
|
|
||||||
/** the column name for the LICENSE_USER field */
|
/**
|
||||||
|
* the column name for the LICENSE_USER field
|
||||||
|
*/
|
||||||
const LICENSE_USER = 'LICENSE_MANAGER.LICENSE_USER';
|
const LICENSE_USER = 'LICENSE_MANAGER.LICENSE_USER';
|
||||||
|
|
||||||
/** the column name for the LICENSE_START field */
|
/**
|
||||||
|
* the column name for the LICENSE_START field
|
||||||
|
*/
|
||||||
const LICENSE_START = 'LICENSE_MANAGER.LICENSE_START';
|
const LICENSE_START = 'LICENSE_MANAGER.LICENSE_START';
|
||||||
|
|
||||||
/** the column name for the LICENSE_END field */
|
/**
|
||||||
|
* the column name for the LICENSE_END field
|
||||||
|
*/
|
||||||
const LICENSE_END = 'LICENSE_MANAGER.LICENSE_END';
|
const LICENSE_END = 'LICENSE_MANAGER.LICENSE_END';
|
||||||
|
|
||||||
/** the column name for the LICENSE_SPAN field */
|
/**
|
||||||
|
* the column name for the LICENSE_SPAN field
|
||||||
|
*/
|
||||||
const LICENSE_SPAN = 'LICENSE_MANAGER.LICENSE_SPAN';
|
const LICENSE_SPAN = 'LICENSE_MANAGER.LICENSE_SPAN';
|
||||||
|
|
||||||
/** the column name for the LICENSE_STATUS field */
|
/**
|
||||||
|
* the column name for the LICENSE_STATUS field
|
||||||
|
*/
|
||||||
const LICENSE_STATUS = 'LICENSE_MANAGER.LICENSE_STATUS';
|
const LICENSE_STATUS = 'LICENSE_MANAGER.LICENSE_STATUS';
|
||||||
|
|
||||||
/** the column name for the LICENSE_DATA field */
|
/**
|
||||||
|
* the column name for the LICENSE_DATA field
|
||||||
|
*/
|
||||||
const LICENSE_DATA = 'LICENSE_MANAGER.LICENSE_DATA';
|
const LICENSE_DATA = 'LICENSE_MANAGER.LICENSE_DATA';
|
||||||
|
|
||||||
/** the column name for the LICENSE_PATH field */
|
/**
|
||||||
|
* the column name for the LICENSE_PATH field
|
||||||
|
*/
|
||||||
const LICENSE_PATH = 'LICENSE_MANAGER.LICENSE_PATH';
|
const LICENSE_PATH = 'LICENSE_MANAGER.LICENSE_PATH';
|
||||||
|
|
||||||
/** the column name for the LICENSE_WORKSPACE field */
|
/**
|
||||||
|
* the column name for the LICENSE_WORKSPACE field
|
||||||
|
*/
|
||||||
const LICENSE_WORKSPACE = 'LICENSE_MANAGER.LICENSE_WORKSPACE';
|
const LICENSE_WORKSPACE = 'LICENSE_MANAGER.LICENSE_WORKSPACE';
|
||||||
|
|
||||||
/** the column name for the LICENSE_TYPE field */
|
/**
|
||||||
|
* the column name for the LICENSE_TYPE field
|
||||||
|
*/
|
||||||
const LICENSE_TYPE = 'LICENSE_MANAGER.LICENSE_TYPE';
|
const LICENSE_TYPE = 'LICENSE_MANAGER.LICENSE_TYPE';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/**
|
||||||
|
* The PHP to DB Name Mapping
|
||||||
|
*/
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* holds an array of fieldnames
|
* holds an array of fieldnames
|
||||||
*
|
*
|
||||||
@@ -72,10 +102,10 @@ abstract class BaseLicenseManagerPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid', 'LicenseUser', 'LicenseStart', 'LicenseEnd', 'LicenseSpan', 'LicenseStatus', 'LicenseData', 'LicensePath', 'LicenseWorkspace', 'LicenseType', ),
|
BasePeer::TYPE_PHPNAME => array ('LicenseUid','LicenseUser','LicenseStart','LicenseEnd','LicenseSpan','LicenseStatus','LicenseData','LicensePath','LicenseWorkspace','LicenseType'),
|
||||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID, LicenseManagerPeer::LICENSE_USER, LicenseManagerPeer::LICENSE_START, LicenseManagerPeer::LICENSE_END, LicenseManagerPeer::LICENSE_SPAN, LicenseManagerPeer::LICENSE_STATUS, LicenseManagerPeer::LICENSE_DATA, LicenseManagerPeer::LICENSE_PATH, LicenseManagerPeer::LICENSE_WORKSPACE, LicenseManagerPeer::LICENSE_TYPE, ),
|
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID,LicenseManagerPeer::LICENSE_USER,LicenseManagerPeer::LICENSE_START,LicenseManagerPeer::LICENSE_END,LicenseManagerPeer::LICENSE_SPAN,LicenseManagerPeer::LICENSE_STATUS,LicenseManagerPeer::LICENSE_DATA,LicenseManagerPeer::LICENSE_PATH,LicenseManagerPeer::LICENSE_WORKSPACE,LicenseManagerPeer::LICENSE_TYPE),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID', 'LICENSE_USER', 'LICENSE_START', 'LICENSE_END', 'LICENSE_SPAN', 'LICENSE_STATUS', 'LICENSE_DATA', 'LICENSE_PATH', 'LICENSE_WORKSPACE', 'LICENSE_TYPE', ),
|
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID','LICENSE_USER','LICENSE_START','LICENSE_END','LICENSE_SPAN','LICENSE_STATUS','LICENSE_DATA','LICENSE_PATH','LICENSE_WORKSPACE','LICENSE_TYPE'),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -85,13 +115,14 @@ abstract class BaseLicenseManagerPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('LicenseUid' => 0, 'LicenseUser' => 1, 'LicenseStart' => 2, 'LicenseEnd' => 3, 'LicenseSpan' => 4, 'LicenseStatus' => 5, 'LicenseData' => 6, 'LicensePath' => 7, 'LicenseWorkspace' => 8, 'LicenseType' => 9, ),
|
BasePeer::TYPE_PHPNAME => array ('LicenseUid' => 0,'LicenseUser' => 1,'LicenseStart' => 2,'LicenseEnd' => 3,'LicenseSpan' => 4,'LicenseStatus' => 5,'LicenseData' => 6,'LicensePath' => 7,'LicenseWorkspace' => 8,'LicenseType' => 9),
|
||||||
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID => 0, LicenseManagerPeer::LICENSE_USER => 1, LicenseManagerPeer::LICENSE_START => 2, LicenseManagerPeer::LICENSE_END => 3, LicenseManagerPeer::LICENSE_SPAN => 4, LicenseManagerPeer::LICENSE_STATUS => 5, LicenseManagerPeer::LICENSE_DATA => 6, LicenseManagerPeer::LICENSE_PATH => 7, LicenseManagerPeer::LICENSE_WORKSPACE => 8, LicenseManagerPeer::LICENSE_TYPE => 9, ),
|
BasePeer::TYPE_COLNAME => array (LicenseManagerPeer::LICENSE_UID => 0,LicenseManagerPeer::LICENSE_USER => 1,LicenseManagerPeer::LICENSE_START => 2,LicenseManagerPeer::LICENSE_END => 3,LicenseManagerPeer::LICENSE_SPAN => 4,LicenseManagerPeer::LICENSE_STATUS => 5,LicenseManagerPeer::LICENSE_DATA => 6,LicenseManagerPeer::LICENSE_PATH => 7,LicenseManagerPeer::LICENSE_WORKSPACE => 8,LicenseManagerPeer::LICENSE_TYPE => 9),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID' => 0, 'LICENSE_USER' => 1, 'LICENSE_START' => 2, 'LICENSE_END' => 3, 'LICENSE_SPAN' => 4, 'LICENSE_STATUS' => 5, 'LICENSE_DATA' => 6, 'LICENSE_PATH' => 7, 'LICENSE_WORKSPACE' => 8, 'LICENSE_TYPE' => 9, ),
|
BasePeer::TYPE_FIELDNAME => array ('LICENSE_UID' => 0,'LICENSE_USER' => 1,'LICENSE_START' => 2,'LICENSE_END' => 3,'LICENSE_SPAN' => 4,'LICENSE_STATUS' => 5,'LICENSE_DATA' => 6,'LICENSE_PATH' => 7,'LICENSE_WORKSPACE' => 8,'LICENSE_TYPE' => 9),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
BasePeer::TYPE_NUM => array (0,1,2,3,4,5,6,7,8,9)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @return MapBuilder the map builder for this peer
|
* @return MapBuilder the map builder for this peer
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -101,6 +132,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
include_once 'classes/model/map/LicenseManagerMapBuilder.php';
|
include_once 'classes/model/map/LicenseManagerMapBuilder.php';
|
||||||
return BasePeer::getMapBuilder( 'classes.model.map.LicenseManagerMapBuilder' );
|
return BasePeer::getMapBuilder( 'classes.model.map.LicenseManagerMapBuilder' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a map (hash) of PHP names to DB column names.
|
* Gets a map (hash) of PHP names to DB column names.
|
||||||
*
|
*
|
||||||
@@ -122,6 +154,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
}
|
}
|
||||||
return self::$phpNameMap;
|
return self::$phpNameMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translates a fieldname to another type
|
* Translates a fieldname to another type
|
||||||
*
|
*
|
||||||
@@ -166,6 +199,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||||
* </code>
|
* </code>
|
||||||
|
*
|
||||||
* @param string $alias The alias for the current table.
|
* @param string $alias The alias for the current table.
|
||||||
* @param string $column The column name for current table. (i.e. LicenseManagerPeer::COLUMN_NAME).
|
* @param string $column The column name for current table. (i.e. LicenseManagerPeer::COLUMN_NAME).
|
||||||
* @return string
|
* @return string
|
||||||
@@ -248,6 +282,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to select one object from the DB.
|
* Method to select one object from the DB.
|
||||||
*
|
*
|
||||||
@@ -267,6 +302,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to do selects.
|
* Method to do selects.
|
||||||
*
|
*
|
||||||
@@ -280,6 +316,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
{
|
{
|
||||||
return LicenseManagerPeer::populateObjects( LicenseManagerPeer::doSelectRS( $criteria, $con ) );
|
return LicenseManagerPeer::populateObjects( LicenseManagerPeer::doSelectRS( $criteria, $con ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the Criteria object and uses the parent doSelect()
|
* Prepares the Criteria object and uses the parent doSelect()
|
||||||
* method to get a ResultSet.
|
* method to get a ResultSet.
|
||||||
@@ -312,6 +349,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
// rows indexed numerically.
|
// rows indexed numerically.
|
||||||
return BasePeer::doSelect( $criteria, $con );
|
return BasePeer::doSelect( $criteria, $con );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The returned array will contain objects of the default type or
|
* The returned array will contain objects of the default type or
|
||||||
* objects that inherit from the default.
|
* objects that inherit from the default.
|
||||||
@@ -328,17 +366,17 @@ abstract class BaseLicenseManagerPeer
|
|||||||
$cls = Propel::import( $cls );
|
$cls = Propel::import( $cls );
|
||||||
// populate the object(s)
|
// populate the object(s)
|
||||||
while ($rs->next()) {
|
while ($rs->next()) {
|
||||||
|
|
||||||
$obj = new $cls();
|
$obj = new $cls();
|
||||||
$obj->hydrate( $rs );
|
$obj->hydrate( $rs );
|
||||||
$results[] = $obj;
|
$results[] = $obj;
|
||||||
|
|
||||||
}
|
}
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the TableMap related to this peer.
|
* Returns the TableMap related to this peer.
|
||||||
* This method is not needed for general use but a specific application could have a need.
|
* This method is not needed for general use but a specific application could have a need.
|
||||||
|
*
|
||||||
* @return TableMap
|
* @return TableMap
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -383,7 +421,6 @@ abstract class BaseLicenseManagerPeer
|
|||||||
$criteria = $values->buildCriteria(); // build Criteria from LicenseManager object
|
$criteria = $values->buildCriteria(); // build Criteria from LicenseManager object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set the correct dbName
|
// Set the correct dbName
|
||||||
$criteria->setDbName( self::DATABASE_NAME );
|
$criteria->setDbName( self::DATABASE_NAME );
|
||||||
|
|
||||||
@@ -404,8 +441,8 @@ abstract class BaseLicenseManagerPeer
|
|||||||
/**
|
/**
|
||||||
* Method perform an UPDATE on the database, given a LicenseManager or Criteria object.
|
* Method perform an UPDATE on the database, given a LicenseManager or Criteria object.
|
||||||
*
|
*
|
||||||
* @param mixed $values Criteria or LicenseManager object containing data create the UPDATE statement.
|
* @param mixed $values Criteria or LicenseManager object containing data that is used to create the UPDATE statement.
|
||||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
* @param Connection $con The connection to use (specify Connection object to exert more control over transactions).
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver).
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -420,11 +457,11 @@ abstract class BaseLicenseManagerPeer
|
|||||||
|
|
||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
|
|
||||||
$comparison = $criteria->getComparison( LicenseManagerPeer::LICENSE_UID );
|
$comparison = $criteria->getComparison( LicenseManagerPeer::LICENSE_UID );
|
||||||
$selectCriteria->add( LicenseManagerPeer::LICENSE_UID, $criteria->remove( LicenseManagerPeer::LICENSE_UID ), $comparison );
|
$selectCriteria->add( LicenseManagerPeer::LICENSE_UID, $criteria->remove( LicenseManagerPeer::LICENSE_UID ), $comparison );
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// $values is LicenseManager object
|
||||||
$criteria = $values->buildCriteria(); // gets full criteria
|
$criteria = $values->buildCriteria(); // gets full criteria
|
||||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||||
}
|
}
|
||||||
@@ -465,8 +502,7 @@ abstract class BaseLicenseManagerPeer
|
|||||||
* @param mixed $values Criteria or LicenseManager object or primary key or array of primary keys
|
* @param mixed $values Criteria or LicenseManager object or primary key or array of primary keys
|
||||||
* which is used to create the DELETE statement
|
* which is used to create the DELETE statement
|
||||||
* @param Connection $con the connection to use
|
* @param Connection $con the connection to use
|
||||||
* @return int The number of affected rows (if supported by underlying database driver).
|
* @return int The number of affected rows (if supported by underlying database driver). This includes CASCADE-related rows
|
||||||
* This includes CASCADE-related rows
|
|
||||||
* if supported by native driver or if emulated using Propel.
|
* if supported by native driver or if emulated using Propel.
|
||||||
* @throws PropelException Any exceptions caught during processing will be
|
* @throws PropelException Any exceptions caught during processing will be
|
||||||
* rethrown wrapped into a PropelException.
|
* rethrown wrapped into a PropelException.
|
||||||
@@ -480,7 +516,6 @@ abstract class BaseLicenseManagerPeer
|
|||||||
if ($values instanceof Criteria) {
|
if ($values instanceof Criteria) {
|
||||||
$criteria = clone $values; // rename for clarity
|
$criteria = clone $values; // rename for clarity
|
||||||
} elseif ($values instanceof LicenseManager) {
|
} elseif ($values instanceof LicenseManager) {
|
||||||
|
|
||||||
$criteria = $values->buildPkeyCriteria();
|
$criteria = $values->buildPkeyCriteria();
|
||||||
} else {
|
} else {
|
||||||
// it must be the primary key
|
// it must be the primary key
|
||||||
@@ -528,7 +563,9 @@ abstract class BaseLicenseManagerPeer
|
|||||||
$tableMap = $dbMap->getTable( LicenseManagerPeer::TABLE_NAME );
|
$tableMap = $dbMap->getTable( LicenseManagerPeer::TABLE_NAME );
|
||||||
|
|
||||||
if (! is_array( $cols )) {
|
if (! is_array( $cols )) {
|
||||||
$cols = array($cols);
|
$cols = array (
|
||||||
|
$cols
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($cols as $colName) {
|
foreach ($cols as $colName) {
|
||||||
@@ -561,7 +598,6 @@ abstract class BaseLicenseManagerPeer
|
|||||||
|
|
||||||
$criteria->add( LicenseManagerPeer::LICENSE_UID, $pk );
|
$criteria->add( LicenseManagerPeer::LICENSE_UID, $pk );
|
||||||
|
|
||||||
|
|
||||||
$v = LicenseManagerPeer::doSelect( $criteria, $con );
|
$v = LicenseManagerPeer::doSelect( $criteria, $con );
|
||||||
|
|
||||||
return ! empty( $v ) > 0 ? $v[0] : null;
|
return ! empty( $v ) > 0 ? $v[0] : null;
|
||||||
@@ -593,7 +629,6 @@ abstract class BaseLicenseManagerPeer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// static code to register the map builder for this Peer with the main Propel class
|
// static code to register the map builder for this Peer with the main Propel class
|
||||||
if (Propel::isInit()) {
|
if (Propel::isInit()) {
|
||||||
// the MapBuilder classes register themselves with Propel during initialization
|
// the MapBuilder classes register themselves with Propel during initialization
|
||||||
|
|||||||
@@ -1784,7 +1784,7 @@ abstract class BaseListParticipatedLast extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setUsrUid(''); // this is a pkey column, so set to default value
|
$copyObj->setUsrUid(''); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
$copyObj->setDelIndex(''); // this is a pkey column, so set to default value
|
$copyObj->setDelIndex('0'); // this is a pkey column, so set to default value
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user