/package/app/app/alpha/lib/model/om/Baseentry.php
PHP | 6741 lines | 3672 code | 902 blank | 2167 comment | 813 complexity | aebc03c1b4b10b6864d75749fbddb5b3 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 'entry' table.
- *
- *
- *
- * @package Core
- * @subpackage model.om
- */
- abstract class Baseentry 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 entryPeer
- */
- protected static $peer;
- /**
- * The value for the id field.
- * @var string
- */
- protected $id;
- /**
- * The value for the kshow_id field.
- * @var string
- */
- protected $kshow_id;
- /**
- * The value for the kuser_id field.
- * @var int
- */
- protected $kuser_id;
- /**
- * The value for the name field.
- * @var string
- */
- protected $name;
- /**
- * The value for the type field.
- * @var int
- */
- protected $type;
- /**
- * The value for the media_type field.
- * @var int
- */
- protected $media_type;
- /**
- * The value for the data field.
- * @var string
- */
- protected $data;
- /**
- * The value for the thumbnail field.
- * @var string
- */
- protected $thumbnail;
- /**
- * The value for the views field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $views;
- /**
- * The value for the votes field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $votes;
- /**
- * The value for the comments field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $comments;
- /**
- * The value for the favorites field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $favorites;
- /**
- * The value for the total_rank field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $total_rank;
- /**
- * The value for the rank field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $rank;
- /**
- * The value for the tags field.
- * @var string
- */
- protected $tags;
- /**
- * The value for the anonymous field.
- * @var int
- */
- protected $anonymous;
- /**
- * The value for the status field.
- * @var int
- */
- protected $status;
- /**
- * The value for the source field.
- * @var int
- */
- protected $source;
- /**
- * The value for the source_id field.
- * @var string
- */
- protected $source_id;
- /**
- * The value for the source_link field.
- * @var string
- */
- protected $source_link;
- /**
- * The value for the license_type field.
- * @var int
- */
- protected $license_type;
- /**
- * The value for the credit field.
- * @var string
- */
- protected $credit;
- /**
- * The value for the length_in_msecs field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $length_in_msecs;
- /**
- * 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 partner_id field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $partner_id;
- /**
- * The value for the display_in_search field.
- * @var int
- */
- protected $display_in_search;
- /**
- * The value for the subp_id field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $subp_id;
- /**
- * The value for the custom_data field.
- * @var string
- */
- protected $custom_data;
- /**
- * The value for the search_text field.
- * @var string
- */
- protected $search_text;
- /**
- * The value for the screen_name field.
- * @var string
- */
- protected $screen_name;
- /**
- * The value for the site_url field.
- * @var string
- */
- protected $site_url;
- /**
- * The value for the permissions field.
- * Note: this column has a database default value of: 1
- * @var int
- */
- protected $permissions;
- /**
- * The value for the group_id field.
- * @var string
- */
- protected $group_id;
- /**
- * The value for the plays field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $plays;
- /**
- * The value for the partner_data field.
- * @var string
- */
- protected $partner_data;
- /**
- * The value for the int_id field.
- * @var int
- */
- protected $int_id;
- /**
- * The value for the indexed_custom_data_1 field.
- * @var int
- */
- protected $indexed_custom_data_1;
- /**
- * The value for the description field.
- * @var string
- */
- protected $description;
- /**
- * The value for the media_date field.
- * @var string
- */
- protected $media_date;
- /**
- * The value for the admin_tags field.
- * @var string
- */
- protected $admin_tags;
- /**
- * The value for the moderation_status field.
- * @var int
- */
- protected $moderation_status;
- /**
- * The value for the moderation_count field.
- * @var int
- */
- protected $moderation_count;
- /**
- * The value for the modified_at field.
- * @var string
- */
- protected $modified_at;
- /**
- * The value for the puser_id field.
- * @var string
- */
- protected $puser_id;
- /**
- * The value for the access_control_id field.
- * @var int
- */
- protected $access_control_id;
- /**
- * The value for the conversion_profile_id field.
- * @var int
- */
- protected $conversion_profile_id;
- /**
- * The value for the categories field.
- * @var string
- */
- protected $categories;
- /**
- * The value for the categories_ids field.
- * @var string
- */
- protected $categories_ids;
- /**
- * The value for the start_date field.
- * @var string
- */
- protected $start_date;
- /**
- * The value for the end_date field.
- * @var string
- */
- protected $end_date;
- /**
- * The value for the search_text_discrete field.
- * @var string
- */
- protected $search_text_discrete;
- /**
- * The value for the flavor_params_ids field.
- * @var string
- */
- protected $flavor_params_ids;
- /**
- * The value for the available_from field.
- * @var string
- */
- protected $available_from;
- /**
- * @var kshow
- */
- protected $akshow;
- /**
- * @var kuser
- */
- protected $akuser;
- /**
- * @var accessControl
- */
- protected $aaccessControl;
- /**
- * @var conversionProfile2
- */
- protected $aconversionProfile2;
- /**
- * @var array kvote[] Collection to store aggregation of kvote objects.
- */
- protected $collkvotes;
- /**
- * @var Criteria The criteria used to select the current contents of collkvotes.
- */
- private $lastkvoteCriteria = null;
- /**
- * @var array conversion[] Collection to store aggregation of conversion objects.
- */
- protected $collconversions;
- /**
- * @var Criteria The criteria used to select the current contents of collconversions.
- */
- private $lastconversionCriteria = null;
- /**
- * @var array WidgetLog[] Collection to store aggregation of WidgetLog objects.
- */
- protected $collWidgetLogs;
- /**
- * @var Criteria The criteria used to select the current contents of collWidgetLogs.
- */
- private $lastWidgetLogCriteria = null;
- /**
- * @var array moderationFlag[] Collection to store aggregation of moderationFlag objects.
- */
- protected $collmoderationFlags;
- /**
- * @var Criteria The criteria used to select the current contents of collmoderationFlags.
- */
- private $lastmoderationFlagCriteria = null;
- /**
- * @var array roughcutEntry[] Collection to store aggregation of roughcutEntry objects.
- */
- protected $collroughcutEntrysRelatedByRoughcutId;
- /**
- * @var Criteria The criteria used to select the current contents of collroughcutEntrysRelatedByRoughcutId.
- */
- private $lastroughcutEntryRelatedByRoughcutIdCriteria = null;
- /**
- * @var array roughcutEntry[] Collection to store aggregation of roughcutEntry objects.
- */
- protected $collroughcutEntrysRelatedByEntryId;
- /**
- * @var Criteria The criteria used to select the current contents of collroughcutEntrysRelatedByEntryId.
- */
- private $lastroughcutEntryRelatedByEntryIdCriteria = null;
- /**
- * @var array widget[] Collection to store aggregation of widget objects.
- */
- protected $collwidgets;
- /**
- * @var Criteria The criteria used to select the current contents of collwidgets.
- */
- private $lastwidgetCriteria = null;
- /**
- * @var array assetParamsOutput[] Collection to store aggregation of assetParamsOutput objects.
- */
- protected $collassetParamsOutputs;
- /**
- * @var Criteria The criteria used to select the current contents of collassetParamsOutputs.
- */
- private $lastassetParamsOutputCriteria = null;
- /**
- * @var array asset[] Collection to store aggregation of asset objects.
- */
- protected $collassets;
- /**
- * @var Criteria The criteria used to select the current contents of collassets.
- */
- private $lastassetCriteria = 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 indicate if save action actually affected the db.
- * @var boolean
- */
- protected $objectSaved = 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->views = 0;
- $this->votes = 0;
- $this->comments = 0;
- $this->favorites = 0;
- $this->total_rank = 0;
- $this->rank = 0;
- $this->length_in_msecs = 0;
- $this->partner_id = 0;
- $this->subp_id = 0;
- $this->permissions = 1;
- $this->plays = 0;
- }
- /**
- * Initializes internal state of Baseentry object.
- * @see applyDefaults()
- */
- public function __construct()
- {
- parent::__construct();
- $this->applyDefaultValues();
- }
- /**
- * Get the [id] column value.
- *
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Get the [kshow_id] column value.
- *
- * @return string
- */
- public function getKshowId()
- {
- return $this->kshow_id;
- }
- /**
- * Get the [kuser_id] column value.
- *
- * @return int
- */
- public function getKuserId()
- {
- return $this->kuser_id;
- }
- /**
- * Get the [name] column value.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Get the [type] column value.
- *
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Get the [media_type] column value.
- *
- * @return int
- */
- public function getMediaType()
- {
- return $this->media_type;
- }
- /**
- * Get the [data] column value.
- *
- * @return string
- */
- public function getData()
- {
- return $this->data;
- }
- /**
- * Get the [thumbnail] column value.
- *
- * @return string
- */
- public function getThumbnail()
- {
- return $this->thumbnail;
- }
- /**
- * Get the [views] column value.
- *
- * @return int
- */
- public function getViews()
- {
- return $this->views;
- }
- /**
- * Get the [votes] column value.
- *
- * @return int
- */
- public function getVotes()
- {
- return $this->votes;
- }
- /**
- * Get the [comments] column value.
- *
- * @return int
- */
- public function getComments()
- {
- return $this->comments;
- }
- /**
- * Get the [favorites] column value.
- *
- * @return int
- */
- public function getFavorites()
- {
- return $this->favorites;
- }
- /**
- * Get the [total_rank] column value.
- *
- * @return int
- */
- public function getTotalRank()
- {
- return $this->total_rank;
- }
- /**
- * Get the [rank] column value.
- *
- * @return int
- */
- public function getRank()
- {
- return $this->rank;
- }
- /**
- * Get the [tags] column value.
- *
- * @return string
- */
- public function getTags()
- {
- return $this->tags;
- }
- /**
- * Get the [anonymous] column value.
- *
- * @return int
- */
- public function getAnonymous()
- {
- return $this->anonymous;
- }
- /**
- * Get the [status] column value.
- *
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Get the [source] column value.
- *
- * @return int
- */
- public function getSource()
- {
- return $this->source;
- }
- /**
- * Get the [source_id] column value.
- *
- * @return string
- */
- public function getSourceId()
- {
- return $this->source_id;
- }
- /**
- * Get the [source_link] column value.
- *
- * @return string
- */
- public function getSourceLink()
- {
- return $this->source_link;
- }
- /**
- * Get the [license_type] column value.
- *
- * @return int
- */
- public function getLicenseType()
- {
- return $this->license_type;
- }
- /**
- * Get the [credit] column value.
- *
- * @return string
- */
- public function getCredit()
- {
- return $this->credit;
- }
- /**
- * Get the [length_in_msecs] column value.
- *
- * @return int
- */
- public function getLengthInMsecs()
- {
- return $this->length_in_msecs;
- }
- /**
- * 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 [partner_id] column value.
- *
- * @return int
- */
- public function getPartnerId()
- {
- return $this->partner_id;
- }
- /**
- * Get the [display_in_search] column value.
- *
- * @return int
- */
- public function getDisplayInSearch()
- {
- return $this->display_in_search;
- }
- /**
- * Get the [subp_id] column value.
- *
- * @return int
- */
- public function getSubpId()
- {
- return $this->subp_id;
- }
- /**
- * Get the [custom_data] column value.
- *
- * @return string
- */
- public function getCustomData()
- {
- return $this->custom_data;
- }
- /**
- * Get the [search_text] column value.
- *
- * @return string
- */
- public function getSearchText()
- {
- return $this->search_text;
- }
- /**
- * Get the [screen_name] column value.
- *
- * @return string
- */
- public function getScreenName()
- {
- return $this->screen_name;
- }
- /**
- * Get the [site_url] column value.
- *
- * @return string
- */
- public function getSiteUrl()
- {
- return $this->site_url;
- }
- /**
- * Get the [permissions] column value.
- *
- * @return int
- */
- public function getPermissions()
- {
- return $this->permissions;
- }
- /**
- * Get the [group_id] column value.
- *
- * @return string
- */
- public function getGroupId()
- {
- return $this->group_id;
- }
- /**
- * Get the [plays] column value.
- *
- * @return int
- */
- public function getPlays()
- {
- return $this->plays;
- }
- /**
- * Get the [partner_data] column value.
- *
- * @return string
- */
- public function getPartnerData()
- {
- return $this->partner_data;
- }
- /**
- * Get the [int_id] column value.
- *
- * @return int
- */
- public function getIntId()
- {
- return $this->int_id;
- }
- /**
- * Get the [indexed_custom_data_1] column value.
- *
- * @return int
- */
- public function getIndexedCustomData1()
- {
- return $this->indexed_custom_data_1;
- }
- /**
- * Get the [description] column value.
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Get the [optionally formatted] temporal [media_date] 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 getMediaDate($format = 'Y-m-d H:i:s')
- {
- if ($this->media_date === null) {
- return null;
- }
- if ($this->media_date === '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->media_date);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->media_date, 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 [admin_tags] column value.
- *
- * @return string
- */
- public function getAdminTags()
- {
- return $this->admin_tags;
- }
- /**
- * Get the [moderation_status] column value.
- *
- * @return int
- */
- public function getModerationStatus()
- {
- return $this->moderation_status;
- }
- /**
- * Get the [moderation_count] column value.
- *
- * @return int
- */
- public function getModerationCount()
- {
- return $this->moderation_count;
- }
- /**
- * Get the [optionally formatted] temporal [modified_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 getModifiedAt($format = 'Y-m-d H:i:s')
- {
- if ($this->modified_at === null) {
- return null;
- }
- if ($this->modified_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->modified_at);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->modified_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 [puser_id] column value.
- *
- * @return string
- */
- public function getPuserId()
- {
- return $this->puser_id;
- }
- /**
- * Get the [access_control_id] column value.
- *
- * @return int
- */
- public function getAccessControlId()
- {
- return $this->access_control_id;
- }
- /**
- * Get the [conversion_profile_id] column value.
- *
- * @return int
- */
- public function getConversionProfileId()
- {
- return $this->conversion_profile_id;
- }
- /**
- * Get the [categories] column value.
- *
- * @return string
- */
- public function getCategories()
- {
- return $this->categories;
- }
- /**
- * Get the [categories_ids] column value.
- *
- * @return string
- */
- public function getCategoriesIds()
- {
- return $this->categories_ids;
- }
- /**
- * Get the [optionally formatted] temporal [start_date] 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 getStartDate($format = 'Y-m-d H:i:s')
- {
- if ($this->start_date === null) {
- return null;
- }
- if ($this->start_date === '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->start_date);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->start_date, 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 [end_date] 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 getEndDate($format = 'Y-m-d H:i:s')
- {
- if ($this->end_date === null) {
- return null;
- }
- if ($this->end_date === '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->end_date);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->end_date, 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 [search_text_discrete] column value.
- *
- * @return string
- */
- public function getSearchTextDiscrete()
- {
- return $this->search_text_discrete;
- }
- /**
- * Get the [flavor_params_ids] column value.
- *
- * @return string
- */
- public function getFlavorParamsIds()
- {
- return $this->flavor_params_ids;
- }
- /**
- * Get the [optionally formatted] temporal [available_from] 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 getAvailableFrom($format = 'Y-m-d H:i:s')
- {
- if ($this->available_from === null) {
- return null;
- }
- if ($this->available_from === '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->available_from);
- } catch (Exception $x) {
- throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->available_from, 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);
- }
- }
- /**
- * Set the value of [id] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::ID]))
- $this->oldColumnsValues[entryPeer::ID] = $this->id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->id !== $v) {
- $this->id = $v;
- $this->modifiedColumns[] = entryPeer::ID;
- }
- return $this;
- } // setId()
- /**
- * Set the value of [kshow_id] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setKshowId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::KSHOW_ID]))
- $this->oldColumnsValues[entryPeer::KSHOW_ID] = $this->kshow_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->kshow_id !== $v) {
- $this->kshow_id = $v;
- $this->modifiedColumns[] = entryPeer::KSHOW_ID;
- }
- if ($this->akshow !== null && $this->akshow->getId() !== $v) {
- $this->akshow = null;
- }
- return $this;
- } // setKshowId()
- /**
- * Set the value of [kuser_id] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setKuserId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::KUSER_ID]))
- $this->oldColumnsValues[entryPeer::KUSER_ID] = $this->kuser_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->kuser_id !== $v) {
- $this->kuser_id = $v;
- $this->modifiedColumns[] = entryPeer::KUSER_ID;
- }
- if ($this->akuser !== null && $this->akuser->getId() !== $v) {
- $this->akuser = null;
- }
- return $this;
- } // setKuserId()
- /**
- * Set the value of [name] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setName($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::NAME]))
- $this->oldColumnsValues[entryPeer::NAME] = $this->name;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->name !== $v) {
- $this->name = $v;
- $this->modifiedColumns[] = entryPeer::NAME;
- }
- return $this;
- } // setName()
- /**
- * Set the value of [type] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setType($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::TYPE]))
- $this->oldColumnsValues[entryPeer::TYPE] = $this->type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->type !== $v) {
- $this->type = $v;
- $this->modifiedColumns[] = entryPeer::TYPE;
- }
- return $this;
- } // setType()
- /**
- * Set the value of [media_type] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setMediaType($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::MEDIA_TYPE]))
- $this->oldColumnsValues[entryPeer::MEDIA_TYPE] = $this->media_type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->media_type !== $v) {
- $this->media_type = $v;
- $this->modifiedColumns[] = entryPeer::MEDIA_TYPE;
- }
- return $this;
- } // setMediaType()
- /**
- * Set the value of [data] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setData($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::DATA]))
- $this->oldColumnsValues[entryPeer::DATA] = $this->data;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->data !== $v) {
- $this->data = $v;
- $this->modifiedColumns[] = entryPeer::DATA;
- }
- return $this;
- } // setData()
- /**
- * Set the value of [thumbnail] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setThumbnail($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::THUMBNAIL]))
- $this->oldColumnsValues[entryPeer::THUMBNAIL] = $this->thumbnail;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->thumbnail !== $v) {
- $this->thumbnail = $v;
- $this->modifiedColumns[] = entryPeer::THUMBNAIL;
- }
- return $this;
- } // setThumbnail()
- /**
- * Set the value of [views] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setViews($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::VIEWS]))
- $this->oldColumnsValues[entryPeer::VIEWS] = $this->views;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->views !== $v || $this->isNew()) {
- $this->views = $v;
- $this->modifiedColumns[] = entryPeer::VIEWS;
- }
- return $this;
- } // setViews()
- /**
- * Set the value of [votes] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setVotes($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::VOTES]))
- $this->oldColumnsValues[entryPeer::VOTES] = $this->votes;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->votes !== $v || $this->isNew()) {
- $this->votes = $v;
- $this->modifiedColumns[] = entryPeer::VOTES;
- }
- return $this;
- } // setVotes()
- /**
- * Set the value of [comments] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setComments($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::COMMENTS]))
- $this->oldColumnsValues[entryPeer::COMMENTS] = $this->comments;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->comments !== $v || $this->isNew()) {
- $this->comments = $v;
- $this->modifiedColumns[] = entryPeer::COMMENTS;
- }
- return $this;
- } // setComments()
- /**
- * Set the value of [favorites] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setFavorites($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::FAVORITES]))
- $this->oldColumnsValues[entryPeer::FAVORITES] = $this->favorites;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->favorites !== $v || $this->isNew()) {
- $this->favorites = $v;
- $this->modifiedColumns[] = entryPeer::FAVORITES;
- }
- return $this;
- } // setFavorites()
- /**
- * Set the value of [total_rank] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setTotalRank($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::TOTAL_RANK]))
- $this->oldColumnsValues[entryPeer::TOTAL_RANK] = $this->total_rank;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->total_rank !== $v || $this->isNew()) {
- $this->total_rank = $v;
- $this->modifiedColumns[] = entryPeer::TOTAL_RANK;
- }
- return $this;
- } // setTotalRank()
- /**
- * Set the value of [rank] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setRank($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::RANK]))
- $this->oldColumnsValues[entryPeer::RANK] = $this->rank;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->rank !== $v || $this->isNew()) {
- $this->rank = $v;
- $this->modifiedColumns[] = entryPeer::RANK;
- }
- return $this;
- } // setRank()
- /**
- * Set the value of [tags] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setTags($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::TAGS]))
- $this->oldColumnsValues[entryPeer::TAGS] = $this->tags;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->tags !== $v) {
- $this->tags = $v;
- $this->modifiedColumns[] = entryPeer::TAGS;
- }
- return $this;
- } // setTags()
- /**
- * Set the value of [anonymous] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setAnonymous($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::ANONYMOUS]))
- $this->oldColumnsValues[entryPeer::ANONYMOUS] = $this->anonymous;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->anonymous !== $v) {
- $this->anonymous = $v;
- $this->modifiedColumns[] = entryPeer::ANONYMOUS;
- }
- return $this;
- } // setAnonymous()
- /**
- * Set the value of [status] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setStatus($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::STATUS]))
- $this->oldColumnsValues[entryPeer::STATUS] = $this->status;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->status !== $v) {
- $this->status = $v;
- $this->modifiedColumns[] = entryPeer::STATUS;
- }
- return $this;
- } // setStatus()
- /**
- * Set the value of [source] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSource($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SOURCE]))
- $this->oldColumnsValues[entryPeer::SOURCE] = $this->source;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->source !== $v) {
- $this->source = $v;
- $this->modifiedColumns[] = entryPeer::SOURCE;
- }
- return $this;
- } // setSource()
- /**
- * Set the value of [source_id] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSourceId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SOURCE_ID]))
- $this->oldColumnsValues[entryPeer::SOURCE_ID] = $this->source_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->source_id !== $v) {
- $this->source_id = $v;
- $this->modifiedColumns[] = entryPeer::SOURCE_ID;
- }
- return $this;
- } // setSourceId()
- /**
- * Set the value of [source_link] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSourceLink($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SOURCE_LINK]))
- $this->oldColumnsValues[entryPeer::SOURCE_LINK] = $this->source_link;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->source_link !== $v) {
- $this->source_link = $v;
- $this->modifiedColumns[] = entryPeer::SOURCE_LINK;
- }
- return $this;
- } // setSourceLink()
- /**
- * Set the value of [license_type] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setLicenseType($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::LICENSE_TYPE]))
- $this->oldColumnsValues[entryPeer::LICENSE_TYPE] = $this->license_type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->license_type !== $v) {
- $this->license_type = $v;
- $this->modifiedColumns[] = entryPeer::LICENSE_TYPE;
- }
- return $this;
- } // setLicenseType()
- /**
- * Set the value of [credit] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setCredit($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::CREDIT]))
- $this->oldColumnsValues[entryPeer::CREDIT] = $this->credit;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->credit !== $v) {
- $this->credit = $v;
- $this->modifiedColumns[] = entryPeer::CREDIT;
- }
- return $this;
- } // setCredit()
- /**
- * Set the value of [length_in_msecs] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setLengthInMsecs($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::LENGTH_IN_MSECS]))
- $this->oldColumnsValues[entryPeer::LENGTH_IN_MSECS] = $this->length_in_msecs;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->length_in_msecs !== $v || $this->isNew()) {
- $this->length_in_msecs = $v;
- $this->modifiedColumns[] = entryPeer::LENGTH_IN_MSECS;
- }
- return $this;
- } // setLengthInMsecs()
- /**
- * 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 entry 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[] = entryPeer::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 entry 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[] = entryPeer::UPDATED_AT;
- }
- } // if either are not null
- return $this;
- } // setUpdatedAt()
- /**
- * Set the value of [partner_id] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setPartnerId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::PARTNER_ID]))
- $this->oldColumnsValues[entryPeer::PARTNER_ID] = $this->partner_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->partner_id !== $v || $this->isNew()) {
- $this->partner_id = $v;
- $this->modifiedColumns[] = entryPeer::PARTNER_ID;
- }
- return $this;
- } // setPartnerId()
- /**
- * Set the value of [display_in_search] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setDisplayInSearch($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::DISPLAY_IN_SEARCH]))
- $this->oldColumnsValues[entryPeer::DISPLAY_IN_SEARCH] = $this->display_in_search;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->display_in_search !== $v) {
- $this->display_in_search = $v;
- $this->modifiedColumns[] = entryPeer::DISPLAY_IN_SEARCH;
- }
- return $this;
- } // setDisplayInSearch()
- /**
- * Set the value of [subp_id] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSubpId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SUBP_ID]))
- $this->oldColumnsValues[entryPeer::SUBP_ID] = $this->subp_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->subp_id !== $v || $this->isNew()) {
- $this->subp_id = $v;
- $this->modifiedColumns[] = entryPeer::SUBP_ID;
- }
- return $this;
- } // setSubpId()
- /**
- * Set the value of [custom_data] column.
- *
- * @param string $v new value
- * @return entry 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[] = entryPeer::CUSTOM_DATA;
- }
- return $this;
- } // setCustomData()
- /**
- * Set the value of [search_text] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSearchText($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SEARCH_TEXT]))
- $this->oldColumnsValues[entryPeer::SEARCH_TEXT] = $this->search_text;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->search_text !== $v) {
- $this->search_text = $v;
- $this->modifiedColumns[] = entryPeer::SEARCH_TEXT;
- }
- return $this;
- } // setSearchText()
- /**
- * Set the value of [screen_name] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setScreenName($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SCREEN_NAME]))
- $this->oldColumnsValues[entryPeer::SCREEN_NAME] = $this->screen_name;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->screen_name !== $v) {
- $this->screen_name = $v;
- $this->modifiedColumns[] = entryPeer::SCREEN_NAME;
- }
- return $this;
- } // setScreenName()
- /**
- * Set the value of [site_url] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setSiteUrl($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::SITE_URL]))
- $this->oldColumnsValues[entryPeer::SITE_URL] = $this->site_url;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->site_url !== $v) {
- $this->site_url = $v;
- $this->modifiedColumns[] = entryPeer::SITE_URL;
- }
- return $this;
- } // setSiteUrl()
- /**
- * Set the value of [permissions] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setPermissions($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::PERMISSIONS]))
- $this->oldColumnsValues[entryPeer::PERMISSIONS] = $this->permissions;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->permissions !== $v || $this->isNew()) {
- $this->permissions = $v;
- $this->modifiedColumns[] = entryPeer::PERMISSIONS;
- }
- return $this;
- } // setPermissions()
- /**
- * Set the value of [group_id] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setGroupId($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::GROUP_ID]))
- $this->oldColumnsValues[entryPeer::GROUP_ID] = $this->group_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->group_id !== $v) {
- $this->group_id = $v;
- $this->modifiedColumns[] = entryPeer::GROUP_ID;
- }
- return $this;
- } // setGroupId()
- /**
- * Set the value of [plays] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setPlays($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::PLAYS]))
- $this->oldColumnsValues[entryPeer::PLAYS] = $this->plays;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->plays !== $v || $this->isNew()) {
- $this->plays = $v;
- $this->modifiedColumns[] = entryPeer::PLAYS;
- }
- return $this;
- } // setPlays()
- /**
- * Set the value of [partner_data] column.
- *
- * @param string $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setPartnerData($v)
- {
- if(!isset($this->oldColumnsValues[entryPeer::PARTNER_DATA]))
- $this->oldColumnsValues[entryPeer::PARTNER_DATA] = $this->partner_data;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->partner_data !== $v) {
- $this->partner_data = $v;
- $this->modifiedColumns[] = entryPeer::PARTNER_DATA;
- }
- return $this;
- } // setPartnerData()
- /**
- * Set the value of [int_id] column.
- *
- * @param int $v new value
- * @return entry The current object (for fluent API support)
- */
- public function setI…
Large files files are truncated, but you can click here to view the full file