本文整理汇总了PHP中DBG::printr方法的典型用法代码示例。如果您正苦于以下问题:PHP DBG::printr方法的具体用法?PHP DBG::printr怎么用?PHP DBG::printr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBG
的用法示例。
在下文中一共展示了DBG::printr方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getRowId
/**
* Return compound rowid for table row to be posted back as post data by Javascript.
*
* Use a checksum to make it difficult to tamper with the ids.
*
*/
private function getRowId($rowData)
{
$primaryKeys = (array) $this->settings['primaryKey'];
$primaryKeyIds = array();
foreach ($primaryKeys as $column) {
if (!array_key_exists($column, $rowData)) {
DBG::printr($rowData);
throw new coreException(__METHOD__);
}
$primaryKeyIds[] = $rowData[$column];
}
$sPrimaryKeys = implode('', $primaryKeyIds);
$checksum = md5(self::CHECKSUM_MAGICWORD . $sPrimaryKeys);
array_unshift($primaryKeyIds, $checksum);
return implode(self::COMPOUNDROWID_SEPARATOR, $primaryKeyIds);
}
示例2: input_tag
?>
<?php
echo input_tag('variable', '"""', array('class' => 'textfield'));
?>
<?php
echo submit_tag('Test GET Variable Encoding');
?>
</form>
<p> <?php
$vars = array('variable' => '&');
echo link_to('test', 'test/urlEncoding', array('query_string' => http_build_query($vars)));
?>
<p> <?php
echo coreContext::getInstance()->getController()->genUrl(array('module' => 'test', 'action' => 'urlEncoding', 'item' => '"""'));
?>
<h2>$_GET</h2>
<?php
DBG::printr($_GET);
?>
<h2>$_request</h2>
<?php
DBG::printr($_request->getParameterHolder()->getAll());