| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -465,7 +465,7 @@ class Database | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @param resource  $connection (optional)   The database server connection, for detailed description see the method query(). | 
					 | 
					 | 
					 | 
					     * @param resource  $connection (optional)   The database server connection, for detailed description see the method query(). | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @param bool $addFix | 
					 | 
					 | 
					 | 
					     * @param bool $addFix | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @return string   he escaped string | 
					 | 
					 | 
					 | 
					     * @return string   he escaped string | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @author Yannick Warnier <yannick.warnier@dokeos.com> | 
					 | 
					 | 
					 | 
					     * @author Yannick Warnier <yannick.warnier@beeznest.com> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University | 
					 | 
					 | 
					 | 
					     * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     */ | 
					 | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static function escape_string($string, $connection = null, $addFix = true) | 
					 | 
					 | 
					 | 
					    public static function escape_string($string, $connection = null, $addFix = true) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -516,7 +516,7 @@ class Database | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @param   string      Optional class name to instanciate | 
					 | 
					 | 
					 | 
					     * @param   string      Optional class name to instanciate | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @param   array       Optional array of parameters | 
					 | 
					 | 
					 | 
					     * @param   array       Optional array of parameters | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @return  object      Object of class StdClass or the required class, containing the query result row | 
					 | 
					 | 
					 | 
					     * @return  object      Object of class StdClass or the required class, containing the query result row | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @author  Yannick Warnier <yannick.warnier@dokeos.com> | 
					 | 
					 | 
					 | 
					     * @author  Yannick Warnier <yannick.warnier@beeznest.com> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     */ | 
					 | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static function fetch_object($result, $class = null, $params = null) { | 
					 | 
					 | 
					 | 
					    public static function fetch_object($result, $class = null, $params = null) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return !empty($class) ? (is_array($params) ? mysql_fetch_object($result, $class, $params) : mysql_fetch_object($result, $class)) : mysql_fetch_object($result); | 
					 | 
					 | 
					 | 
					        return !empty($class) ? (is_array($params) ? mysql_fetch_object($result, $class, $params) : mysql_fetch_object($result, $class)) : mysql_fetch_object($result); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -665,7 +665,7 @@ class Database | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * Gets the number of rows from the last query result - help achieving database independence | 
					 | 
					 | 
					 | 
					     * Gets the number of rows from the last query result - help achieving database independence | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @param resource      The result | 
					 | 
					 | 
					 | 
					     * @param resource      The result | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @return integer      The number of rows contained in this result | 
					 | 
					 | 
					 | 
					     * @return integer      The number of rows contained in this result | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     * @author Yannick Warnier <yannick.warnier@dokeos.com> | 
					 | 
					 | 
					 | 
					     * @author Yannick Warnier <yannick.warnier@beeznest.com> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					     **/ | 
					 | 
					 | 
					 | 
					     **/ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public static function num_rows($result) { | 
					 | 
					 | 
					 | 
					    public static function num_rows($result) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return is_resource($result) ? mysql_num_rows($result) : false; | 
					 | 
					 | 
					 | 
					        return is_resource($result) ? mysql_num_rows($result) : false; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |