本文整理汇总了PHP中QString::ConvertToCamelCase方法的典型用法代码示例。如果您正苦于以下问题:PHP QString::ConvertToCamelCase方法的具体用法?PHP QString::ConvertToCamelCase怎么用?PHP QString::ConvertToCamelCase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QString
的用法示例。
在下文中一共展示了QString::ConvertToCamelCase方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pnlContent_Refresh
protected function pnlContent_Refresh($strUrlHashTokens)
{
$this->pnlContent->RemoveChildControls(true);
if ($this->objGroup) {
if (!array_key_exists(1, $strUrlHashTokens)) {
$strUrlHashTokens[1] = 'view';
}
// Setup the UrlHash Argument
if (array_key_exists(2, $strUrlHashTokens)) {
$strUrlHashArgument = $strUrlHashTokens[2];
} else {
$strUrlHashArgument = null;
}
if ($strUrlHashTokens[0] == 'new') {
$strClassName = sprintf('CpGroup_Edit%s', QString::ConvertToCamelCase($strUrlHashTokens[1]));
} else {
switch (strtolower($strUrlHashTokens[1])) {
case 'view':
case 'edit':
$strClassName = sprintf('CpGroup_%s%s', QString::ConvertToCamelCase($strUrlHashTokens[1]), GroupType::$TokenArray[$this->objGroup->GroupTypeId]);
break;
case 'edit_participation':
case 'add_participation':
$strClassName = sprintf('CpGroup_%s', QString::ConvertToCamelCase($strUrlHashTokens[1]));
break;
case 'clone_group':
$strClassName = sprintf('CpGroup_%s', QString::ConvertToCamelCase($strUrlHashTokens[1]));
break;
default:
QApplication::Redirect('/groups/');
}
}
new $strClassName($this->pnlContent, 'content', $this->objGroup, $strUrlHashArgument);
}
}
示例2: Form_ProcessHash
public function Form_ProcessHash()
{
// /stewardship/batch.php/X#Y/verb/Z
// X = Batch ID
// Y = Stack # (*NOT* Stack ID)
// Cleanup and Tokenize UrlHash Contents
$strUrlHash = trim(strtolower($this->strUrlHash));
$strUrlHashTokens = explode('/', $strUrlHash);
// Get Values
$intStackNumber = $strUrlHashTokens[0];
$strCommand = array_key_exists(1, $strUrlHashTokens) ? $strUrlHashTokens[1] : null;
$strUrlHashArgument = array_key_exists(2, $strUrlHashTokens) ? $strUrlHashTokens[2] : null;
$strUrlHashArgument2 = array_key_exists(3, $strUrlHashTokens) ? $strUrlHashTokens[3] : null;
$strUrlHashArgument3 = array_key_exists(4, $strUrlHashTokens) ? $strUrlHashTokens[4] : null;
// Did we switch the stack?
if (!$this->objStack || $this->objStack->StackNumber != $intStackNumber) {
// Save the "Old" Stack (if applicable)
$objOldStack = null;
if ($this->objStack) {
$objOldStack = $this->objStack;
}
// Set the "New" stack (and validate!)
if ($intStackNumber) {
$this->objStack = StewardshipStack::LoadByStewardshipBatchIdStackNumber($this->objBatch->Id, $intStackNumber);
if (!$this->objStack) {
QApplication::Redirect('/stewardship/');
}
} else {
$this->objStack = null;
}
// Refresh teh DataGrid and Stack in the stacklist
$this->dtgContributions_Refresh();
if ($this->objStack) {
$this->pnlStack_Refresh($this->objStack);
}
if ($objOldStack) {
$this->pnlStack_Refresh($objOldStack);
}
$this->pnlContent->CssClass = $this->objStack ? 'stewardshipContent' : null;
}
$this->pnlContent->RemoveChildControls(true);
// Setup the Command
if (!$strCommand) {
$strCommand = 'view';
}
$strClassName = sprintf('CpStewardship_%s', QString::ConvertToCamelCase($strCommand));
if (class_exists($strClassName, true)) {
new $strClassName($this->pnlContent, 'content', $this->objBatch, $this->objStack, $strUrlHashArgument, $strUrlHashArgument2, $strUrlHashArgument3);
QApplication::ExecuteJavaScript('ScrollToBottom();');
} else {
QApplication::Redirect('#1');
}
}