Code Duplication    Length = 10-10 lines in 3 locations

programs/utilit/exportbalance.php 1 location

@@ 108-117 (lines=10) @@
105
	}
106
107
108
	public function getnextfield()
109
	{
110
		if (list($name,$arr) = each($this->dirfields))
111
		{
112
			$this->fieldname = bab_toHtml($name);
113
			$this->fieldlabel = bab_toHtml($arr['name']);
114
			return true;
115
		}
116
		return false;
117
	}
118
119
	/**
120
	 * template method to list available organization

programs/utilit/right_export.class.php 1 location

@@ 326-335 (lines=10) @@
323
    }
324
    
325
    
326
    public function getnextfield()
327
    {
328
        if (list($name,$arr) = each($this->dirfields))
329
        {
330
            $this->fieldname = bab_toHtml($name);
331
            $this->fieldlabel = bab_toHtml($arr['name']);
332
            return true;
333
        }
334
        return false;
335
    }
336
    
337
    
338
    public function getnextorganization()

programs/exportvac.php 1 location

@@ 137-146 (lines=10) @@
134
    }
135
136
137
    public function getnextfield()
138
    {
139
        if (list($name,$arr) = each($this->dirfields))
140
        {
141
            $this->fieldname = bab_toHtml($name);
142
            $this->fieldlabel = bab_toHtml($arr['name']);
143
            return true;
144
        }
145
        return false;
146
    }
147
}
148
149