/*
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
code language:		javascript 1.8
folder name:            files/dclib_5/dcjs_5.0
class name:             DCJS_data
class type:             static
version:                1.0
date:                   20110616
copyright:              massimo cardascia
url:                    www.plustic.de / www.dot-control.com
code style:		whitesmiths style variant - 8 spaces tab - http://en.wikipedia.org/wiki/indent_style
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/

///*	class definition /////////////////////////////////////////////////////////////////////////////////////
function DCJS_data()
	{
///*    class versioning /////////////////////////////////////////////////////////////////////////////////////
	DCJS_data.__s_classVersion = '5.00';			///h : dclib intern class version
	DCJS_data.__s_className = 'DCJS_data';			///h : dclib intern class name
	DCJS_data.__s_classType = 'class';			///h : dclib intern class type

///*    class properties /////////////////////////////////////////////////////////////////////////////////////
	DCJS_data.__i_uid = 0;					///h : stores unique id index

///*    class system init ////////////////////////////////////////////////////////////////////////////////////
	DCJS_data.f_initSystem = function()
		{
		}

///*    class constructor ////////////////////////////////////////////////////////////////////////////////////
	this.f_construct = function()
		{
		}
	this.f_construct();

///*    public static functions //////////////////////////////////////////////////////////////////////////////

///*	------------------------------------------------------------------------------------------------------
	/**
	 * find a jquery object with its data
	 * parsing jquery objects and comparing data with a transmitted search object
	 *
	 * @access public static
	 * @return jquery object
	 *
	*/
	DCJS_data.f_find = function($jqo_base, $o_data)
		{
		///h : properties
		var $i_loop = -1;
		var $i_elements = $jqo_base.length;
		var $jqo_element;
		var $b_equal = false;

		///h : parse transmitted base
		if($i_elements)
			{
			for($i_loop = 0; $i_loop < $i_elements; $i_loop ++)
				{
				$b_equal = true;
				$jqo_element = jQuery($jqo_base[$i_loop]);
				jQuery.each($o_data, function($s_index, $s_value)
					{
					if($jqo_element.data($s_index) != $s_value)
						{
						$b_equal = false;
						return(false);
						}
					});
				if($b_equal == true)
					{
					return($jqo_element);
					}
				}
			}
		}

///*    public functions /////////////////////////////////////////////////////////////////////////////////////

///*    pivate static functions //////////////////////////////////////////////////////////////////////////////

///*    private functions ////////////////////////////////////////////////////////////////////////////////////

        }

///*    direct execution /////////////////////////////////////////////////////////////////////////////////////
DCJS_data();

/*
--------------------------------------------------------------------------------------------------------------
description:
--------------------------------------------------------------------------------------------------------------
DCJS_data is the part of the dclib js framework
it contains some helpfull functions when dealing with html constructs.
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
events:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
getter properties:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------
usage:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
*/
