framework/web/form/CForm.php
protected function getUniqueId()
	{
		if(isset($this->attributes['id']))
			return 'yform_'.$this->attributes['id'];
		else
			return 'yform_'.sprintf('%x',crc32(serialize(array_keys($this->getElements()->toArray()))));
	}
protected function getUniqueId()
	{
		if(isset($this->attributes['id']))
			return 'yform_'.$this->attributes['id'];
		else
			return 'yform_'.sprintf('%x',crc32(serialize(array_keys($this->getElements()->toArray()))));
	}
protected function getUniqueId ( ) { if ( isset ( $ this -> attributes [ 'id' ] ) ) return 'yform_' . $ this -> attributes [ 'id' ] ; else return 'yform_' . sprintf ( '%x' , crc32 ( serialize ( array_keys ( $ this -> getElements ( ) -> toArray ( ) ) ) ) ) ; }
Returns a unique ID that identifies this form in the current page.
@return string the unique ID identifying this form
Returns a unique ID that identifies this form in the current page .