Code Duplication    Length = 10-12 lines in 3 locations

programs/utilit/agent_right.class.php 1 location

@@ 175-184 (lines=10) @@
172
	/**
173
	 * @return absences_Agent
174
	 */
175
	public function getAgent()
176
	{
177
		if (!isset($this->agent))
178
		{
179
			$row = $this->getRow();
180
			$this->agent = absences_Agent::getFromIdUser($row['id_user']);
181
		}
182
		
183
		return $this->agent;
184
	}
185
	
186
	
187
	/**

programs/utilit/movement.class.php 1 location

@@ 167-176 (lines=10) @@
164
	/**
165
	 * @return absences_Agent
166
	 */
167
	public function getAgent()
168
	{
169
		if (!isset($this->agent))
170
		{
171
			$row = $this->getRow();
172
			$this->agent = absences_Agent::getFromIdUser($row['id_user']);
173
		}
174
	
175
		return $this->agent;
176
	}
177
	
178
	
179
	

programs/utilit/request.class.php 1 location

@@ 75-86 (lines=12) @@
72
	/**
73
	 * @return absences_Agent
74
	 */
75
	public function getAgent()
76
	{
77
		require_once dirname(__FILE__).'/agent.class.php';
78
	
79
		if (!isset($this->agent))
80
		{
81
			$row = $this->getRow();
82
			$this->agent = absences_Agent::getFromIdUser($row['id_user']);
83
		}
84
	
85
		return $this->agent;
86
	}
87
	
88
	
89