当前位置: 首页>>代码示例>>PHP>>正文


PHP getValues函数代码示例

本文整理汇总了PHP中getValues函数的典型用法代码示例。如果您正苦于以下问题:PHP getValues函数的具体用法?PHP getValues怎么用?PHP getValues使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getValues函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: performMapping

function performMapping($map, $outputXml)
{
    $outputMap = [];
    foreach ($map as $label => $xpath) {
        //$xpath = '//datafield[@tag="020"]/subfield[@code="a"]';
        if (is_string($xpath)) {
            $values = $outputXml->xpath($xpath);
            if ($values) {
                $values = array_map("getValues", $values);
                $values = array_unique($values);
                //beim array_unique sind die keys nicht mehr unbedingt aufeinanderfolgend,
                //daher kopieren wir die Werte in ein neues Array:
                $values = array_values($values);
                $outputMap[$label] = $values;
            } else {
                $outputMap[$label] = '';
            }
        } else {
            //$label, $xpath['mainPart'], $xpath['value'], $xpath['key']
            $mainPart = $outputXml->xpath($xpath['mainPart']);
            $outputArray = [];
            foreach ($mainPart as $singleMainPart) {
                $value = $singleMainPart->xpath($xpath['value']);
                $key = $singleMainPart->xpath($xpath['key']);
                $additional = $singleMainPart->xpath($xpath['additional']);
                if ($value) {
                    $valueText = getValues($value[0]);
                    if ($additional) {
                        $additionalText = getValues($additional[0]);
                        if (strpos($additionalText, ':') == 1) {
                            $additionalText = substr($additionalText, 2);
                        }
                        $valueText = $valueText . ' <' . $additionalText . '>';
                    }
                    if ($key) {
                        $outputArray[$valueText] = getValues($key[0]);
                    } else {
                        $outputArray[$valueText] = true;
                    }
                }
            }
            $outputMap[$label] = $outputArray;
        }
    }
    return cleanUp($outputMap);
}
开发者ID:kba,项目名称:malibu,代码行数:46,代码来源:lib.php

示例2: checkIfUserExists

function checkIfUserExists($emailCheck, $sql)
{
    $table = 'UserInfo';
    $queryType = 'Select';
    $condition = array('Email', $emailCheck, 'text');
    $types = array('text');
    $columns = array('Email');
    $values = array(null);
    $args = array('column' => $columns, 'value' => $values, 'type' => $types);
    $xml = createXML($table, $args);
    $res = $sql->query($xml, $queryType, $condition);
    $checkValues = getValues($res);
    if (count($checkValues) > 0) {
        return true;
    } else {
        return false;
    }
}
开发者ID:benjiboybenjamin,项目名称:you-mix,代码行数:18,代码来源:Activate.php

示例3: run

/**
 * @param $contactIDs
 */
function run(&$contactIDs)
{
    $chunks =& splitContactIDs($contactIDs);
    foreach ($chunks as $chunk) {
        $values = array();
        getValues($chunk, $values);
        $xml =& generateSolrJSON($values);
        echo $xml;
    }
}
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:13,代码来源:createSolrJSON.php

示例4: run

/**
 * @param $values
 * @param $contactIDs
 * @param $allContactIDs
 */
function run(&$values, &$contactIDs, &$allContactIDs)
{
    $chunks =& splitContactIDs($contactIDs);
    $additionalContactIDs = array();
    foreach ($chunks as $chunk) {
        getValues($chunk, $values, $allContactIDs, $additionalContactIDs);
    }
    if (!empty($additionalContactIDs)) {
        $allContactIDs = $allContactIDs + $additionalContactIDs;
        run($values, $additionalContactIDs, $allContactIDs);
    }
}
开发者ID:FundingWorks,项目名称:civicrm-core,代码行数:17,代码来源:createSyncJSON.php

示例5: getValues

            ?>
);
				var chart3 = new google.visualization.LineChart(document.getElementById('chart3_div')); <?php 
            break;
    }
}
?>


        <?php 
//PM 10 checked?
if (isset($_POST['PM10'])) {
    if ($_POST['PM10'] == "PM10_CONCENTRATION") {
        ?>
		var data3 = new google.visualization.DataTable(<?php 
        getValues("PM10_CONCENTRATION");
        ?>
);
        var chart3 = new google.visualization.LineChart(document.getElementById('chart3_div'));
		<?php 
    }
}
?>
        <?php 
lanuvChartOptions();
?>
        
	}
}
	
开发者ID:nvh3010,项目名称:geosoft,代码行数:29,代码来源:dia2.php

示例6: sqlAddOperation

  function sqlAddOperation($partOperations, $partID) {
    global $opBeginDelimiter;
    global $opEndDelimiter;
    global $dataDelimiter;
    global $allBeginDelimiters;
    global $toolBeginDelimiter;
    global $progBeginDelimiter;
    global $machineBeginDelimiter;
    global $holderBeginDelimiter;
    global $toolHolderBeginDelimiter;

    if ($partOperations == NULL || $partOperations == "") {
      return;
    }
    
    $operationValues = getValues($partOperations, $opBeginDelimiter, $opEndDelimiter);
    $opOnlyDataCount = 0;
    $holderOnlyDataCount = 0;
    $mainProgramId = 0;
    $numOperationValues = count($operationValues);
    $numToolHolderOnlyData = 0;

    for ($idx = 0; $idx < $numOperationValues; $idx++) {
      $operationTokens = $operationValues[$idx];
      $numOpTokens = count($operationTokens);
      for ($curOpToken = 0; $curOpToken < $numOpTokens; $curOpToken++) {
        $beginDelimiter = getBeginDelimiter($operationTokens[$curOpToken]);
        if ($beginDelimiter != "") {
          if ($beginDelimiter == $progBeginDelimiter) {
            $progId = sqlAddProgramForOperation($operationTokens[$curOpToken], $mainProgramId);
              if ($mainProgramId == 0) {
                $mainProgramId = $progId;
              }
          } else if ($beginDelimiter == $toolHolderBeginDelimiter) {
            $toolHolderOnlyData[$numToolHolderOnlyData++] = sqlAddAndGetToolHolderData($operationTokens[$curOpToken]);
	  } else if ($beginDelimiter == $machineBeginDelimiter) {
	    sqlAddMachine($operationTokens[$curOpToken]);
	  }
        } else {
          $operationOnlyData[$opOnlyDataCount++] = $operationTokens[$curOpToken];
        }
      }
      $operationName = $operationOnlyData[0];
      $operationMachineID = $operationOnlyData[1];
      $operationDescription = $operationOnlyData[2];
      $operationCuttingTime = $operationOnlyData[3];
      $operationClampingTime = $operationOnlyData[4];

      $query = "INSERT INTO OPERATIONS (PartID, Name, Machine, Description, CuttingTime, ClampingTime) VALUES ('$partID', '$operationName', '$operationMachineID', '$operationDescription', '$operationCuttingTime', '$operationClampingTime');";  
      $result = sqlQuery($query);
      $opId = mysql_insert_id();

      if (IsSet($toolHolderOnlyData)) {
        $numToolHolderOnlyData = count($toolHolderOnlyData);
        for ($idx = 0; $idx < $numToolHolderOnlyData; $idx++) {
          $toolHolderData = $toolHolderOnlyData[$idx];
          $toolPartNumber = $toolHolderData[0];
  	  $toolId = sqlGetToolIdFromDB($toolPartNumber);
	  $holderName = $toolHolderData[1];
	  $holderId = sqlGetHolderIdFromDB($holderName);
	  $toolRemarks = $toolHolderData[2];
	  $toolOverHang = $toolHolderData[3];
	  $toolLife = $toolHolderData[4];
          $query = "INSERT INTO OPERATION_TOOL_HOLDER_MAPPING (OperationID, ToolID, HolderID, ToolLife, ToolOverHang, ToolRemark) VALUES ('$opId', '$toolId', '$holderId', '$toolLife', '$toolOverHang', '$toolRemark');";
	  $result = sqlQuery($query);
        }
      }
    }
  }
开发者ID:nakultirumalai,项目名称:InventoryManager,代码行数:69,代码来源:sqlAddData.php

示例7: vehicle

<?php

include 'vehicle.php';
$vehicle = new vehicle();
$vehicle . getValues($_POST['data']['id']);
echo json_encode($vehicle);
开发者ID:jshill103,项目名称:trevor,代码行数:6,代码来源:getData.php

示例8: getValues

                        }
                    }
                    // authors
                    $authors = getValues($dbs, 'SELECT a.author_name FROM biblio_author AS ba
                        LEFT JOIN mst_author AS a ON ba.author_id=a.author_id
                        WHERE ba.biblio_id=' . $biblio_d[0]);
                    $buffer .= $encloser . $authors . $encloser;
                    $buffer .= $sep;
                    // topics
                    $topics = getValues($dbs, 'SELECT t.topic FROM biblio_topic AS bt
                        LEFT JOIN mst_topic AS t ON bt.topic_id=t.topic_id
                        WHERE bt.biblio_id=' . $biblio_d[0]);
                    $buffer .= $encloser . $topics . $encloser;
                    $buffer .= $sep;
                    // item code
                    $items = getValues($dbs, 'SELECT item_code FROM item AS i
                        WHERE i.biblio_id=' . $biblio_d[0]);
                    $buffer .= $encloser . $items . $encloser;
                    echo $buffer;
                    echo $rec_sep;
                }
                exit;
            } else {
                utility::jsAlert(__('There is no record in bibliographic database yet, Export FAILED!'));
            }
        }
    }
    exit;
}
?>
<fieldset class="menuBox">
<div class="menuBoxInner exportIcon">
开发者ID:ridorido,项目名称:s3st13,代码行数:32,代码来源:export.php

示例9: getParams

 /**
  * @deprecated use getValues
  */
 function getParams()
 {
     return getValues();
 }
开发者ID:abcarroll,项目名称:DABL,代码行数:7,代码来源:Controller.php

示例10: getValues

    ?>
'>
			<div class="chart" data-type="age"></div>
		</div>
		<div class="sex">
			<h4>Sexes of Participants</h4>
			<input type="hidden" id="sex-values" value='<?php 
    echo getValues($db, "sex");
    ?>
'>
			<div class="chart" data-type="sex"></div>
		</div>
		<div class="usage">
			<h4>Usage by Participants</h4>
			<input type="hidden" id="amount-values" value='<?php 
    echo getValues($db, "amount");
    ?>
'>
			<div class="chart" data-type="amount"></div>
		</div>
	</div>

	<?php 
}
?>
</main>
<footer>
	
</footer>

		
开发者ID:RossIanAnderson,项目名称:honours,代码行数:29,代码来源:admin.php

示例11: debugValue

function debugValue()
{
    print_r(getValues());
}
开发者ID:laiello,项目名称:ascn,代码行数:4,代码来源:fx.php

示例12: foreach

            $result[(string) $lang[0]]['value'] = (string) $prefix . (string) $entry;
        } else {
            $result[(string) $lang[0]]['value'] = (string) $entry;
        }
        foreach ($entry->attributes() as $k => $v) {
            $result[(string) $lang[0]][(string) $k] = (string) $v;
        }
    }
    return $result;
}
// vraci JSON multilingualni seznam
if (isset($_REQUEST['request']) && $_REQUEST['request'] == 'getValues') {
    $type = htmlspecialchars($_REQUEST['type']);
    $code = htmlspecialchars($_REQUEST['id']);
    header("Content-type: application/json; charset=utf-8");
    echo json_encode(getValues($type, $code));
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<?php 
echo substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/themes/' . MICKA_THEME;
?>
/micka.css" />
<title>MICKA - <?php 
echo $title;
?>
</title>
开发者ID:riskatlas,项目名称:micka,代码行数:31,代码来源:md_lists.php

示例13: getNumberOfLogins

function getNumberOfLogins($f_params)
{
    //Consumer, number of logins, for all users, current user or all but current user
    $intervalsql = sqlGetInterval("esl.time_created", $f_params);
    $privacysql = sqlGetPrivacyLevel($f_params);
    $sql = " SELECT count(*) AS value" . $intervalsql . $privacysql . " FROM elgg_system_log AS esl";
    $sql = sqlAddPrivacyLevelInnerJoin($sql, $f_params);
    $sql .= " WHERE esl.event='login'";
    $sql = sqlExcludeUserGuids($sql, "esl.performed_by_guid", $f_params);
    $sql = sqlAddUserCollectionConstraint1($sql, "esl.performed_by_guid", $f_params);
    $sql = sqlAddMemberOfGroupConstraint($sql, "esl.performed_by_guid", $f_params);
    $sql = sqlAddEpochConstraints($sql, "esl.time_created", $f_params);
    $sql = sqlAddPrivacyLevelAnd($sql, "esl.performed_by_guid", $f_params);
    $sql = sqlAddGroupBy($sql, "eue.guid", "intervalnumber", $f_params);
    $sql = sqlAddOrderBy($sql, "eue.guid", "intervalnumber", $f_params);
    return getValues($sql, $f_params);
}
开发者ID:WELTEN,项目名称:PerformanceDashboard,代码行数:17,代码来源:getData.php

示例14: switch

require_once __DIR__ . '/classes/checkAPI.php';
require_once __DIR__ . '/classes/Sync.php';
require_once __DIR__ . '/classes/PushMessage.php';
$page_level = 2;
$admin_level = 0;
if (isset($_REQUEST['api']) && checkAPI($_REQUEST['api'], $page_level)) {
    switch ($_SERVER['REQUEST_METHOD']) {
        case 'POST':
            if ($_FILES) {
                upload($_REQUEST, $_FILES);
            } else {
                echo discover();
            }
            break;
        case 'GET':
            echo json_encode(getValues());
            http_response_code(202);
            break;
        case 'PUT':
            if (isset($_REQUEST['id'])) {
                if (isset($_REQUEST['title'])) {
                    update($_REQUEST);
                }
            } else {
                echo getLiveValues();
            }
            break;
        case 'DELETE':
            if (checkAPI($_REQUEST['api'], $admin_level)) {
                delete($_REQUEST);
            }
开发者ID:nawrasg,项目名称:Atlantis,代码行数:31,代码来源:at_plants.php

示例15: catch

        }
    } catch (mysqli_sql_exception $e) {
        echo $e->__toString();
    }
}
// MAIN START FUNCTION
// Check if it is from the submit or initial load
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    //Check userID and password.
    $userID = $_POST['userID'];
    $referenceID = $_POST['referenceID'];
    if (empty($userID) || empty($referenceID)) {
        echo "User ID or Reference ID is missing";
    } else {
        // Get Variable Values
        getValues();
        if (empty($userID) || empty($referenceID) || empty($relationship) || empty($companyName) || empty($rating)) {
            echo "Required Field is missing (User ID,Reference ID, Company Name, Relationship)";
        } else {
            //Check if Update or Create
            if ($mode == 'Update') {
                // Update Information
                $success = updateInformation('Update', $conn);
                if ($success == 1) {
                    // Successful Update return to the user information page
                    $conn->close();
                    header('Location: main.php');
                    exit;
                }
            } else {
                // Create
开发者ID:dm37537,项目名称:Career-Matcher,代码行数:31,代码来源:reference.php


注:本文中的getValues函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。