public function initElements()
	{
		//create the element to select the import format
		$formatElt = tao_helpers_form_FormFactory::getElement('importHandler', 'Radiobox');
		$formatElt->setDescription(__('Choose import format'));
		$formatElt->addValidator(tao_helpers_form_FormFactory::getValidator('NotEmpty')); // should never happen anyway
		$importHandlerOptions= array();
		foreach ($this->importHandlers as $importHandler) {
			$importHandlerOptions[get_class($importHandler)] = $importHandler->getLabel();
		}
		$formatElt->setOptions($importHandlerOptions);
		

		$classUriElt = tao_helpers_form_FormFactory::getElement('classUri', 'Hidden');
//		$classUriElt->setValue($class->getUri());
		$this->form->addElement($classUriElt);

		$classUriElt = tao_helpers_form_FormFactory::getElement('id', 'Hidden');
		$this->form->addElement($classUriElt);
		
		$this->form->addElement($formatElt);

		if (!is_null($this->subForm)) {
//			load dynamically the method regarding the selected format
			$this->form->setElements(array_merge($this->form->getElements(), $this->subForm->getElements()));
			foreach ($this->subForm->getGroups() as $key => $group) {
				$this->form->createGroup($key,$group['title'],$group['elements'],$group['options']);
			}
		}
	}
public function initElements()
	{
		//create the element to select the import format
		$formatElt = tao_helpers_form_FormFactory::getElement('importHandler', 'Radiobox');
		$formatElt->setDescription(__('Choose import format'));
		$formatElt->addValidator(tao_helpers_form_FormFactory::getValidator('NotEmpty')); // should never happen anyway
		$importHandlerOptions= array();
		foreach ($this->importHandlers as $importHandler) {
			$importHandlerOptions[get_class($importHandler)] = $importHandler->getLabel();
		}
		$formatElt->setOptions($importHandlerOptions);
		

		$classUriElt = tao_helpers_form_FormFactory::getElement('classUri', 'Hidden');
//		$classUriElt->setValue($class->getUri());
		$this->form->addElement($classUriElt);

		$classUriElt = tao_helpers_form_FormFactory::getElement('id', 'Hidden');
		$this->form->addElement($classUriElt);
		
		$this->form->addElement($formatElt);

		if (!is_null($this->subForm)) {
//			load dynamically the method regarding the selected format
			$this->form->setElements(array_merge($this->form->getElements(), $this->subForm->getElements()));
			foreach ($this->subForm->getGroups() as $key => $group) {
				$this->form->createGroup($key,$group['title'],$group['elements'],$group['options']);
			}
		}
	}
public function initElements ( ) { //create the element to select the import format $ formatElt = tao_helpers_form_FormFactory :: getElement ( 'importHandler' , 'Radiobox' ) ; $ formatElt -> setDescription ( __ ( 'Choose import format' ) ) ; $ formatElt -> addValidator ( tao_helpers_form_FormFactory :: getValidator ( 'NotEmpty' ) ) ; // should never happen anyway $ importHandlerOptions = array ( ) ; foreach ( $ this -> importHandlers as $ importHandler ) { $ importHandlerOptions [ get_class ( $ importHandler ) ] = $ importHandler -> getLabel ( ) ; } $ formatElt -> setOptions ( $ importHandlerOptions ) ; $ classUriElt = tao_helpers_form_FormFactory :: getElement ( 'classUri' , 'Hidden' ) ; //		$classUriElt->setValue($class->getUri()); $ this -> form -> addElement ( $ classUriElt ) ; $ classUriElt = tao_helpers_form_FormFactory :: getElement ( 'id' , 'Hidden' ) ; $ this -> form -> addElement ( $ classUriElt ) ; $ this -> form -> addElement ( $ formatElt ) ; if ( ! is_null ( $ this -> subForm ) ) { //			load dynamically the method regarding the selected format $ this -> form -> setElements ( array_merge ( $ this -> form -> getElements ( ) , $ this -> subForm -> getElements ( ) ) ) ; foreach ( $ this -> subForm -> getGroups ( ) as $ key => $ group ) { $ this -> form -> createGroup ( $ key , $ group [ 'title' ] , $ group [ 'elements' ] , $ group [ 'options' ] ) ; } } }
Inits the element to select the importhandler
and takes over the elements of the import form

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@return mixed
Inits the element to select the importhandler and takes over the elements of the import form