Code Duplication    Length = 7-7 lines in 5 locations

application/modules/core/models/Base/Route.php 1 location

@@ 915-921 (lines=7) @@
912
     *                     Defaults to TableMap::TYPE_PHPNAME.
913
     * @return mixed Value of field.
914
     */
915
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
916
    {
917
        $pos = RouteTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
918
        $field = $this->getByPosition($pos);
919
920
        return $field;
921
    }
922
923
    /**
924
     * Retrieves a field from the object by Position as specified in the xml schema.

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

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

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

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

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

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

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

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