Code Duplication    Length = 7-7 lines in 4 locations

application/modules/xbanners/models/Base/BannerImage.php 1 location

@@ 1127-1133 (lines=7) @@
1124
     *                     Defaults to TableMap::TYPE_PHPNAME.
1125
     * @return mixed Value of field.
1126
     */
1127
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
1128
    {
1129
        $pos = BannerImageTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
1130
        $field = $this->getByPosition($pos);
1131
1132
        return $field;
1133
    }
1134
1135
    /**
1136
     * Retrieves a field from the object by Position as specified in the xml schema.

application/modules/xbanners/models/Base/BannerImageI18n.php 1 location

@@ 900-906 (lines=7) @@
897
     *                     Defaults to TableMap::TYPE_PHPNAME.
898
     * @return mixed Value of field.
899
     */
900
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
901
    {
902
        $pos = BannerImageI18nTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
903
        $field = $this->getByPosition($pos);
904
905
        return $field;
906
    }
907
908
    /**
909
     * Retrieves a field from the object by Position as specified in the xml schema.

application/modules/xbanners/models/Base/Banners.php 1 location

@@ 950-956 (lines=7) @@
947
     *                     Defaults to TableMap::TYPE_PHPNAME.
948
     * @return mixed Value of field.
949
     */
950
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
951
    {
952
        $pos = BannersTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
953
        $field = $this->getByPosition($pos);
954
955
        return $field;
956
    }
957
958
    /**
959
     * Retrieves a field from the object by Position as specified in the xml schema.

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 762-768 (lines=7) @@
759
     *                     Defaults to TableMap::TYPE_PHPNAME.
760
     * @return mixed Value of field.
761
     */
762
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
763
    {
764
        $pos = BannersI18nTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
765
        $field = $this->getByPosition($pos);
766
767
        return $field;
768
    }
769
770
    /**
771
     * Retrieves a field from the object by Position as specified in the xml schema.