public function createListElement( core_kernel_classes_Class $listClass, $label = '')
    {
        $returnValue = null;

        
        
        if(!is_null($listClass)){
			$level = count($this->getListElements($listClass)) + 1;
        	if(empty($label)) {
	        	$label = __('Element') . ' ' . $level;
	        }
	        $returnValue = $this->createInstance($listClass, $label);
	        $this->bindProperties($returnValue, array(TaoOntology::PROPERTY_LIST_LEVEL => count($this->getListElements($listClass, false))));
        }
        

        return $returnValue;
    }
public function createListElement( core_kernel_classes_Class $listClass, $label = '')
    {
        $returnValue = null;

        
        
        if(!is_null($listClass)){
			$level = count($this->getListElements($listClass)) + 1;
        	if(empty($label)) {
	        	$label = __('Element') . ' ' . $level;
	        }
	        $returnValue = $this->createInstance($listClass, $label);
	        $this->bindProperties($returnValue, array(TaoOntology::PROPERTY_LIST_LEVEL => count($this->getListElements($listClass, false))));
        }
        

        return $returnValue;
    }
public function createListElement ( core_kernel_classes_Class $ listClass , $ label = '' ) { $ returnValue = null ; if ( ! is_null ( $ listClass ) ) { $ level = count ( $ this -> getListElements ( $ listClass ) ) + 1 ; if ( empty ( $ label ) ) { $ label = __ ( 'Element' ) . ' ' . $ level ; } $ returnValue = $ this -> createInstance ( $ listClass , $ label ) ; $ this -> bindProperties ( $ returnValue , array ( TaoOntology :: PROPERTY_LIST_LEVEL => count ( $ this -> getListElements ( $ listClass , false ) ) ) ) ; } return $ returnValue ; }
add a new element to a list

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Class listClass
@param  string label
@return core_kernel_classes_Resource
add a new element to a list