本文整理汇总了PHP中tool::Process方法的典型用法代码示例。如果您正苦于以下问题:PHP tool::Process方法的具体用法?PHP tool::Process怎么用?PHP tool::Process使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tool
的用法示例。
在下文中一共展示了tool::Process方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tool
<?php
/**
* WebsiteBaker Community Edition (WBCE)
* Way Better Content Editing.
* Visit http://wbce.org to learn more and to join the community.
*
* @copyright WebsiteBaker Org. e.V. (2016)
* @license GNU GPL2 (or any later version)
*/
if (!defined('WB_PATH')) {
require '../../config.php';
}
$sArea = 'intro';
$sFile = WB_PATH . '/modules/backend_pages/pages/' . $sArea . '.php';
if (is_readable($sFile)) {
$_GET['tool'] = "backend_pages";
$_GET['area'] = $sArea;
// call tool object and set parameters
$tool = new tool("backend", "backend_pages");
$tool->adminSection = "pages";
$tool->adminAccess = "start";
$tool->returnUrl = ADMIN_URL . '/pages/' . $sArea . '.php';
$tool->Process(true);
} else {
include ADMIN_PATH . '/pages/legacy.' . $sArea . '.php';
}