public function getLanguageByCode($code)
    {
        $returnValue = null;


        $langClass = new core_kernel_classes_Class(static::CLASS_URI_LANGUAGES);
	    $langs = $langClass->searchInstances(array(
            OntologyRdf::RDF_VALUE => $code
	    ), array(
	    	'like' => false
	    ));
	    if (count($langs) == 1) {
	    	$returnValue = current($langs);
	    } else {
	    	common_Logger::w('Could not find language with code '.$code);
	    }


        return $returnValue;
    }
public function getLanguageByCode($code)
    {
        $returnValue = null;


        $langClass = new core_kernel_classes_Class(static::CLASS_URI_LANGUAGES);
	    $langs = $langClass->searchInstances(array(
            OntologyRdf::RDF_VALUE => $code
	    ), array(
	    	'like' => false
	    ));
	    if (count($langs) == 1) {
	    	$returnValue = current($langs);
	    } else {
	    	common_Logger::w('Could not find language with code '.$code);
	    }


        return $returnValue;
    }
public function getLanguageByCode ( $ code ) { $ returnValue = null ; $ langClass = new core_kernel_classes_Class ( static :: CLASS_URI_LANGUAGES ) ; $ langs = $ langClass -> searchInstances ( array ( OntologyRdf :: RDF_VALUE => $ code ) , array ( 'like' => false ) ) ; if ( count ( $ langs ) == 1 ) { $ returnValue = current ( $ langs ) ; } else { common_Logger :: w ( 'Could not find language with code ' . $ code ) ; } return $ returnValue ; }
Short description of method getLanguageByCode

@access public
@author Joel Bout, <joel.bout@tudor.lu>
@param  string $code
@return core_kernel_classes_Resource|null
Short description of method getLanguageByCode