Difference between revisions of "API:EPrints/MetaField/Multilang"

From EPrints Documentation
Jump to: navigation, search
(New page: <!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost. -...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<!-- Pod2Wiki=_preamble_  
 
<!-- Pod2Wiki=_preamble_  
This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost.
+
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.
  -->{{Pod2Wiki}}{{API:Source|file=EPrints/MetaField/Multilang.pm|package_name=EPrints::MetaField::Multilang}}[[Category:API|Multilang]]<!-- End of Pod2Wiki -->
+
  -->{{API}}{{Pod2Wiki}}{{API:Source|file=perl_lib/EPrints/MetaField/Multilang.pm|package_name=EPrints::MetaField::Multilang}}[[Category:API|MULTILANG]][[Category:API:EPrints/MetaField|MULTILANG]][[Category:API:EPrints/MetaField/Multilang|MULTILANG]]<div><!-- Edit below this comment -->
<!-- Pod2Wiki=head_name -->=NAME=
+
 
 +
 
 +
<!-- Pod2Wiki=_private_ --><!-- Pod2Wiki=head_name -->
 +
==NAME==
 
'''EPrints::MetaField::Multilang''' - Subclass of compound for multilingual data.
 
'''EPrints::MetaField::Multilang''' - Subclass of compound for multilingual data.
  
<!-- End of Pod2Wiki -->
+
<!-- Edit below this comment -->
<!-- Pod2Wiki=head_description -->=DESCRIPTION=
+
 
 +
 
 +
<!-- Pod2Wiki= -->
 +
<!-- Pod2Wiki=head_synopsis -->
 +
==SYNOPSIS==
 +
<source lang="perl">{
 +
name => "title",
 +
type => "multilang",
 +
multiple => 1,
 +
fields => [
 +
{ sub_name => "title", type => "text", },
 +
],
 +
},</source>
 +
 
 +
<!-- Edit below this comment -->
 +
 
 +
 
 +
<!-- Pod2Wiki= -->
 +
<!-- Pod2Wiki=head_description -->
 +
==DESCRIPTION==
 
not done
 
not done
  
<!-- End of Pod2Wiki -->
+
* $value = $field-&gt;lang_value( $langid, $value )
<!-- Pod2Wiki=head_undocumented_methods -->=UNDOCUMENTED METHODS=
+
: Returns the most local language value for $langid.
{{API:Undocumented Methods}}<!-- End of Pod2Wiki -->
+
 
<!-- Pod2Wiki=item_get_property_defaults -->==get_property_defaults==
+
: If $langid is undefined uses the current language.
 +
 
 +
<!-- Pod2Wiki=head_copyright -->
 +
==COPYRIGHT==
 +
: Copyright 2000-2011 University of Southampton.
 +
 
 +
: This file is part of EPrints http://www.eprints.org/.
 +
 
 +
: EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  
<!-- End of Pod2Wiki -->
+
: EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
<!-- Pod2Wiki=item_get_search_conditions_not_ex -->==get_search_conditions_not_ex==
 
  
<!-- End of Pod2Wiki -->
+
: You should have received a copy of the GNU Lesser General Public License along with EPrints.  If not, see http://www.gnu.org/licenses/.
<!-- Pod2Wiki=item_ordervalue -->==ordervalue==
 
  
<!-- End of Pod2Wiki -->
+
<!-- Edit below this comment -->
<!-- Pod2Wiki=item_render_value -->==render_value==
 
  
<!-- End of Pod2Wiki -->
 
<!-- Pod2Wiki=item_value_to_langhash -->==value_to_langhash==
 
  
<!-- End of Pod2Wiki -->
+
<!-- Pod2Wiki= -->
<!-- Pod2Wiki=_postamble_ --><!-- End of Pod2Wiki -->
+
<!-- Pod2Wiki=_postamble_ -->
 +
<!-- Edit below this comment -->

Latest revision as of 09:57, 22 January 2013

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::MetaField::Multilang - Subclass of compound for multilingual data.


SYNOPSIS

{
	name => "title",
	type => "multilang",
	multiple => 1,
	fields => [
		{ sub_name => "title", type => "text", },
	],
},


DESCRIPTION

not done

  • $value = $field->lang_value( $langid, $value )
Returns the most local language value for $langid.
If $langid is undefined uses the current language.

COPYRIGHT

Copyright 2000-2011 University of Southampton.
This file is part of EPrints http://www.eprints.org/.
EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.