本文整理汇总了PHP中BizSystem::getVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP BizSystem::getVersion方法的具体用法?PHP BizSystem::getVersion怎么用?PHP BizSystem::getVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BizSystem
的用法示例。
在下文中一共展示了BizSystem::getVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSystemUserData
public function getSystemUserData($sendContact = 1)
{
//sendContact = 0 ; don't send contact info
//sendContact = 1 ; send contact info
$contactRec = array();
if ($sendContact) {
$profileId = BizSystem::getUserProfile("profile_Id");
$recArr = BizSystem::getObject("contact.do.ContactDO")->fetchById($profileId);
$contactRec['name'] = $recArr['display_name'];
$contactRec['company'] = $recArr['company'];
$contactRec['email'] = $recArr['email'];
$contactRec['mobile'] = $recArr['mobile'];
$contactRec['phone'] = $recArr['phone'];
}
$system_uuid = $this->getSystemUUID();
$system_name = DEFAULT_SYSTEM_NAME;
$system_language = DEFAULT_LANGUAGE;
$system_url = SITE_URL;
$system_cubi_ver = $this->getVersion();
$system_openbiz_ver = BizSystem::getVersion();
$system_port = $_SERVER['SERVER_PORT'];
$system_admin = $_SERVER['SERVER_ADMIN'];
$internal_ip_address = $_SERVER['SERVER_ADDR'];
if (function_exists("ioncube_server_data")) {
$server_data = ioncube_server_data();
} else {
$server_data = "";
}
$systemRec = array("internal_ipaddr" => $internal_ip_address, "language" => $system_language, "system_name" => $system_name, "system_uuid" => $system_uuid, "system_url" => $system_url, "system_admin" => $system_admin, "system_port" => $system_port, "system_cubi_ver" => $system_cubi_ver, "system_openbiz_ver" => $system_openbiz_ver, "system_server_data" => $server_data);
$params = array("contact_data" => $contactRec, "system_data" => $systemRec);
return $params;
}
示例2: dirname
<?php
/**
* Openbiz Cubi Application Platform
*
* LICENSE http://code.google.com/p/openbiz-cubi/wiki/CubiLicense
*
* @package example
* @copyright Copyright (c) 2005-2011, Openbiz Technology LLC
* @license http://code.google.com/p/openbiz-cubi/wiki/CubiLicense
* @link http://code.google.com/p/openbiz-cubi/
* @version $Id: index.php 5185 2013-01-19 15:34:13Z hellojixian@gmail.com $
*/
//include openbiz initail script
require_once dirname(dirname(__FILE__)) . '/bin/app_init.php';
//output a Openbiz Framework version
echo "Openbiz Framework Version: " . BizSystem::getVersion();