本文整理汇总了PHP中WFXMLHelper::getElements方法的典型用法代码示例。如果您正苦于以下问题:PHP WFXMLHelper::getElements方法的具体用法?PHP WFXMLHelper::getElements怎么用?PHP WFXMLHelper::getElements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WFXMLHelper
的用法示例。
在下文中一共展示了WFXMLHelper::getElements方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setManifest
private function setManifest($manifest = null)
{
$values = array('name', 'version', 'description', 'tag');
foreach ($values as $value) {
$this->parent->set($value, WFXMLHelper::getElement($manifest, $value));
}
$elements = array('administration', 'site', 'tinymce');
foreach ($elements as $element) {
$this->set($element, WFXMLHelper::getElements($manifest, $element));
}
}
示例2: setManifest
function setManifest($manifest)
{
// element
foreach (array('name', 'version', 'description', 'tag') as $item) {
$this->set($item, WFXMLHelper::getElement($manifest, $item));
}
// elements
foreach (array('administration', 'site', 'tinymce') as $item) {
$this->set($item, WFXMLHelper::getElements($manifest, $item));
}
return true;
}
示例3: setManifest
/**
* Setup manifest data
* @param object $manifest
*/
function setManifest($manifest)
{
// element
foreach (array('name', 'version', 'description', 'installfile', 'uninstallfile') as $item) {
$this->set($item, WFXMLHelper::getElement($manifest, $item));
}
// attribute
foreach (array('folder', 'extension', 'core') as $item) {
$this->set($item, WFXMLHelper::getAttribute($manifest, $item));
}
// elements
foreach (array('files', 'languages', 'media') as $item) {
$this->set($item, WFXMLHelper::getElements($manifest, $item));
}
return true;
}
示例4: setManifest
private function setManifest()
{
$manifest = $this->parent->getManifest();
$values = array('name', 'description', 'install.script', 'uninstall.script', 'icon');
foreach ($values as $value) {
$this->parent->set($value, WFXMLHelper::getElement($manifest, $value));
}
$attributes = array('version', 'plugin', 'group', 'type', 'folder', 'row', 'extension');
foreach ($attributes as $attribute) {
$this->set($attribute, WFXMLHelper::getAttribute($manifest, $attribute));
}
$elements = array('files', 'languages', 'media');
foreach ($elements as $element) {
$this->set($element, WFXMLHelper::getElements($manifest, $element));
}
}
示例5: setManifest
/**
* Setup manifest data
* @param object $manifest
*/
private function setManifest($manifest)
{
// element
foreach (array('name', 'version', 'description', 'installfile', 'uninstallfile', 'icon') as $item) {
$this->set($item, WFXMLHelper::getElement($manifest, $item));
}
// attribute
foreach (array('group', 'type', 'plugin', 'core', 'editable', 'row') as $item) {
$this->set($item, WFXMLHelper::getAttribute($manifest, $item));
}
// elements
foreach (array('files', 'languages', 'media') as $item) {
$this->set($item, WFXMLHelper::getElements($manifest, $item));
}
return true;
}