本文整理汇总了PHP中MessageCache::addMessages方法的典型用法代码示例。如果您正苦于以下问题:PHP MessageCache::addMessages方法的具体用法?PHP MessageCache::addMessages怎么用?PHP MessageCache::addMessages使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MessageCache
的用法示例。
在下文中一共展示了MessageCache::addMessages方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
global $wgOut, $wgUser, $wgMessageCache;
$wgOut = $this;
$wgUser = new User(2);
$wgMessageCache = new MessageCache();
$wgMessageCache->addMessages(array('rdf' => 'Rdf', 'rdf-inpage' => "Embedded In-page Turtle", 'rdf-dcmes' => "Dublin Core Metadata Element Set", 'rdf-cc' => "Creative Commons", 'rdf-image' => "Embedded images", 'rdf-linksfrom' => "Links from the page", 'rdf-links' => "All links", 'rdf-history' => "Historical versions", 'rdf-interwiki' => "Interwiki links", 'rdf-categories' => "Categories", 'rdf-target' => "Target page", 'rdf-modelnames' => "Model(s)", 'rdf-format' => "Output format", 'rdf-output-xml' => "XML", 'rdf-output-turtle' => "Turtle", 'rdf-output-ntriples' => "NTriples", 'rdf-instructions' => "Select the target page and RDF models you're interested in."));
MwRdf::$ModelMakers = array('MwRdf_CreativeCommons_Modeler', 'MwRdf_LinksFrom_Modeler', 'MwRdf_LinksTo_Modeler', 'MwRdf_InPage_Modeler', 'MwRdf_DCmes_Modeler', 'MwRdf_History_Modeler', 'MwRdf_Image_Modeler', 'MwRdf_Categories_Modeler', 'MwRdf_Interwiki_Modeler');
MwRdf::ShowForm();
}