本文整理匯總了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;
}