本文整理汇总了PHP中G::pr方法的典型用法代码示例。如果您正苦于以下问题:PHP G::pr方法的具体用法?PHP G::pr怎么用?PHP G::pr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类G
的用法示例。
在下文中一共展示了G::pr方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sendActionsByEmail
//.........这里部分代码省略.........
if ($configuration['ABE_TYPE'] != '') {
// Email
$_SESSION['CURRENT_DYN_UID'] = $configuration['DYN_UID'];
$scriptCode = '';
// foreach ($dynaform->fields as $fieldName => $field) {
// if ($field->type == 'submit') {
// unset($dynaform->fields[$fieldName]);
// }
// }
$__ABE__ = '';
$link = (G::is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/services/ActionsByEmail';
switch ($configuration['ABE_TYPE']) {
case 'LINK':
// $__ABE__ .= $dynaform->render(PATH_FEATURES . 'actionsByEmail/xmlform.html', $scriptCode) . '<br />';
$__ABE__ .= '<a href="' . $link . 'DataForm?APP_UID=' . G::encrypt($data->APP_UID, URL_KEY) . '&DEL_INDEX=' . G::encrypt($data->DEL_INDEX, URL_KEY) . '&DYN_UID=' . G::encrypt($configuration['DYN_UID'], URL_KEY) . '&ABER=' . G::encrypt($abeRequest['ABE_REQ_UID'], URL_KEY) . '" target="_blank">Please complete this form</a>';
break;
// coment
case 'FIELD':
$variableService = new \ProcessMaker\Services\Api\Project\Variable();
$variables = $variableService->doGetVariables($caseFields['PRO_UID']);
$field = new stdClass();
$field->label = 'Test';
$field->type = 'dropdown';
$field->options = array();
$actionField = str_replace('@@', '', $configuration['ABE_ACTION_FIELD']);
$dynaform = $configuration['DYN_UID'];
$variables = G::json_decode($configuration['DYN_CONTENT'], true);
if(isset($variables['items'][0]['items'])){
$fields = $variables['items'][0]['items'];
foreach ($fields as $key => $value) {
foreach($value as $var){ G::pr($var);
if(isset($var['variable'])){
if ($var['variable'] == $actionField) {
$field->label = $var['label'];
$field->type = $var['type'];
$values = $var['options'];
foreach ($values as $val){
$field->options[$val['value']] = $val['value'];
}
}
}
}
}
}
G::LoadClass('pmDynaform');
$obj = new pmDynaform($configuration['DYN_UID']);
$configuration['CURRENT_DYNAFORM'] = $configuration['DYN_UID'];
$file = $obj->printPmDynaformAbe($configuration);
$__ABE__ .= $file;
$__ABE__ .= '<strong>' . $field->label . '</strong><br /><table align="left" border="0"><tr>';
switch ($field->type) {
case 'dropdown':
case 'radiogroup':
$index = 1;
$__ABE__.='<br /><td><table align="left" cellpadding="2"><tr>';
foreach ($field->options as $optValue => $optName) {
$__ABE__ .= '<td align="center"><a style="text-decoration: none; color: #000; background-color: #E5E5E5; ';
$__ABE__ .= 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#EFEFEF, endColorstr=#BCBCBC); ';
$__ABE__ .= 'background-image: -webkit-gradient(linear, left top, left bottom, from(#EFEFEF), #BCBCBC); ';
$__ABE__ .= 'background-image: -webkit-linear-gradient(top, #EFEFEF, #BCBCBC); ';
$__ABE__ .= 'background-image: -moz-linear-gradient(top, #EFEFEF, #BCBCBC); background-image: -ms-linear-gradient(top, #EFEFEF, #BCBCBC); ';
$__ABE__ .= 'background-image: -o-linear-gradient(top, #EFEFEF, #BCBCBC); border: 1px solid #AAAAAA; ';
$__ABE__ .= 'border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); ';
示例2: getResultQry
public function getResultQry($sNameTable, $sfield, $sCondition)
{
try {
require_once "classes/model/LicenseManager.php";
$oCriteria = new Criteria('workflow');
$oCriteria->addSelectColumn(LicenseManagerPeer::LICENSE_USER);
$oCriteria->addSelectColumn(LicenseManagerPeer::LICENSE_START);
$oCriteria->addSelectColumn(LicenseManagerPeer::LICENSE_PATH);
$oCriteria->addSelectColumn(LicenseManagerPeer::LICENSE_DATA);
$oCriteria->add(LicenseManagerPeer::LICENSE_STATUS, 'ACTIVE');
$oDataset = LicenseManagerPeer::doSelectRS($oCriteria);
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$oDataset->next();
$aRow = $oDataset->getRow();
} catch (Exception $e) {
G::pr($e);
$aRow = array();
}
return $aRow;
}
示例3: array
die;
break;
default:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die;
break;
}
}
// lets display the items
$items[] = array('id' => 'char', 'title' => 'char', 'type' => 'char', 'creator' => 'char', 'modifiedBy' => 'char', 'filename' => 'char', 'size' => 'char', 'mime' => 'char');
//***************** Skins **************************
$aFiles = array();
if ($handle = opendir(PATH_SKINS)) {
while (false !== ($file = readdir($handle))) {
G::pr($file);
$filename = substr($file, 0, strrpos($file, '.'));
// list of no complete skins
$aFilterSkinsList = array('blank', 'green', 'raw', 'tracker', 'iphone', 'green-submenu', 'extJsInitLoad', 'extJs');
if (!is_dir(PATH_SKINS . $file)) {
if (!in_array($filename, $aFilterSkinsList) && !strpos($file, '.tar', 1)) {
if (!isset($aFiles[$filename])) {
$aFiles[$filename] = 0;
}
if (strpos($file, '.php', 1)) {
$aFiles[$filename] += 1;
}
if (strpos($file, '.html', 1)) {
$aFiles[$filename] += 2;
}
}
示例4: executeQuery
$user = executeQuery("SELECT USR_FIRSTNAME,USR_LASTNAME FROM USERS WHERE USR_UID='$usr_uid'");
$firstname = $user[1]['USR_FIRSTNAME'];
$lastname = $user[1]['USR_LASTNAME'];
//Load the variables
$guid = $_POST['form']['GUID'];
$profile_centre = $_POST['form']['COST_CENTRE'];
$mileage_member_no = $_POST['form']['MILEAGE_MEMBER_NO'];
$oversea_claim_id = $_POST['form']['OVERSEA_CLAIM_CLASSIFICATION'];
$domest_expenses = $_POST['form']['DOMEST_EXPENSES_LIMIT'];
$domest_enter = $_POST['form']['DOMEST_ENTERTAINMENT_LIMIT'];
$domest_medical = $_POST['form']['DOMEST_MEDICAL_LIMIT'];
$domest_mobile = $_POST['form']['DOMEST_MOBILE_LIMIT'];
$domest_trans = $_POST['form']['DOMEST_TRANSPORTATION_LIMIT'];
}*/
$REPORT_GRID = array();
$aDataRow = $_POST['grid'];
G::pr($aDataRow);die;
foreach($aDataRow as $rows)
{
//$GRID_INSUMOS_IMP[$count]['TXT_DESCRIPCION'] = $rows[0];
}
$POST = $_POST['grid'];
$G_PUBLISH->AddContent( 'dynaform', 'xmlform', 'er2/setup_form','',$POST);
G::RenderPage( "publish","raw");
?>
示例5: switch
$oServerConf->setHeartbeatProperty('HB_BEAT_URL', 'http://heartbeat.processmaker.com/syspmLicenseSrv/en/green/services/beat', 'HEART_BEAT_CONF');
switch ($request) {
case 'processInformation':
try {
$heartBeatUrl = $oServerConf->getHeartbeatProperty('HB_BEAT_URL', 'HEART_BEAT_CONF');
//Test connection
if (!validateConnectivity($heartBeatUrl)) {
$oServerConf->setHeartbeatProperty('HB_NEXT_BEAT_DATE', strtotime("+1 day"), 'HEART_BEAT_CONF');
throw new Exception("Heartbeat::No connection");
}
//Build Data to be sent
$params = buildData();
//Send the information
postHeartBeat($params);
} catch (Exception $e) {
G::pr($e->getMessage());
}
break;
}
function validateConnectivity($url)
{
ini_set('allow_url_fopen', 1);
$sContent = file_get_conditional_contents($url);
$sw_connect = true;
//if ($sContent == '' || $sContent === false || strpos ( $sContent, 'address location' ) === false ) { 4
if ($sContent == '' || $sContent === false) {
$sw_connect = false;
}
return $sw_connect;
}
function file_get_conditional_contents($szURL)
示例6: creatingNW
function creatingNW($params)
{
G::pr($_POST);
G::pr("krlossss");
}
示例7: isset
<?php
G::pr($_GET);
if (!empty($_GET['error'])) {
G::pr($_GET);
die;
}
$http = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$host = $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT'] : '');
$endpoint = sprintf('%s://%s/%s/oauth2/token', $http, $host, SYS_SYS);
$code = empty($_GET['code']) ? 'NN' : $_GET['code'];
$clientId = 'x-pm-local-client';
$secret = '179ad45c6ce2cb97cf1029e212046e81';
$userPwd = $clientId . ':' . $secret;
$data = array('grant_type' => 'authorization_code', 'code' => $code);
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERPWD, $userPwd);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
$data = @json_decode(curl_exec($ch));
curl_close($ch);
G::pr((array) $data);
示例8: ReportVar
$_POST['form']['REP_TAB_UID'] = $oReportTable->getRepTabUid();
}
$_POST['form']['REP_TAB_TYPE'] = 'NORMAL';
$oReportTable->update($_POST['form']);
$oReportVar = new ReportVar();
$oReportTables = new ReportTables();
$oReportTables->deleteAllReportVars($_POST['form']['REP_TAB_UID']);
$aFields = array();
if ($isBPMN) {
G::LoadClass("pmDynaform");
$pmDyna = new pmDynaform(array());
$pmDyna->fields["CURRENT_DYNAFORM"] = $sDynUid;
$dataDyna = $pmDyna->getDynaform();
$json = G::json_decode($dataDyna["DYN_CONTENT"]);
$data = $pmDyna->jsonr($json);
G::pr($data);
die;
} else {
$aAux = explode('-', $_POST['form']['REP_TAB_GRID']);
global $G_FORM;
require_once "classes/class.formBatchRouting.php";
$G_FORM = new FormBatchRouting($_POST["form"]["PRO_UID"] . PATH_SEP . $aAux[1], PATH_DYNAFORM, SYS_LANG, false);
$aAux = $G_FORM->getVars(false);
foreach ($aAux as $aField) {
$_POST['form']['FIELDS'][] = $aField['sName'] . '-' . $aField['sType'];
}
}
$aFieldsClases = array();
$i = 1;
$aFieldsClases[$i]['FLD_NAME'] = 'APP_UID';
$aFieldsClases[$i]['FLD_NULL'] = 'off';