本文整理汇总了PHP中BxDolCmts::getSystems方法的典型用法代码示例。如果您正苦于以下问题:PHP BxDolCmts::getSystems方法的具体用法?PHP BxDolCmts::getSystems怎么用?PHP BxDolCmts::getSystems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxDolCmts
的用法示例。
在下文中一共展示了BxDolCmts::getSystems方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: check_logged
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details.
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
check_logged();
$sSys = isset($_REQUEST['sys']) ? $_REQUEST['sys'] : '';
$sAction = isset($_REQUEST['action']) && preg_match('/^[A-Za-z_-]+$/', $_REQUEST['action']) ? $_REQUEST['action'] : '';
$iId = (int) $_REQUEST['id'];
bx_import('BxTemplCmtsView');
$aSystems =& BxDolCmts::getSystems();
if ($sSys && $sAction && $iId && isset($aSystems[$sSys])) {
$oCmts = null;
if ($aSystems[$sSys]['class_name']) {
require_once BX_DIRECTORY_PATH_ROOT . $aSystems[$sSys]['class_file'];
$sClassName = $aSystems[$sSys]['class_name'];
$oCmts = new $sClassName($sSys, $iId, true);
} else {
$oCmts = new BxTemplCmtsView($sSys, $iId, true);
}
$sMethod = 'action' . $sAction;
echo $oCmts->{$sMethod}();
}