/package/app/app/alpha/lib/model/om/BasePartner.php
PHP | 3481 lines | 1856 code | 469 blank | 1156 comment | 350 complexity | e4ee6eb1ede6c91f64fa76835d27570f MD5 | raw file
Possible License(s): AGPL-3.0, GPL-3.0, BSD-3-Clause, LGPL-2.1, GPL-2.0, LGPL-3.0, JSON, MPL-2.0-no-copyleft-exception, Apache-2.0
Large files files are truncated, but you can click here to view the full file
- <?php
- /**
- * Base class that represents a row from the 'partner' table.
- *
- *
- *
- * @package Core
- * @subpackage model.om
- */
- abstract class BasePartner extends BaseObject implements Persistent {
- /**
- * The Peer class.
- * Instance provides a convenient way of calling static methods on a class
- * that calling code may not be able to identify.
- * @var PartnerPeer
- */
- protected static $peer;
- /**
- * The value for the id field.
- * @var int
- */
- protected $id;
- /**
- * The value for the partner_name field.
- * @var string
- */
- protected $partner_name;
- /**
- * The value for the partner_alias field.
- * @var string
- */
- protected $partner_alias;
- /**
- * The value for the url1 field.
- * @var string
- */
- protected $url1;
- /**
- * The value for the url2 field.
- * @var string
- */
- protected $url2;
- /**
- * The value for the secret field.
- * @var string
- */
- protected $secret;
- /**
- * The value for the admin_secret field.
- * @var string
- */
- protected $admin_secret;
- /**
- * The value for the max_number_of_hits_per_day field.
- * Note: this column has a database default value of: -1
- * @var int
- */
- protected $max_number_of_hits_per_day;
- /**
- * The value for the appear_in_search field.
- * Note: this column has a database default value of: 2
- * @var int
- */
- protected $appear_in_search;
- /**
- * The value for the debug_level field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $debug_level;
- /**
- * The value for the invalid_login_count field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $invalid_login_count;
- /**
- * The value for the created_at field.
- * @var string
- */
- protected $created_at;
- /**
- * The value for the updated_at field.
- * @var string
- */
- protected $updated_at;
- /**
- * The value for the anonymous_kuser_id field.
- * @var int
- */
- protected $anonymous_kuser_id;
- /**
- * The value for the ks_max_expiry_in_seconds field.
- * Note: this column has a database default value of: 86400
- * @var int
- */
- protected $ks_max_expiry_in_seconds;
- /**
- * The value for the create_user_on_demand field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $create_user_on_demand;
- /**
- * The value for the prefix field.
- * @var string
- */
- protected $prefix;
- /**
- * The value for the admin_name field.
- * @var string
- */
- protected $admin_name;
- /**
- * The value for the admin_email field.
- * @var string
- */
- protected $admin_email;
- /**
- * The value for the description field.
- * @var string
- */
- protected $description;
- /**
- * The value for the commercial_use field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $commercial_use;
- /**
- * The value for the moderate_content field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $moderate_content;
- /**
- * The value for the notify field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $notify;
- /**
- * The value for the custom_data field.
- * @var string
- */
- protected $custom_data;
- /**
- * The value for the service_config_id field.
- * @var string
- */
- protected $service_config_id;
- /**
- * The value for the status field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $status;
- /**
- * The value for the content_categories field.
- * @var string
- */
- protected $content_categories;
- /**
- * The value for the type field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $type;
- /**
- * The value for the phone field.
- * @var string
- */
- protected $phone;
- /**
- * The value for the describe_yourself field.
- * @var string
- */
- protected $describe_yourself;
- /**
- * The value for the adult_content field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $adult_content;
- /**
- * The value for the partner_package field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $partner_package;
- /**
- * The value for the usage_percent field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $usage_percent;
- /**
- * The value for the storage_usage field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $storage_usage;
- /**
- * The value for the eighty_percent_warning field.
- * @var int
- */
- protected $eighty_percent_warning;
- /**
- * The value for the usage_limit_warning field.
- * @var int
- */
- protected $usage_limit_warning;
- /**
- * The value for the monitor_usage field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $monitor_usage;
- /**
- * The value for the priority_group_id field.
- * @var int
- */
- protected $priority_group_id;
- /**
- * The value for the partner_group_type field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $partner_group_type;
- /**
- * The value for the partner_parent_id field.
- * @var int
- */
- protected $partner_parent_id;
- /**
- * The value for the kmc_version field.
- * Note: this column has a database default value of: '1'
- * @var string
- */
- protected $kmc_version;
- /**
- * @var kuser
- */
- protected $akuser;
- /**
- * @var array adminKuser[] Collection to store aggregation of adminKuser objects.
- */
- protected $colladminKusers;
- /**
- * @var Criteria The criteria used to select the current contents of colladminKusers.
- */
- private $lastadminKuserCriteria = null;
- /**
- * Flag to prevent endless save loop, if this object is referenced
- * by another object which falls in this transaction.
- * @var boolean
- */
- protected $alreadyInSave = false;
- /**
- * Flag to prevent endless validation loop, if this object is referenced
- * by another object which falls in this transaction.
- * @var boolean
- */
- protected $alreadyInValidation = false;
- /**
- * Store columns old values before the changes
- * @var array
- */
- protected $oldColumnsValues = array();
-
- /**
- * @return array
- */
- public function getColumnsOldValues()
- {
- return $this->oldColumnsValues;
- }
- /**
- * Applies default values to this object.
- * This method should be called from the object's constructor (or
- * equivalent initialization method).
- * @see __construct()
- */
- public function applyDefaultValues()
- {
- $this->max_number_of_hits_per_day = -1;
- $this->appear_in_search = 2;
- $this->debug_level = 0;
- $this->invalid_login_count = 0;
- $this->ks_max_expiry_in_seconds = 86400;
- $this->create_user_on_demand = 1;
- $this->commercial_use = 0;
- $this->moderate_content = 0;
- $this->notify = 0;
- $this->status = 1;
- $this->type = 1;
- $this->adult_content = 0;
- $this->partner_package = 1;
- $this->usage_percent = 0;
- $this->storage_usage = 0;
- $this->monitor_usage = 1;
- $this->partner_group_type = 1;
- $this->kmc_version = '1';
- }
- /**
- * Initializes internal state of BasePartner object.
- * @see applyDefaults()
- */
- public function __construct()
- {
- parent::__construct();
- $this->applyDefaultValues();
- }
- /**
- * Get the [id] column value.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Get the [partner_name] column value.
- *
- * @return string
- */
- public function getPartnerName()
- {
- return $this->partner_name;
- }
- /**
- * Get the [partner_alias] column value.
- *
- * @return string
- */
- public function getPartnerAlias()
- {
- return $this->partner_alias;
- }
- /**
- * Get the [url1] column value.
- *
- * @return string
- */
- public function getUrl1()
- {
- return $this->url1;
- }
- /**
- * Get the [url2] column value.
- *
- * @return string
- */
- public function getUrl2()
- {
- return $this->url2;
- }
- /**
- * Get the [secret] column value.
- *
- * @return string
- */
- public function getSecret()
- {
- return $this->secret;
- }
- /**
- * Get the [admin_secret] column value.
- *
- * @return string
- */
- public function getAdminSecret()
- {
- return $this->admin_secret;
- }
- /**
- * Get the [max_number_of_hits_per_day] column value.
- *
- * @return int
- */
- public function getMaxNumberOfHitsPerDay()
- {
- return $this->max_number_of_hits_per_day;
- }
- /**
- * Get the [appear_in_search] column value.
- *
- * @return int
- */
- public function getAppearInSearch()
- {
- return $this->appear_in_search;
- }
- /**
- * Get the [debug_level] column value.
- *
- * @return int
- */
- public function getDebugLevel()
- {
- return $this->debug_level;
- }
- /**
- * Get the [invalid_login_count] column value.
- *
- * @return int
- */
- public function getInvalidLoginCount()
- {
- return $this->invalid_login_count;
- }
- /**
- * Get the [optionally formatted] temporal [created_at] column value.
- *
- * This accessor only only work with unix epoch dates. Consider enabling the propel.useDateTimeClass
- * option in order to avoid converstions to integers (which are limited in the dates they can express).
- *
- * @param string $format The date/time format string (either date()-style or strftime()-style).
- * If format is NULL, then the raw unix timestamp integer will be returned.
- * @return mixed Formatted date/time value as string or (integer) unix timestamp (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00
- * @throws PropelException - if unable to parse/validate the date/time value.
- */
- public function getCreatedAt($format = 'Y-m-d H:i:s')
- {
- if ($this->created_at === null) {
- return null;
- }
- if ($this->created_at === '0000-00-00 00:00:00') {
- // while technically this is not a default value of NULL,
- // this seems to be closest in meaning.
- return null;
- } else {
- try {
- $dt = new DateTime($this->created_at);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->created_at, true), $x);
- }
- }
- if ($format === null) {
- // We cast here to maintain BC in API; obviously we will lose data if we're dealing with pre-/post-epoch dates.
- return (int) $dt->format('U');
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [optionally formatted] temporal [updated_at] column value.
- *
- * This accessor only only work with unix epoch dates. Consider enabling the propel.useDateTimeClass
- * option in order to avoid converstions to integers (which are limited in the dates they can express).
- *
- * @param string $format The date/time format string (either date()-style or strftime()-style).
- * If format is NULL, then the raw unix timestamp integer will be returned.
- * @return mixed Formatted date/time value as string or (integer) unix timestamp (if format is NULL), NULL if column is NULL, and 0 if column value is 0000-00-00 00:00:00
- * @throws PropelException - if unable to parse/validate the date/time value.
- */
- public function getUpdatedAt($format = 'Y-m-d H:i:s')
- {
- if ($this->updated_at === null) {
- return null;
- }
- if ($this->updated_at === '0000-00-00 00:00:00') {
- // while technically this is not a default value of NULL,
- // this seems to be closest in meaning.
- return null;
- } else {
- try {
- $dt = new DateTime($this->updated_at);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->updated_at, true), $x);
- }
- }
- if ($format === null) {
- // We cast here to maintain BC in API; obviously we will lose data if we're dealing with pre-/post-epoch dates.
- return (int) $dt->format('U');
- } elseif (strpos($format, '%') !== false) {
- return strftime($format, $dt->format('U'));
- } else {
- return $dt->format($format);
- }
- }
- /**
- * Get the [anonymous_kuser_id] column value.
- *
- * @return int
- */
- public function getAnonymousKuserId()
- {
- return $this->anonymous_kuser_id;
- }
- /**
- * Get the [ks_max_expiry_in_seconds] column value.
- *
- * @return int
- */
- public function getKsMaxExpiryInSeconds()
- {
- return $this->ks_max_expiry_in_seconds;
- }
- /**
- * Get the [create_user_on_demand] column value.
- *
- * @return int
- */
- public function getCreateUserOnDemand()
- {
- return $this->create_user_on_demand;
- }
- /**
- * Get the [prefix] column value.
- *
- * @return string
- */
- public function getPrefix()
- {
- return $this->prefix;
- }
- /**
- * Get the [admin_name] column value.
- *
- * @return string
- */
- public function getAdminName()
- {
- return $this->admin_name;
- }
- /**
- * Get the [admin_email] column value.
- *
- * @return string
- */
- public function getAdminEmail()
- {
- return $this->admin_email;
- }
- /**
- * Get the [description] column value.
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Get the [commercial_use] column value.
- *
- * @return int
- */
- public function getCommercialUse()
- {
- return $this->commercial_use;
- }
- /**
- * Get the [moderate_content] column value.
- *
- * @return int
- */
- public function getModerateContent()
- {
- return $this->moderate_content;
- }
- /**
- * Get the [notify] column value.
- *
- * @return int
- */
- public function getNotify()
- {
- return $this->notify;
- }
- /**
- * Get the [custom_data] column value.
- *
- * @return string
- */
- public function getCustomData()
- {
- return $this->custom_data;
- }
- /**
- * Get the [service_config_id] column value.
- *
- * @return string
- */
- public function getServiceConfigId()
- {
- return $this->service_config_id;
- }
- /**
- * Get the [status] column value.
- *
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Get the [content_categories] column value.
- *
- * @return string
- */
- public function getContentCategories()
- {
- return $this->content_categories;
- }
- /**
- * Get the [type] column value.
- *
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Get the [phone] column value.
- *
- * @return string
- */
- public function getPhone()
- {
- return $this->phone;
- }
- /**
- * Get the [describe_yourself] column value.
- *
- * @return string
- */
- public function getDescribeYourself()
- {
- return $this->describe_yourself;
- }
- /**
- * Get the [adult_content] column value.
- *
- * @return int
- */
- public function getAdultContent()
- {
- return $this->adult_content;
- }
- /**
- * Get the [partner_package] column value.
- *
- * @return int
- */
- public function getPartnerPackage()
- {
- return $this->partner_package;
- }
- /**
- * Get the [usage_percent] column value.
- *
- * @return int
- */
- public function getUsagePercent()
- {
- return $this->usage_percent;
- }
- /**
- * Get the [storage_usage] column value.
- *
- * @return int
- */
- public function getStorageUsage()
- {
- return $this->storage_usage;
- }
- /**
- * Get the [eighty_percent_warning] column value.
- *
- * @return int
- */
- public function getEightyPercentWarning()
- {
- return $this->eighty_percent_warning;
- }
- /**
- * Get the [usage_limit_warning] column value.
- *
- * @return int
- */
- public function getUsageLimitWarning()
- {
- return $this->usage_limit_warning;
- }
- /**
- * Get the [monitor_usage] column value.
- *
- * @return int
- */
- public function getMonitorUsage()
- {
- return $this->monitor_usage;
- }
- /**
- * Get the [priority_group_id] column value.
- *
- * @return int
- */
- public function getPriorityGroupId()
- {
- return $this->priority_group_id;
- }
- /**
- * Get the [partner_group_type] column value.
- *
- * @return int
- */
- public function getPartnerGroupType()
- {
- return $this->partner_group_type;
- }
- /**
- * Get the [partner_parent_id] column value.
- *
- * @return int
- */
- public function getPartnerParentId()
- {
- return $this->partner_parent_id;
- }
- /**
- * Get the [kmc_version] column value.
- *
- * @return string
- */
- public function getKmcVersion()
- {
- return $this->kmc_version;
- }
- /**
- * Set the value of [id] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setId($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ID]))
- $this->oldColumnsValues[PartnerPeer::ID] = $this->id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->id !== $v) {
- $this->id = $v;
- $this->modifiedColumns[] = PartnerPeer::ID;
- }
- return $this;
- } // setId()
- /**
- * Set the value of [partner_name] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPartnerName($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PARTNER_NAME]))
- $this->oldColumnsValues[PartnerPeer::PARTNER_NAME] = $this->partner_name;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->partner_name !== $v) {
- $this->partner_name = $v;
- $this->modifiedColumns[] = PartnerPeer::PARTNER_NAME;
- }
- return $this;
- } // setPartnerName()
- /**
- * Set the value of [partner_alias] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPartnerAlias($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PARTNER_ALIAS]))
- $this->oldColumnsValues[PartnerPeer::PARTNER_ALIAS] = $this->partner_alias;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->partner_alias !== $v) {
- $this->partner_alias = $v;
- $this->modifiedColumns[] = PartnerPeer::PARTNER_ALIAS;
- }
- return $this;
- } // setPartnerAlias()
- /**
- * Set the value of [url1] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setUrl1($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::URL1]))
- $this->oldColumnsValues[PartnerPeer::URL1] = $this->url1;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->url1 !== $v) {
- $this->url1 = $v;
- $this->modifiedColumns[] = PartnerPeer::URL1;
- }
- return $this;
- } // setUrl1()
- /**
- * Set the value of [url2] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setUrl2($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::URL2]))
- $this->oldColumnsValues[PartnerPeer::URL2] = $this->url2;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->url2 !== $v) {
- $this->url2 = $v;
- $this->modifiedColumns[] = PartnerPeer::URL2;
- }
- return $this;
- } // setUrl2()
- /**
- * Set the value of [secret] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setSecret($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::SECRET]))
- $this->oldColumnsValues[PartnerPeer::SECRET] = $this->secret;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->secret !== $v) {
- $this->secret = $v;
- $this->modifiedColumns[] = PartnerPeer::SECRET;
- }
- return $this;
- } // setSecret()
- /**
- * Set the value of [admin_secret] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAdminSecret($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ADMIN_SECRET]))
- $this->oldColumnsValues[PartnerPeer::ADMIN_SECRET] = $this->admin_secret;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->admin_secret !== $v) {
- $this->admin_secret = $v;
- $this->modifiedColumns[] = PartnerPeer::ADMIN_SECRET;
- }
- return $this;
- } // setAdminSecret()
- /**
- * Set the value of [max_number_of_hits_per_day] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setMaxNumberOfHitsPerDay($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::MAX_NUMBER_OF_HITS_PER_DAY]))
- $this->oldColumnsValues[PartnerPeer::MAX_NUMBER_OF_HITS_PER_DAY] = $this->max_number_of_hits_per_day;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->max_number_of_hits_per_day !== $v || $this->isNew()) {
- $this->max_number_of_hits_per_day = $v;
- $this->modifiedColumns[] = PartnerPeer::MAX_NUMBER_OF_HITS_PER_DAY;
- }
- return $this;
- } // setMaxNumberOfHitsPerDay()
- /**
- * Set the value of [appear_in_search] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAppearInSearch($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::APPEAR_IN_SEARCH]))
- $this->oldColumnsValues[PartnerPeer::APPEAR_IN_SEARCH] = $this->appear_in_search;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->appear_in_search !== $v || $this->isNew()) {
- $this->appear_in_search = $v;
- $this->modifiedColumns[] = PartnerPeer::APPEAR_IN_SEARCH;
- }
- return $this;
- } // setAppearInSearch()
- /**
- * Set the value of [debug_level] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setDebugLevel($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::DEBUG_LEVEL]))
- $this->oldColumnsValues[PartnerPeer::DEBUG_LEVEL] = $this->debug_level;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->debug_level !== $v || $this->isNew()) {
- $this->debug_level = $v;
- $this->modifiedColumns[] = PartnerPeer::DEBUG_LEVEL;
- }
- return $this;
- } // setDebugLevel()
- /**
- * Set the value of [invalid_login_count] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setInvalidLoginCount($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::INVALID_LOGIN_COUNT]))
- $this->oldColumnsValues[PartnerPeer::INVALID_LOGIN_COUNT] = $this->invalid_login_count;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->invalid_login_count !== $v || $this->isNew()) {
- $this->invalid_login_count = $v;
- $this->modifiedColumns[] = PartnerPeer::INVALID_LOGIN_COUNT;
- }
- return $this;
- } // setInvalidLoginCount()
- /**
- * Sets the value of [created_at] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return Partner The current object (for fluent API support)
- */
- public function setCreatedAt($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->created_at !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->created_at !== null && $tmpDt = new DateTime($this->created_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->created_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = PartnerPeer::CREATED_AT;
- }
- } // if either are not null
- return $this;
- } // setCreatedAt()
- /**
- * Sets the value of [updated_at] column to a normalized version of the date/time value specified.
- *
- * @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
- * be treated as NULL for temporal objects.
- * @return Partner The current object (for fluent API support)
- */
- public function setUpdatedAt($v)
- {
- // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
- // -- which is unexpected, to say the least.
- if ($v === null || $v === '') {
- $dt = null;
- } elseif ($v instanceof DateTime) {
- $dt = $v;
- } else {
- // some string/numeric value passed; we normalize that so that we can
- // validate it.
- try {
- if (is_numeric($v)) { // if it's a unix timestamp
- $dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
- // We have to explicitly specify and then change the time zone because of a
- // DateTime bug: http://bugs.php.net/bug.php?id=43003
- $dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
- } else {
- $dt = new DateTime($v);
- }
- } catch (Exception $x) {
- throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
- }
- }
- if ( $this->updated_at !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->updated_at !== null && $tmpDt = new DateTime($this->updated_at)) ? $tmpDt->format('Y-m-d H:i:s') : null;
- $newNorm = ($dt !== null) ? $dt->format('Y-m-d H:i:s') : null;
- if ( ($currNorm !== $newNorm) // normalized values don't match
- )
- {
- $this->updated_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = PartnerPeer::UPDATED_AT;
- }
- } // if either are not null
- return $this;
- } // setUpdatedAt()
- /**
- * Set the value of [anonymous_kuser_id] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAnonymousKuserId($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ANONYMOUS_KUSER_ID]))
- $this->oldColumnsValues[PartnerPeer::ANONYMOUS_KUSER_ID] = $this->anonymous_kuser_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->anonymous_kuser_id !== $v) {
- $this->anonymous_kuser_id = $v;
- $this->modifiedColumns[] = PartnerPeer::ANONYMOUS_KUSER_ID;
- }
- if ($this->akuser !== null && $this->akuser->getId() !== $v) {
- $this->akuser = null;
- }
- return $this;
- } // setAnonymousKuserId()
- /**
- * Set the value of [ks_max_expiry_in_seconds] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setKsMaxExpiryInSeconds($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::KS_MAX_EXPIRY_IN_SECONDS]))
- $this->oldColumnsValues[PartnerPeer::KS_MAX_EXPIRY_IN_SECONDS] = $this->ks_max_expiry_in_seconds;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->ks_max_expiry_in_seconds !== $v || $this->isNew()) {
- $this->ks_max_expiry_in_seconds = $v;
- $this->modifiedColumns[] = PartnerPeer::KS_MAX_EXPIRY_IN_SECONDS;
- }
- return $this;
- } // setKsMaxExpiryInSeconds()
- /**
- * Set the value of [create_user_on_demand] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setCreateUserOnDemand($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::CREATE_USER_ON_DEMAND]))
- $this->oldColumnsValues[PartnerPeer::CREATE_USER_ON_DEMAND] = $this->create_user_on_demand;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->create_user_on_demand !== $v || $this->isNew()) {
- $this->create_user_on_demand = $v;
- $this->modifiedColumns[] = PartnerPeer::CREATE_USER_ON_DEMAND;
- }
- return $this;
- } // setCreateUserOnDemand()
- /**
- * Set the value of [prefix] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPrefix($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PREFIX]))
- $this->oldColumnsValues[PartnerPeer::PREFIX] = $this->prefix;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->prefix !== $v) {
- $this->prefix = $v;
- $this->modifiedColumns[] = PartnerPeer::PREFIX;
- }
- return $this;
- } // setPrefix()
- /**
- * Set the value of [admin_name] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAdminName($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ADMIN_NAME]))
- $this->oldColumnsValues[PartnerPeer::ADMIN_NAME] = $this->admin_name;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->admin_name !== $v) {
- $this->admin_name = $v;
- $this->modifiedColumns[] = PartnerPeer::ADMIN_NAME;
- }
- return $this;
- } // setAdminName()
- /**
- * Set the value of [admin_email] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAdminEmail($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ADMIN_EMAIL]))
- $this->oldColumnsValues[PartnerPeer::ADMIN_EMAIL] = $this->admin_email;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->admin_email !== $v) {
- $this->admin_email = $v;
- $this->modifiedColumns[] = PartnerPeer::ADMIN_EMAIL;
- }
- return $this;
- } // setAdminEmail()
- /**
- * Set the value of [description] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setDescription($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::DESCRIPTION]))
- $this->oldColumnsValues[PartnerPeer::DESCRIPTION] = $this->description;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->description !== $v) {
- $this->description = $v;
- $this->modifiedColumns[] = PartnerPeer::DESCRIPTION;
- }
- return $this;
- } // setDescription()
- /**
- * Set the value of [commercial_use] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setCommercialUse($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::COMMERCIAL_USE]))
- $this->oldColumnsValues[PartnerPeer::COMMERCIAL_USE] = $this->commercial_use;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->commercial_use !== $v || $this->isNew()) {
- $this->commercial_use = $v;
- $this->modifiedColumns[] = PartnerPeer::COMMERCIAL_USE;
- }
- return $this;
- } // setCommercialUse()
- /**
- * Set the value of [moderate_content] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setModerateContent($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::MODERATE_CONTENT]))
- $this->oldColumnsValues[PartnerPeer::MODERATE_CONTENT] = $this->moderate_content;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->moderate_content !== $v || $this->isNew()) {
- $this->moderate_content = $v;
- $this->modifiedColumns[] = PartnerPeer::MODERATE_CONTENT;
- }
- return $this;
- } // setModerateContent()
- /**
- * Set the value of [notify] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setNotify($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::NOTIFY]))
- $this->oldColumnsValues[PartnerPeer::NOTIFY] = $this->notify;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->notify !== $v || $this->isNew()) {
- $this->notify = $v;
- $this->modifiedColumns[] = PartnerPeer::NOTIFY;
- }
- return $this;
- } // setNotify()
- /**
- * Set the value of [custom_data] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setCustomData($v)
- {
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->custom_data !== $v) {
- $this->custom_data = $v;
- $this->modifiedColumns[] = PartnerPeer::CUSTOM_DATA;
- }
- return $this;
- } // setCustomData()
- /**
- * Set the value of [service_config_id] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setServiceConfigId($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::SERVICE_CONFIG_ID]))
- $this->oldColumnsValues[PartnerPeer::SERVICE_CONFIG_ID] = $this->service_config_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->service_config_id !== $v) {
- $this->service_config_id = $v;
- $this->modifiedColumns[] = PartnerPeer::SERVICE_CONFIG_ID;
- }
- return $this;
- } // setServiceConfigId()
- /**
- * Set the value of [status] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setStatus($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::STATUS]))
- $this->oldColumnsValues[PartnerPeer::STATUS] = $this->status;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->status !== $v || $this->isNew()) {
- $this->status = $v;
- $this->modifiedColumns[] = PartnerPeer::STATUS;
- }
- return $this;
- } // setStatus()
- /**
- * Set the value of [content_categories] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setContentCategories($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::CONTENT_CATEGORIES]))
- $this->oldColumnsValues[PartnerPeer::CONTENT_CATEGORIES] = $this->content_categories;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->content_categories !== $v) {
- $this->content_categories = $v;
- $this->modifiedColumns[] = PartnerPeer::CONTENT_CATEGORIES;
- }
- return $this;
- } // setContentCategories()
- /**
- * Set the value of [type] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setType($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::TYPE]))
- $this->oldColumnsValues[PartnerPeer::TYPE] = $this->type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->type !== $v || $this->isNew()) {
- $this->type = $v;
- $this->modifiedColumns[] = PartnerPeer::TYPE;
- }
- return $this;
- } // setType()
- /**
- * Set the value of [phone] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPhone($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PHONE]))
- $this->oldColumnsValues[PartnerPeer::PHONE] = $this->phone;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->phone !== $v) {
- $this->phone = $v;
- $this->modifiedColumns[] = PartnerPeer::PHONE;
- }
- return $this;
- } // setPhone()
- /**
- * Set the value of [describe_yourself] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setDescribeYourself($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::DESCRIBE_YOURSELF]))
- $this->oldColumnsValues[PartnerPeer::DESCRIBE_YOURSELF] = $this->describe_yourself;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->describe_yourself !== $v) {
- $this->describe_yourself = $v;
- $this->modifiedColumns[] = PartnerPeer::DESCRIBE_YOURSELF;
- }
- return $this;
- } // setDescribeYourself()
- /**
- * Set the value of [adult_content] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setAdultContent($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::ADULT_CONTENT]))
- $this->oldColumnsValues[PartnerPeer::ADULT_CONTENT] = $this->adult_content;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->adult_content !== $v || $this->isNew()) {
- $this->adult_content = $v;
- $this->modifiedColumns[] = PartnerPeer::ADULT_CONTENT;
- }
- return $this;
- } // setAdultContent()
- /**
- * Set the value of [partner_package] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPartnerPackage($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PARTNER_PACKAGE]))
- $this->oldColumnsValues[PartnerPeer::PARTNER_PACKAGE] = $this->partner_package;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->partner_package !== $v || $this->isNew()) {
- $this->partner_package = $v;
- $this->modifiedColumns[] = PartnerPeer::PARTNER_PACKAGE;
- }
- return $this;
- } // setPartnerPackage()
- /**
- * Set the value of [usage_percent] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setUsagePercent($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::USAGE_PERCENT]))
- $this->oldColumnsValues[PartnerPeer::USAGE_PERCENT] = $this->usage_percent;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->usage_percent !== $v || $this->isNew()) {
- $this->usage_percent = $v;
- $this->modifiedColumns[] = PartnerPeer::USAGE_PERCENT;
- }
- return $this;
- } // setUsagePercent()
- /**
- * Set the value of [storage_usage] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setStorageUsage($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::STORAGE_USAGE]))
- $this->oldColumnsValues[PartnerPeer::STORAGE_USAGE] = $this->storage_usage;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->storage_usage !== $v || $this->isNew()) {
- $this->storage_usage = $v;
- $this->modifiedColumns[] = PartnerPeer::STORAGE_USAGE;
- }
- return $this;
- } // setStorageUsage()
- /**
- * Set the value of [eighty_percent_warning] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setEightyPercentWarning($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::EIGHTY_PERCENT_WARNING]))
- $this->oldColumnsValues[PartnerPeer::EIGHTY_PERCENT_WARNING] = $this->eighty_percent_warning;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->eighty_percent_warning !== $v) {
- $this->eighty_percent_warning = $v;
- $this->modifiedColumns[] = PartnerPeer::EIGHTY_PERCENT_WARNING;
- }
- return $this;
- } // setEightyPercentWarning()
- /**
- * Set the value of [usage_limit_warning] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setUsageLimitWarning($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::USAGE_LIMIT_WARNING]))
- $this->oldColumnsValues[PartnerPeer::USAGE_LIMIT_WARNING] = $this->usage_limit_warning;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->usage_limit_warning !== $v) {
- $this->usage_limit_warning = $v;
- $this->modifiedColumns[] = PartnerPeer::USAGE_LIMIT_WARNING;
- }
- return $this;
- } // setUsageLimitWarning()
- /**
- * Set the value of [monitor_usage] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setMonitorUsage($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::MONITOR_USAGE]))
- $this->oldColumnsValues[PartnerPeer::MONITOR_USAGE] = $this->monitor_usage;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->monitor_usage !== $v || $this->isNew()) {
- $this->monitor_usage = $v;
- $this->modifiedColumns[] = PartnerPeer::MONITOR_USAGE;
- }
- return $this;
- } // setMonitorUsage()
- /**
- * Set the value of [priority_group_id] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPriorityGroupId($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PRIORITY_GROUP_ID]))
- $this->oldColumnsValues[PartnerPeer::PRIORITY_GROUP_ID] = $this->priority_group_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->priority_group_id !== $v) {
- $this->priority_group_id = $v;
- $this->modifiedColumns[] = PartnerPeer::PRIORITY_GROUP_ID;
- }
- return $this;
- } // setPriorityGroupId()
- /**
- * Set the value of [partner_group_type] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPartnerGroupType($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PARTNER_GROUP_TYPE]))
- $this->oldColumnsValues[PartnerPeer::PARTNER_GROUP_TYPE] = $this->partner_group_type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->partner_group_type !== $v || $this->isNew()) {
- $this->partner_group_type = $v;
- $this->modifiedColumns[] = PartnerPeer::PARTNER_GROUP_TYPE;
- }
- return $this;
- } // setPartnerGroupType()
- /**
- * Set the value of [partner_parent_id] column.
- *
- * @param int $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setPartnerParentId($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::PARTNER_PARENT_ID]))
- $this->oldColumnsValues[PartnerPeer::PARTNER_PARENT_ID] = $this->partner_parent_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->partner_parent_id !== $v) {
- $this->partner_parent_id = $v;
- $this->modifiedColumns[] = PartnerPeer::PARTNER_PARENT_ID;
- }
- return $this;
- } // setPartnerParentId()
- /**
- * Set the value of [kmc_version] column.
- *
- * @param string $v new value
- * @return Partner The current object (for fluent API support)
- */
- public function setKmcVersion($v)
- {
- if(!isset($this->oldColumnsValues[PartnerPeer::KMC_VERSION]))
- $this->oldColumnsValues[PartnerPeer::KMC_VERSION] = $this->kmc_version;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->kmc_version !== $v || $this->isNew()) {
- $this->kmc_version = $v;
- $this->modifiedColumns[] = PartnerPeer::KMC_VERSION;
- }
- return $this;
- } // setKmcVersion()
- /**
- * Indicates whether the columns in this object are only set to default values.
- *
- * This method can be used in conjunction with isModified() to indicate whether an object is both
- * modified _and_ has some values set which are non-default.
- *
- * @return boolean Whether the columns in this object are only been set with default values.
- */
- public function hasOnlyDefaultValues()
- {
- if ($this->max_number_of_hits_per_day !== -1) {
- return false;
- }
- if ($this->appear_in_search !== 2) {
- return false;
- }
- if ($this->debug_level !== 0) {
- return false;
- }
- if ($this->invalid_login_count !== 0) {
- return false;
- }
- if ($this->ks_max_expiry_in_seconds !== 86400) {
- return false;
- }
- if ($this->create_user_on_demand !== 1) {
- return false;
- }
- if ($this->commercial_use !== 0) {
- return false;
- }
- if ($this->moderate_content !== 0) {
- return false;
- }
- if ($this->notify !== 0) {
- return false;
- }
- if ($this->status !== 1) {
- return false;
- }
- if ($this->type !== 1) {
- return false;
- }
- if ($this->adult_content !== 0) {
- return false;
- }
- if ($this->partner_package !== 1) {
- return false;
- }
- if ($this->usage_percent !== 0) {
- return false;
- }
- if ($this->storage_usage !== 0) {
- return false;
- }
- if ($this->monitor_usage !== 1) {
- return false;
- }
- if ($this->partner_group_type !== 1) {
- return false;
- }
- if ($this->kmc_version !== '1') {
- return false;
- }
- // otherwise, everything was equal, so return TRUE
- return true;
- } // hasOnlyDefaultValues()
- /**
- * Hydrates (populates) the object variables with values from the database resultset.
- *
- * An offset (0-based "start column") is specified so that objects can be hydrated
- * with a subset of the columns in the resultset rows. This is needed, for example,
- * for results of JOIN queries where the resultset row includes columns from two or
- * more tables.
- *
- * @param array $row The row returned by PDOStatement->fetch(PDO::FETCH_NUM)
- * @param int $startcol 0-based offset column which indicates which restultset column to start with.
- * @param boolean $rehydrate Whether this object is being re-hydrated from the database.
- * @return int next starting column
- * @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
- */
- public function hydrate($row, $startcol = 0, $rehydrate = false)
- {
- try {
- $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
- $this->partner_name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
- $this->partner_alias = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
- $this->url1 = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
- $this->url2 = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
- $this->secret = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
- $this->admin_secret = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
- $this->max_number_of_hits_per_day = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
- $this->appear_in_search = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
- $this->debug_level = ($row[$startcol + 9] !== null) ? (int) $row[$startcol + 9] : null;
- $this->invalid_login_count = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null;
- $this->created_at = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
- $this->updated_at = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
- $this->anonymous_kuser_id = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null;
- $this->ks_max_expiry_in_seconds = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
- $this->create_user_on_demand = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
- $this->prefix = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null;
- $this->admin_name = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
- $this->admin_email = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
- $this->description = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
- $this->commercial_use = ($row[$startcol + 20] !== null) ? (int) $row[$startcol + 20] : null;
- $this->moderate_content = ($row[$startcol + 21] !== null) ? (int) $row[$startcol + 21] : null;
- $this->notify = ($row[$startcol + 22] !== null) ? (int) $row[$startcol + 22] : null;
- $this->custom_data = ($row[$startcol + 23] !== null) ? (string) $row[$startcol + 23] : null;
- $this->service_config_id = ($row[$startcol + 24] !== null) ? (string) $row[$startcol + 24] : null;
- $this->status = ($row[$startcol + 25] !== null) ? (int) $row[$startcol + 25] : null;
- $this->content_categories = ($row[$startcol + 26] !== null) ? (string) $row[$startcol + 26] : null;
- $this->type = ($row[$startcol + 27] !== null) ? (int) $row[$startcol + 27] : null;
- $this->phone = ($row[$startcol + 28] !== null) ? (string) $row[$startcol + 28] : null;
- $this->describe_yourself = ($row[$startcol + 29] !== null) ? (string) $row[$startcol + 29] : null;
- $this->adult_content = ($row[$startcol + 30] !== null) ? (int) $row[$startcol + 30] : null;
- $this->partner_package = ($row[$startcol + 31] !== null) ? (int) $row[$startcol + 31] : null;
- $this->usage_percent = ($row[$startcol + 32] !== null) ? (int) $row[$startcol + 32] : null;
- $this->storage_usage = ($row[$startcol + 33] !== null) ? (int) $row[$startcol + 33] : null;
- $this->eighty_percent_warning = ($row[$startcol + 34] !== null) ? (int) $row[$startcol + 34] : null;
- $this->usage_limit_warning = ($row[$startcol + 35] !== null) ? (int) $row[$startcol + 35] : null;
- $this->monitor_usage = ($row[$startcol + 36] !== null) ? (int) $row[$startcol + 36] : null;
- $this->priority_group_id = ($row[$startcol + 37] !== null) ? (int) $row[$startcol + 37] : null;
- $this->partner_group_type = ($row[$startcol + 38] !== null) ? (int) $row[$startcol + 38] : null;
- $this->partner_parent_id = ($row[$startcol + 39] !== null) ? (int) $row[$startcol + 39] : null;
- $this->kmc_version = ($row[$startcol + 40] !== null) ? (string) $row[$startcol + 40] : null;
- $this->resetModified();
- $this->setNew(false);
- if ($rehydrate) {
- $this->ensureConsistency();
- }
- // FIXME - using NUM_COLUMNS may be clearer.
- return $startcol + 41; // 41 = PartnerPeer::NUM_COLUMNS - PartnerPeer::NUM_LAZY_LOAD_COLUMNS).
- } catch (Exception $e) {
- throw new PropelException("Error populating Partner object", $e);
- }
- }
- /**
- * Checks and repairs the internal consistency of the object.
- *
- * This method is executed after an already-instantiated object is re-hydrated
- * from the database. It exists to check any foreign keys to make sure that
- * the objects related to the current object are correct based on foreign key.
- *
- * You can override this method in the stub class, but you should always invoke
- * the base method from the overridden method (i.e. parent::ensureConsistency()),
- * in case your model changes.
- *
- * @throws PropelException
- */
- public function ensureConsistency()
- {
- if ($this->akuser !== null && $this->…
Large files files are truncated, but you can click here to view the full file