本文整理汇总了PHP中XMLlist::setAttributesToParse方法的典型用法代码示例。如果您正苦于以下问题:PHP XMLlist::setAttributesToParse方法的具体用法?PHP XMLlist::setAttributesToParse怎么用?PHP XMLlist::setAttributesToParse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XMLlist
的用法示例。
在下文中一共展示了XMLlist::setAttributesToParse方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
//.........这里部分代码省略.........
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/function.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'literal_function':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/literal_function.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'section_995':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/section_995.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'typdoc_995':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/typdoc_995.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'codstatdoc_995':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/codstat_995.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'diacritique':
// Armelle : a priori plus utile
$parser = new XMLlist("{$include_path}/marc_tables/diacritique.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'nivbiblio':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/nivbiblio.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'relationtypeup':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/relationtypeup.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'relationtypedown':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/relationtypedown.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case "etat_demandes":
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/etat_demandes.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case "type_actions":
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/type_actions_demandes.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'relationtype_aut':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/relationtype_aut.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'relationtype_autup':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/relationtype_autup.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'music_key':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/music_key.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'music_form':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/music_form.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'oeuvre_type':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/oeuvre_type.xml");
$parser->analyser();
$this->table = $parser->table;
break;
case 'oeuvre_nature':
$parser = new XMLlist("{$include_path}/marc_tables/{$lang}/oeuvre_nature.xml");
$parser->setAttributesToParse(array(array('name' => "NATURE")));
$parser->analyser();
$this->attributes = $parser->getAttributes();
$this->table = $parser->table;
break;
case 'oeuvre_link':
$parser = new XMLlist_links("{$include_path}/marc_tables/{$lang}/oeuvre_link.xml");
$parser->setAttributesToParse(array(array('name' => 'EXPRESSION', 'default_value' => 'no'), array('name' => 'OTHER_LINK', 'default_value' => 'yes')));
$parser->analyser();
$this->table = $parser->table;
$this->attributes = $parser->getAttributes();
$this->inverse_of = $parser->inverse_of;
break;
default:
$this->table = array();
break;
}
}