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


PHP debug::message方法代码示例

本文整理汇总了PHP中debug::message方法的典型用法代码示例。如果您正苦于以下问题:PHP debug::message方法的具体用法?PHP debug::message怎么用?PHP debug::message使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在debug的用法示例。


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

示例1: lookupUser

 function lookupUser($user)
 {
     $script = 'knowledgeBaseCGI.pl';
     $action = 'lookup';
     debug::message($user);
     $user = string::low($user);
     $groupPredicates[0] = new prologString($user);
     $constructList = new prologConstructCollection();
     //Add predicate to construct collection
     $constructList->addConstruct(new prologPredicate('get_post_value', $groupPredicates));
     $userList = $constructList->toArray();
     $filename = prolog::transferToProlog($user, $userList);
     return prolog::exec($script, $action, $filename);
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:14,代码来源:prolog.php

示例2: javaScriptConstraint

 function javaScriptConstraint($elementName = '', $functionMode = '', $value = '')
 {
     $this->elementName = $elementName;
     debug::message('MODE:' . $functionMode);
     switch ($functionMode) {
         case 'presence':
             $this->constraint = "!=''";
             break;
         case 'match':
             $matchValue = $value[3]->toString();
             $this->constraint = "== '{$matchValue}'";
             break;
         case 'function':
             $functionPredicateValues = $value[3]->getPredicateValues();
             $predicateName = $value[3]->getPredicateName();
             debug::message('Function: ' . $predicateName);
             switch ($predicateName) {
                 case 'lessThan':
                     $this->constraint = '<' . $functionPredicateValues[0]->toString();
                     break;
                 case 'greaterThanOrEqual':
                     $this->constraint = '>=' . $functionPredicateValues[0]->toString();
                     break;
             }
     }
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:26,代码来源:javaScriptConstraint.php

示例3: transferFormPosts

 function transferFormPosts($_POST)
 {
     $keys = array_keys($_POST);
     for ($count = 0; $count < sizeof($_POST); $count++) {
         debug::message($keys[$count]);
         debug::message('->');
         debug::message($_POST[$keys[$count]]);
         debug::message('<br>');
     }
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:10,代码来源:debug.php

示例4: stop

 static function stop()
 {
     self::$stopTime = microtime(true);
     //将获取的时间赋给成员属性$stopTime
     if (Config::config('debug')) {
         //显示DEBUG信息
         debug::message();
     }
     //	if(Extension_Loaded('zlib')&&GZIP===TRUE)Ob_End_Flush();
 }
开发者ID:pgfeng,项目名称:GFPHP,代码行数:10,代码来源:Debug.class.php

示例5: progressWithoutHistory

 function progressWithoutHistory()
 {
     //Not at the goal NODE!
     if ($this->currentPosition != 't') {
         $newoptions = $this->planGraph->findConnections($this->currentPosition);
         debug::message('<br>AT(' . $this->currentPosition . ')-->');
         debug::message('(   ' . $newoptions . '   )<br>');
         $this->currentPosition = $newoptions;
     }
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:10,代码来源:GraphPlan.php

示例6: updateDatabases

 function updateDatabases($xmlPackage, $workflowId, $formData, $goal)
 {
     global $db;
     $db = connect($xmlPackage->getDb());
     debug::message("connect to db:" . $xmlPackage->getDb() . '<br>');
     $newDataItem = new coreWorkflowDataPacket($workflowId, array());
     $tables = $xmlPackage->getTables();
     if (sizeof($tables) > 0) {
         //For each table
         for ($tableIndex = 0; $tableIndex < sizeof($tables); $tableIndex++) {
             $table = $tables[$tableIndex]->getTableName();
             $valsArray['workflowId'] = $workflowId;
             $fields = $tables[$tableIndex]->getDbFields();
             //The fields specificed
             for ($index = 0; $index < sizeof($fields); $index++) {
                 $field = $fields[$index];
                 $valsArray[$field] = addslashes($formData[$field]);
             }
             //Does this workflow item already exist in the table
             $sql_query = "workflowId='{$workflowId}'";
             if (dbpear::numRecords($table, "{$sql_query}")) {
                 $keyName = dbs::getprimarykey($table);
                 $keyValue = dbpear::selAttribute($keyName, $table, $sql_query);
                 dbs::updaterecord($table, $valsArray, $keyName, $keyValue);
             } else {
                 dbs::irrecord($table, $valsArray, false);
             }
             $db = connect('iWFMS');
         }
         $xmlParser = new XMLtoArray("jobSpecification.xml");
         $xmlTree = $xmlParser->process();
         //Package the xml data
         $xmlPackage = xmlPackage::package($xmlTree);
         if (!$goal) {
             //We are not at the goal node
             //Display the data as HTML
             xmlPackage::displayItem($xmlPackage, $workflowId, 'workflow', 'Current workflow item');
         } else {
             //We are at the goal node
             xmlPackage::displayArchiveItem($xmlPackage, $workflowId, 'workflowArchive', 'Current archived workflow item', 'archive');
         }
     } else {
         $xmlParser = new XMLtoArray("jobSpecification.xml");
         $xmlTree = $xmlParser->process();
         //Package the xml data
         $xmlPackage = xmlPackage::package($xmlTree);
         //Display the data as HTML
         xmlPackage::displayItem($xmlPackage, $workflowId, 'workflow', 'Current workflow item');
     }
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:50,代码来源:xmlDatabase.php

示例7: toArray

 function toArray()
 {
     $resultArray = array();
     $resultIndex = 0;
     if ($this->regularExpression) {
         //Display regular expression predicate
         $predicateVars[0] = new prologAtom($this->typename);
         $predicateVars[1] = new prologList($this->regularExpression);
         $regPredicate = new prologPredicate($this->regularExpressionPredicate, $predicateVars);
         $resultArray[$resultIndex] = $regPredicate->toString() . ".\n";
         debug::message($resultArray[$resultIndex]);
         $resultIndex++;
     }
     for ($index = 0; $index < sizeof($this->ruleList); $index++) {
         $typeRule = $this->ruleList[$index];
         //Display rule
         $resultArray[$resultIndex] = $typeRule->toString();
         $resultIndex++;
     }
     return $resultArray;
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:21,代码来源:typeRule.php

示例8: process

 /**
  * @return array representing XML file contents
  * @desc Reads the xml file in and parses it
  */
 function process()
 {
     $count = 0;
     debug::message("XML spec:  " . $this->file . '<br>');
     $fp = XMLtoArray::openXML();
     while ($data = fread($fp, 4096)) {
         debug::message("\n" . $data . "\n");
         $this->parse($data);
         $count = $count - 1;
     }
     return $this->stack;
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:16,代码来源:xml.php

示例9: compare

 /**
  * @return boolean
  * @param $object1 prologPredicate
  * @param $object2 prologPredicate
  * @desc compares whether two predicates are equal
  */
 function compare($object1, $object2)
 {
     debug::message($object1->toString() . "==" . $object2->toString() . '<br><br>');
     return $object1->toString() == $object2->toString();
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:11,代码来源:planComparison.php

示例10: array

             systemMessages::message("Goal node reached!");
         } else {
             //Only one action packet should be returned
             $plans = $selectedActionPacket->getPlans();
             $newPlannerProgress = planAction::fetchNextAction($plans);
             $action = node::getNodeData($newPlannerProgress[1]);
             if ($action->getPredicateName() != 'edgeProgression') {
                 $match = true;
             } else {
             }
             $plannerProgress = $newPlannerProgress;
             $newPlannerProgress = array();
         }
     }
 }
 debug::message("edge progression test :" . $edgeProgressionResult);
 if ($edgeProgressionResult) {
     if (!$goal) {
         //No point in updating plans if we have reached the goal
         planningAgent::updatePlans($plans);
     }
     $xmlParser = new XMLtoArray($_POST['formName'] . '.xml');
     $xmlTree = $xmlParser->process();
     //Package the xml data into objects
     $xmlPackage = xmlPackage::package($xmlTree);
     //Display the data as HTML
     xmlDatabase::updateDatabases($xmlPackage, $_POST['workflowID'], $_POST, $goal);
 } else {
     //no progress
     errors::errorMessage("Progression to a new workflow stage failed!");
     $xmlParser = new XMLtoArray("jobSpecification.xml");
开发者ID:printedheart,项目名称:iwfms,代码行数:31,代码来源:processSubmition.php

示例11:

</tr> </table> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr> 
    <td class="outliner"><img src="images/spacer.gif" border="0" width="1" height="1"></td>
  </tr>
</table></td>
</tr> </table> 
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
  <tr> 
    <td width="1" class="outliner"><img src="images/spacer.gif" border="0" width="1" height="1"></td>
    <td class="footerAndHeadercolour">&nbsp;</td>
    <td class="footerAndHeadercolour" align="right">
      Processing time:<?php 
echo time::stoptiming();
?>
&nbsp;
    </td>
      <td width="1" class="outliner"><img src="images/spacer.gif" border="0" width="1" height="1"></td>
  </tr>
   <tr> 
    <td colspan="4" class="outliner"><img src="images/spacer.gif" border="0" width="1" height="1"></td>
    </tr>
</table>
</body>
</html>

<?php 
if ($db != '') {
    debug::message("disconnecting from database");
    $db->disconnect();
}
开发者ID:printedheart,项目名称:iwfms,代码行数:31,代码来源:system_footer.php

示例12: conditionBehaviour

 function conditionBehaviour($progressResult)
 {
     $actionList = $progressResult['actionNames'];
     $action = $actionList[sizeof($actionList) - 1];
     $predicateName = $action->getPredicateName();
     switch ($predicateName) {
         case 'entry':
             //Javascript conditional
             debug::message('JavaScript Plan Actions');
             $resultArray = planningJavaScript::actOnJavascriptPlanActions($progressResult['actionPackets']);
             $actionPackets = $resultArray['actionPackets'];
             break;
         case 'formEntry':
             //Role based conditional
             debug::message('Role based decision Actions');
             //Select the plans that follow the role of the users accessing the form
             if (!isset($_GET['group'])) {
                 //This test is a serverside conditional
                 $selectGraphs = planningAgent::actionTest($progressResult['actionPackets'], $_POST, 'group', 'match');
             } else {
                 // This test is a clientside conditional
                 $selectGraphs = planningAgent::actionTest($progressResult['actionPackets'], $_GET, 'group', 'match');
             }
             $actionPackets = $selectGraphs;
             //$progressResult = planAction::findRequiredActions($selectGraphs->getPlans(),"formSubmission");
             break;
     }
     if (isset($resultArray)) {
         return array('actionList' => $actionList, 'plans' => $actionPackets, 'javaConstraints' => $resultArray['constraints']);
     }
     return array('actionList' => $actionList, 'plans' => $actionPackets, 'javaConstraints' => array());
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:32,代码来源:planAction.php

示例13: __convertStringsToObjects

 /**
  * @return unknown
  * @param unknown $predicateVars
  * @desc Enter description here...
  */
 function __convertStringsToObjects($predicateVars)
 {
     $predicateValObjects = array();
     for ($indexVals = 0; $indexVals < sizeof($predicateVars); $indexVals++) {
         debug::message($predicateVars[$indexVals]);
         //The string represents a predicate
         if (prologPredicate::__isPredicate($predicateVars[$indexVals])) {
             $predicateValObjects[$indexVals] = new prologPredicate($predicateVars[$indexVals]);
         } elseif (preg_match("/\\[[^\\]]*\\]/", $predicateVars[$indexVals])) {
             //This is a List
             $predicateValObjects[$indexVals] = new prologList($predicateVars[$indexVals]);
             //print_r($predicateValObjects[$indexVals]);
         } else {
             //This is a atom
             $predicateValObjects[$indexVals] = new prologAtom($predicateVars[$indexVals]);
         }
     }
     return $predicateValObjects;
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:24,代码来源:prologPredicate.php

示例14: displayAllData

 function displayAllData($xmlPackage, $workflowID, $title)
 {
     global $db;
     $db = connect($xmlPackage->getDb());
     debug::message("connect to db:" . $xmlPackage->getDb() . '<br>');
     workflowDisplayHTML::dataTableHead($xmlPackage->getDisplayFields(), "", $title);
     //workflowDisplayHTML::tableMainOpen();
     xmlPackage::__testDatabaseFields(array($workflowID), array(''), $xmlPackage, 'data');
     workflowDisplayHTML::tableMainClose();
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:10,代码来源:xmlPackage.php

示例15: irrecordArray

 function irrecordArray($table, $valsarray, $showkey)
 {
     if ($table && sizeof($valsarray)) {
         $vals = '';
         //Generate column names
         $cols = dbs::genfieldnames($table, $showkey);
         $cols = preg_replace('/`|\\s/', '', $cols);
         //Break up into an array
         $keyarray = arrays::array_explode($cols, ",");
         //$valsarray_size = sizeof($valsarray);
         $valsarray_size = sizeof($keyarray);
         $sql = "INSERT INTO `{$table}` (" . $cols . ") VALUES";
         for ($valueIndex = 0; $valueIndex < sizeof($valsarray); $valueIndex++) {
             $vals = '';
             for ($index = 0; $index < $valsarray_size; $index++) {
                 if ($index != 0) {
                     $vals .= ",";
                 }
                 $vals .= "'" . $valsarray[$valueIndex][$keyarray[$index]] . "'";
             }
             if ($valueIndex != sizeof($valsarray) - 1) {
                 $sql .= "(" . $vals . "),";
             } else {
                 $sql .= "(" . $vals . ")";
             }
         }
         debug::message($sql . '<br><br>');
         $result = mysql_query($sql) or die("Couldna execute record insert/replace - " . mysql_errno() . ": " . mysql_error());
         return mysql_insert_id();
     }
     return false;
 }
开发者ID:printedheart,项目名称:iwfms,代码行数:32,代码来源:dbs.php


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