@@ 578-612 (lines=35) @@ | ||
575 | * @return int next starting column |
|
576 | * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. |
|
577 | */ |
|
578 | public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) |
|
579 | { |
|
580 | try { |
|
581 | ||
582 | $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : BannerImageI18nTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; |
|
583 | $this->id = (null !== $col) ? (int) $col : null; |
|
584 | ||
585 | $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : BannerImageI18nTableMap::translateFieldName('Locale', TableMap::TYPE_PHPNAME, $indexType)]; |
|
586 | $this->locale = (null !== $col) ? (string) $col : null; |
|
587 | ||
588 | $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : BannerImageI18nTableMap::translateFieldName('Src', TableMap::TYPE_PHPNAME, $indexType)]; |
|
589 | $this->src = (null !== $col) ? (string) $col : null; |
|
590 | ||
591 | $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : BannerImageI18nTableMap::translateFieldName('Name', TableMap::TYPE_PHPNAME, $indexType)]; |
|
592 | $this->name = (null !== $col) ? (string) $col : null; |
|
593 | ||
594 | $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : BannerImageI18nTableMap::translateFieldName('Clicks', TableMap::TYPE_PHPNAME, $indexType)]; |
|
595 | $this->clicks = (null !== $col) ? (int) $col : null; |
|
596 | ||
597 | $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : BannerImageI18nTableMap::translateFieldName('Description', TableMap::TYPE_PHPNAME, $indexType)]; |
|
598 | $this->description = (null !== $col) ? (string) $col : null; |
|
599 | $this->resetModified(); |
|
600 | ||
601 | $this->setNew(false); |
|
602 | ||
603 | if ($rehydrate) { |
|
604 | $this->ensureConsistency(); |
|
605 | } |
|
606 | ||
607 | return $startcol + 6; // 6 = BannerImageI18nTableMap::NUM_HYDRATE_COLUMNS. |
|
608 | ||
609 | } catch (Exception $e) { |
|
610 | throw new PropelException(sprintf('Error populating %s object', '\\xbanners\\models\\BannerImageI18n'), 0, $e); |
|
611 | } |
|
612 | } |
|
613 | ||
614 | /** |
|
615 | * Checks and repairs the internal consistency of the object. |
@@ 595-629 (lines=35) @@ | ||
592 | * @return int next starting column |
|
593 | * @throws PropelException - Any caught Exception will be rewrapped as a PropelException. |
|
594 | */ |
|
595 | public function hydrate($row, $startcol = 0, $rehydrate = false, $indexType = TableMap::TYPE_NUM) |
|
596 | { |
|
597 | try { |
|
598 | ||
599 | $col = $row[TableMap::TYPE_NUM == $indexType ? 0 + $startcol : BannersTableMap::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType)]; |
|
600 | $this->id = (null !== $col) ? (int) $col : null; |
|
601 | ||
602 | $col = $row[TableMap::TYPE_NUM == $indexType ? 1 + $startcol : BannersTableMap::translateFieldName('Place', TableMap::TYPE_PHPNAME, $indexType)]; |
|
603 | $this->place = (null !== $col) ? (string) $col : null; |
|
604 | ||
605 | $col = $row[TableMap::TYPE_NUM == $indexType ? 2 + $startcol : BannersTableMap::translateFieldName('Width', TableMap::TYPE_PHPNAME, $indexType)]; |
|
606 | $this->width = (null !== $col) ? (int) $col : null; |
|
607 | ||
608 | $col = $row[TableMap::TYPE_NUM == $indexType ? 3 + $startcol : BannersTableMap::translateFieldName('Height', TableMap::TYPE_PHPNAME, $indexType)]; |
|
609 | $this->height = (null !== $col) ? (int) $col : null; |
|
610 | ||
611 | $col = $row[TableMap::TYPE_NUM == $indexType ? 4 + $startcol : BannersTableMap::translateFieldName('Effects', TableMap::TYPE_PHPNAME, $indexType)]; |
|
612 | $this->effects = (null !== $col) ? (string) $col : null; |
|
613 | ||
614 | $col = $row[TableMap::TYPE_NUM == $indexType ? 5 + $startcol : BannersTableMap::translateFieldName('PageType', TableMap::TYPE_PHPNAME, $indexType)]; |
|
615 | $this->page_type = (null !== $col) ? (string) $col : null; |
|
616 | $this->resetModified(); |
|
617 | ||
618 | $this->setNew(false); |
|
619 | ||
620 | if ($rehydrate) { |
|
621 | $this->ensureConsistency(); |
|
622 | } |
|
623 | ||
624 | return $startcol + 6; // 6 = BannersTableMap::NUM_HYDRATE_COLUMNS. |
|
625 | ||
626 | } catch (Exception $e) { |
|
627 | throw new PropelException(sprintf('Error populating %s object', '\\xbanners\\models\\Banners'), 0, $e); |
|
628 | } |
|
629 | } |
|
630 | ||
631 | /** |
|
632 | * Checks and repairs the internal consistency of the object. |