/package/app/app/plugins/mysql_search/lib/model/om/BaseSearchEntry.php
PHP | 2711 lines | 1457 code | 340 blank | 914 comment | 278 complexity | df2ace71244273bca1f897ea464e0fd7 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 'search_entry' table.
- *
- *
- *
- * @package plugins.contentDistribution
- * @subpackage model.om
- */
- abstract class BaseSearchEntry 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 SearchEntryPeer
- */
- protected static $peer;
- /**
- * The value for the entry_id field.
- * @var string
- */
- protected $entry_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 views field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $views;
- /**
- * 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 entry_status field.
- * @var int
- */
- protected $entry_status;
- /**
- * The value for the source_link field.
- * @var string
- */
- protected $source_link;
- /**
- * The value for the duration field.
- * Note: this column has a database default value of: 0
- * @var int
- */
- protected $duration;
- /**
- * The value for the duration_type field.
- * @var string
- */
- protected $duration_type;
- /**
- * 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 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 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 access_control_id field.
- * @var int
- */
- protected $access_control_id;
- /**
- * The value for the categories field.
- * @var string
- */
- protected $categories;
- /**
- * 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 flavor_params field.
- * @var string
- */
- protected $flavor_params;
- /**
- * The value for the available_from field.
- * @var string
- */
- protected $available_from;
- /**
- * The value for the plugin_data field.
- * @var string
- */
- protected $plugin_data;
- /**
- * 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->views = 0;
- $this->rank = 0;
- $this->duration = 0;
- $this->partner_id = 0;
- $this->plays = 0;
- }
- /**
- * Initializes internal state of BaseSearchEntry object.
- * @see applyDefaults()
- */
- public function __construct()
- {
- parent::__construct();
- $this->applyDefaultValues();
- }
- /**
- * Get the [entry_id] column value.
- *
- * @return string
- */
- public function getEntryId()
- {
- return $this->entry_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 [views] column value.
- *
- * @return int
- */
- public function getViews()
- {
- return $this->views;
- }
- /**
- * 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 [entry_status] column value.
- *
- * @return int
- */
- public function getEntryStatus()
- {
- return $this->entry_status;
- }
- /**
- * Get the [source_link] column value.
- *
- * @return string
- */
- public function getSourceLink()
- {
- return $this->source_link;
- }
- /**
- * Get the [duration] column value.
- *
- * @return int
- */
- public function getDuration()
- {
- return $this->duration;
- }
- /**
- * Get the [duration_type] column value.
- *
- * @return string
- */
- public function getDurationType()
- {
- return $this->duration_type;
- }
- /**
- * 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 [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 [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 [access_control_id] column value.
- *
- * @return int
- */
- public function getAccessControlId()
- {
- return $this->access_control_id;
- }
- /**
- * Get the [categories] column value.
- *
- * @return string
- */
- public function getCategories()
- {
- return $this->categories;
- }
- /**
- * 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 [flavor_params] column value.
- *
- * @return string
- */
- public function getFlavorParams()
- {
- return $this->flavor_params;
- }
- /**
- * 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);
- }
- }
- /**
- * Get the [plugin_data] column value.
- *
- * @return string
- */
- public function getPluginData()
- {
- return $this->plugin_data;
- }
- /**
- * Set the value of [entry_id] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setEntryId($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::ENTRY_ID]))
- $this->oldColumnsValues[SearchEntryPeer::ENTRY_ID] = $this->entry_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->entry_id !== $v) {
- $this->entry_id = $v;
- $this->modifiedColumns[] = SearchEntryPeer::ENTRY_ID;
- }
- return $this;
- } // setEntryId()
- /**
- * Set the value of [kuser_id] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setKuserId($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::KUSER_ID]))
- $this->oldColumnsValues[SearchEntryPeer::KUSER_ID] = $this->kuser_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->kuser_id !== $v) {
- $this->kuser_id = $v;
- $this->modifiedColumns[] = SearchEntryPeer::KUSER_ID;
- }
- return $this;
- } // setKuserId()
- /**
- * Set the value of [name] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setName($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::NAME]))
- $this->oldColumnsValues[SearchEntryPeer::NAME] = $this->name;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->name !== $v) {
- $this->name = $v;
- $this->modifiedColumns[] = SearchEntryPeer::NAME;
- }
- return $this;
- } // setName()
- /**
- * Set the value of [type] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setType($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::TYPE]))
- $this->oldColumnsValues[SearchEntryPeer::TYPE] = $this->type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->type !== $v) {
- $this->type = $v;
- $this->modifiedColumns[] = SearchEntryPeer::TYPE;
- }
- return $this;
- } // setType()
- /**
- * Set the value of [media_type] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setMediaType($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::MEDIA_TYPE]))
- $this->oldColumnsValues[SearchEntryPeer::MEDIA_TYPE] = $this->media_type;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->media_type !== $v) {
- $this->media_type = $v;
- $this->modifiedColumns[] = SearchEntryPeer::MEDIA_TYPE;
- }
- return $this;
- } // setMediaType()
- /**
- * Set the value of [views] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setViews($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::VIEWS]))
- $this->oldColumnsValues[SearchEntryPeer::VIEWS] = $this->views;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->views !== $v || $this->isNew()) {
- $this->views = $v;
- $this->modifiedColumns[] = SearchEntryPeer::VIEWS;
- }
- return $this;
- } // setViews()
- /**
- * Set the value of [rank] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setRank($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::RANK]))
- $this->oldColumnsValues[SearchEntryPeer::RANK] = $this->rank;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->rank !== $v || $this->isNew()) {
- $this->rank = $v;
- $this->modifiedColumns[] = SearchEntryPeer::RANK;
- }
- return $this;
- } // setRank()
- /**
- * Set the value of [tags] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setTags($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::TAGS]))
- $this->oldColumnsValues[SearchEntryPeer::TAGS] = $this->tags;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->tags !== $v) {
- $this->tags = $v;
- $this->modifiedColumns[] = SearchEntryPeer::TAGS;
- }
- return $this;
- } // setTags()
- /**
- * Set the value of [entry_status] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setEntryStatus($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::ENTRY_STATUS]))
- $this->oldColumnsValues[SearchEntryPeer::ENTRY_STATUS] = $this->entry_status;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->entry_status !== $v) {
- $this->entry_status = $v;
- $this->modifiedColumns[] = SearchEntryPeer::ENTRY_STATUS;
- }
- return $this;
- } // setEntryStatus()
- /**
- * Set the value of [source_link] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setSourceLink($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::SOURCE_LINK]))
- $this->oldColumnsValues[SearchEntryPeer::SOURCE_LINK] = $this->source_link;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->source_link !== $v) {
- $this->source_link = $v;
- $this->modifiedColumns[] = SearchEntryPeer::SOURCE_LINK;
- }
- return $this;
- } // setSourceLink()
- /**
- * Set the value of [duration] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setDuration($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::DURATION]))
- $this->oldColumnsValues[SearchEntryPeer::DURATION] = $this->duration;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->duration !== $v || $this->isNew()) {
- $this->duration = $v;
- $this->modifiedColumns[] = SearchEntryPeer::DURATION;
- }
- return $this;
- } // setDuration()
- /**
- * Set the value of [duration_type] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setDurationType($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::DURATION_TYPE]))
- $this->oldColumnsValues[SearchEntryPeer::DURATION_TYPE] = $this->duration_type;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->duration_type !== $v) {
- $this->duration_type = $v;
- $this->modifiedColumns[] = SearchEntryPeer::DURATION_TYPE;
- }
- return $this;
- } // setDurationType()
- /**
- * 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 SearchEntry 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[] = SearchEntryPeer::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 SearchEntry 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[] = SearchEntryPeer::UPDATED_AT;
- }
- } // if either are not null
- return $this;
- } // setUpdatedAt()
- /**
- * Set the value of [partner_id] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setPartnerId($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::PARTNER_ID]))
- $this->oldColumnsValues[SearchEntryPeer::PARTNER_ID] = $this->partner_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->partner_id !== $v || $this->isNew()) {
- $this->partner_id = $v;
- $this->modifiedColumns[] = SearchEntryPeer::PARTNER_ID;
- }
- return $this;
- } // setPartnerId()
- /**
- * Set the value of [display_in_search] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setDisplayInSearch($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::DISPLAY_IN_SEARCH]))
- $this->oldColumnsValues[SearchEntryPeer::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[] = SearchEntryPeer::DISPLAY_IN_SEARCH;
- }
- return $this;
- } // setDisplayInSearch()
- /**
- * Set the value of [group_id] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setGroupId($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::GROUP_ID]))
- $this->oldColumnsValues[SearchEntryPeer::GROUP_ID] = $this->group_id;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->group_id !== $v) {
- $this->group_id = $v;
- $this->modifiedColumns[] = SearchEntryPeer::GROUP_ID;
- }
- return $this;
- } // setGroupId()
- /**
- * Set the value of [plays] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setPlays($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::PLAYS]))
- $this->oldColumnsValues[SearchEntryPeer::PLAYS] = $this->plays;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->plays !== $v || $this->isNew()) {
- $this->plays = $v;
- $this->modifiedColumns[] = SearchEntryPeer::PLAYS;
- }
- return $this;
- } // setPlays()
- /**
- * Set the value of [description] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setDescription($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::DESCRIPTION]))
- $this->oldColumnsValues[SearchEntryPeer::DESCRIPTION] = $this->description;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->description !== $v) {
- $this->description = $v;
- $this->modifiedColumns[] = SearchEntryPeer::DESCRIPTION;
- }
- return $this;
- } // setDescription()
- /**
- * Sets the value of [media_date] 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 SearchEntry The current object (for fluent API support)
- */
- public function setMediaDate($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::MEDIA_DATE]))
- $this->oldColumnsValues[SearchEntryPeer::MEDIA_DATE] = $this->media_date;
- // 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->media_date !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->media_date !== null && $tmpDt = new DateTime($this->media_date)) ? $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->media_date = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = SearchEntryPeer::MEDIA_DATE;
- }
- } // if either are not null
- return $this;
- } // setMediaDate()
- /**
- * Set the value of [admin_tags] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setAdminTags($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::ADMIN_TAGS]))
- $this->oldColumnsValues[SearchEntryPeer::ADMIN_TAGS] = $this->admin_tags;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->admin_tags !== $v) {
- $this->admin_tags = $v;
- $this->modifiedColumns[] = SearchEntryPeer::ADMIN_TAGS;
- }
- return $this;
- } // setAdminTags()
- /**
- * Set the value of [moderation_status] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setModerationStatus($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::MODERATION_STATUS]))
- $this->oldColumnsValues[SearchEntryPeer::MODERATION_STATUS] = $this->moderation_status;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->moderation_status !== $v) {
- $this->moderation_status = $v;
- $this->modifiedColumns[] = SearchEntryPeer::MODERATION_STATUS;
- }
- return $this;
- } // setModerationStatus()
- /**
- * Set the value of [moderation_count] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setModerationCount($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::MODERATION_COUNT]))
- $this->oldColumnsValues[SearchEntryPeer::MODERATION_COUNT] = $this->moderation_count;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->moderation_count !== $v) {
- $this->moderation_count = $v;
- $this->modifiedColumns[] = SearchEntryPeer::MODERATION_COUNT;
- }
- return $this;
- } // setModerationCount()
- /**
- * Sets the value of [modified_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 SearchEntry The current object (for fluent API support)
- */
- public function setModifiedAt($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::MODIFIED_AT]))
- $this->oldColumnsValues[SearchEntryPeer::MODIFIED_AT] = $this->modified_at;
- // 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->modified_at !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->modified_at !== null && $tmpDt = new DateTime($this->modified_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->modified_at = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = SearchEntryPeer::MODIFIED_AT;
- }
- } // if either are not null
- return $this;
- } // setModifiedAt()
- /**
- * Set the value of [access_control_id] column.
- *
- * @param int $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setAccessControlId($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::ACCESS_CONTROL_ID]))
- $this->oldColumnsValues[SearchEntryPeer::ACCESS_CONTROL_ID] = $this->access_control_id;
- if ($v !== null) {
- $v = (int) $v;
- }
- if ($this->access_control_id !== $v) {
- $this->access_control_id = $v;
- $this->modifiedColumns[] = SearchEntryPeer::ACCESS_CONTROL_ID;
- }
- return $this;
- } // setAccessControlId()
- /**
- * Set the value of [categories] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setCategories($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::CATEGORIES]))
- $this->oldColumnsValues[SearchEntryPeer::CATEGORIES] = $this->categories;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->categories !== $v) {
- $this->categories = $v;
- $this->modifiedColumns[] = SearchEntryPeer::CATEGORIES;
- }
- return $this;
- } // setCategories()
- /**
- * Sets the value of [start_date] 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 SearchEntry The current object (for fluent API support)
- */
- public function setStartDate($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::START_DATE]))
- $this->oldColumnsValues[SearchEntryPeer::START_DATE] = $this->start_date;
- // 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->start_date !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->start_date !== null && $tmpDt = new DateTime($this->start_date)) ? $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->start_date = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = SearchEntryPeer::START_DATE;
- }
- } // if either are not null
- return $this;
- } // setStartDate()
- /**
- * Sets the value of [end_date] 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 SearchEntry The current object (for fluent API support)
- */
- public function setEndDate($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::END_DATE]))
- $this->oldColumnsValues[SearchEntryPeer::END_DATE] = $this->end_date;
- // 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->end_date !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->end_date !== null && $tmpDt = new DateTime($this->end_date)) ? $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->end_date = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = SearchEntryPeer::END_DATE;
- }
- } // if either are not null
- return $this;
- } // setEndDate()
- /**
- * Set the value of [flavor_params] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setFlavorParams($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::FLAVOR_PARAMS]))
- $this->oldColumnsValues[SearchEntryPeer::FLAVOR_PARAMS] = $this->flavor_params;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->flavor_params !== $v) {
- $this->flavor_params = $v;
- $this->modifiedColumns[] = SearchEntryPeer::FLAVOR_PARAMS;
- }
- return $this;
- } // setFlavorParams()
- /**
- * Sets the value of [available_from] 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 SearchEntry The current object (for fluent API support)
- */
- public function setAvailableFrom($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::AVAILABLE_FROM]))
- $this->oldColumnsValues[SearchEntryPeer::AVAILABLE_FROM] = $this->available_from;
- // 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->available_from !== null || $dt !== null ) {
- // (nested ifs are a little easier to read in this case)
- $currNorm = ($this->available_from !== null && $tmpDt = new DateTime($this->available_from)) ? $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->available_from = ($dt ? $dt->format('Y-m-d H:i:s') : null);
- $this->modifiedColumns[] = SearchEntryPeer::AVAILABLE_FROM;
- }
- } // if either are not null
- return $this;
- } // setAvailableFrom()
- /**
- * Set the value of [plugin_data] column.
- *
- * @param string $v new value
- * @return SearchEntry The current object (for fluent API support)
- */
- public function setPluginData($v)
- {
- if(!isset($this->oldColumnsValues[SearchEntryPeer::PLUGIN_DATA]))
- $this->oldColumnsValues[SearchEntryPeer::PLUGIN_DATA] = $this->plugin_data;
- if ($v !== null) {
- $v = (string) $v;
- }
- if ($this->plugin_data !== $v) {
- $this->plugin_data = $v;
- $this->modifiedColumns[] = SearchEntryPeer::PLUGIN_DATA;
- }
- return $this;
- } // setPluginData()
- /**
- * 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->views !== 0) {
- return false;
- }
- if ($this->rank !== 0) {
- return false;
- }
- if ($this->duration !== 0) {
- return false;
- }
- if ($this->partner_id !== 0) {
- return false;
- }
- if ($this->plays !== 0) {
- 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->entry_id = ($row[$startcol + 0] !== null) ? (string) $row[$startcol + 0] : null;
- $this->kuser_id = ($row[$startcol + 1] !== null) ? (int) $row[$startcol + 1] : null;
- $this->name = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
- $this->type = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null;
- $this->media_type = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
- $this->views = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
- $this->rank = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
- $this->tags = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
- $this->entry_status = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
- $this->source_link = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
- $this->duration = ($row[$startcol + 10] !== null) ? (int) $row[$startcol + 10] : null;
- $this->duration_type = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
- $this->created_at = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
- $this->updated_at = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
- $this->partner_id = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
- $this->display_in_search = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
- $this->group_id = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null;
- $this->plays = ($row[$startcol + 17] !== null) ? (int) $row[$startcol + 17] : null;
- $this->description = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
- $this->media_date = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
- $this->admin_tags = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
- $this->moderation_status = ($row[$startcol + 21] !== null) ? (int) $row[$startcol + 21] : null;
- $this->moderation_count …
Large files files are truncated, but you can click here to view the full file