本文整理匯總了PHP中erLhAbstractModelWidgetTheme::movePhoto方法的典型用法代碼示例。如果您正苦於以下問題:PHP erLhAbstractModelWidgetTheme::movePhoto方法的具體用法?PHP erLhAbstractModelWidgetTheme::movePhoto怎麽用?PHP erLhAbstractModelWidgetTheme::movePhoto使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類erLhAbstractModelWidgetTheme
的用法示例。
在下文中一共展示了erLhAbstractModelWidgetTheme::movePhoto方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: unset
unset($data['minimize_image_data']);
}
try {
$widgetTheme->setState($data);
$widgetTheme->saveThis();
foreach ($imgData as $attr => $dataImage) {
$imgDataItem = base64_decode($dataImage);
if ($imgDataItem !== false) {
$dir = 'var/tmpfiles/';
$fileName = 'data.' . $data[$attr . '_data_ext'];
erLhcoreClassChatEventDispatcher::getInstance()->dispatch('theme.temppath', array('dir' => &$dir));
erLhcoreClassFileUpload::mkdirRecursive($dir);
$imgPath = $dir . $fileName;
file_put_contents($imgPath, $imgDataItem);
if (erLhcoreClassImageConverter::isPhotoLocal($imgPath)) {
$widgetTheme->movePhoto($attr, true, $imgPath);
}
}
}
$widgetTheme->updateThis();
} catch (Exception $e) {
$tpl->set('errors', array(erTranslationClassLhTranslation::getInstance()->getTranslation('theme/import', 'Could not import a new theme!')));
}
}
$tpl->set('updated', true);
} else {
$tpl->set('errors', array(erTranslationClassLhTranslation::getInstance()->getTranslation('theme/import', 'Invalid file!')));
}
}
$Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('theme/index'), 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('theme/index', 'Themes')), array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('theme/index', 'Import theme')));
$Result['content'] = $tpl->fetch();