Commits

kenjis committed 2edb8db

change class name from CI_View_Var to CI_View_data

Comments (0)

Files changed (1)

system/core/Loader.php

 			$this->_ci_cached_vars = array_merge($this->_ci_cached_vars, $_ci_vars);
 		}
 		
-		// If $config['view_default_escaping'] is TRUE, give CI_View_Var objects to view file 
+		// If $config['view_default_escaping'] is TRUE, give CI_View_data objects to view file 
 		// to escape all variables data by default.
 		if (config_item('view_default_escaping'))
 		{
 			{
 				if (is_object($val))
 				{
-					if (get_class($val) === 'CI_View_Var')
+					if (get_class($val) === 'CI_View_data')
 					{
 						$$key = $val;
 					}
 					else
 					{
-						exit("You can't pass objects to views except CI_View_Var objects.");
+						exit("You can't pass objects to views except CI_View_data objects.");
 					}
 				}
 				else
 	 * This function is used to HTML escape all variables in views.
 	 *
 	 * @param	mixed
-	 * @return	object CI_View_Var
+	 * @return	object CI_View_data
 	 */
 	protected function _ci_set_view_object($var) {
 		if (is_array($var))
 		}
 		else
 		{
-			return new CI_View_Var($var);
+			return new CI_View_data($var);
 		}
 	}
 
 		}
 	}
 }
-// END CI_Loader Class
+// END Loader Class
 
 /**
- * View Variable Class
+ * View Data Class
  *
  * To be used as variables in view files for HTML escaped output
  *
  * @category	Loader
  * @link		http://codeigniter.com/user_guide/libraries/loader.html
  */
-class CI_View_Var {
+class CI_View_data {
 	public $val;
 	
 	/**
 		return purify($this->val);
 	}
 }
-// END CI_View_Var Class
+// END View_data Class
 
 /* End of file Loader.php */
 /* Location: ./system/core/Loader.php */