public function getOnePropertyValue( core_kernel_classes_Property $property, $last = false)
    {
        $returnValue = null;
        if($last){
            throw new core_kernel_persistence_Exception('parameter \'last\' for getOnePropertyValue no longer supported');
        };
        
		$options = array(
			'forceDefaultLg' => true,
		    'one' => true
		);  

		$value = $this->getPropertyValues($property, $options);
		
		if (count($value)){
			$returnValue = common_Utils::toResource(current($value));
		}

        return $returnValue;
    }
public function getOnePropertyValue( core_kernel_classes_Property $property, $last = false)
    {
        $returnValue = null;
        if($last){
            throw new core_kernel_persistence_Exception('parameter \'last\' for getOnePropertyValue no longer supported');
        };
        
		$options = array(
			'forceDefaultLg' => true,
		    'one' => true
		);  

		$value = $this->getPropertyValues($property, $options);
		
		if (count($value)){
			$returnValue = common_Utils::toResource(current($value));
		}

        return $returnValue;
    }
public function getOnePropertyValue ( core_kernel_classes_Property $ property , $ last = false ) { $ returnValue = null ; if ( $ last ) { throw new core_kernel_persistence_Exception ( 'parameter \'last\' for getOnePropertyValue no longer supported' ) ; } ; $ options = array ( 'forceDefaultLg' => true , 'one' => true ) ; $ value = $ this -> getPropertyValues ( $ property , $ options ) ; if ( count ( $ value ) ) { $ returnValue = common_Utils :: toResource ( current ( $ value ) ) ; } return $ returnValue ; }
Helper to return one property value, since there is no order
if there are multiple values the value to be returned will be choosen by random

optional parameter $last should NOT be used since it is no longer supported
and will be removed in future versions

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  Property property
@param  boolean last
@return core_kernel_classes_Container
Helper to return one property value since there is no order if there are multiple values the value to be returned will be choosen by random