本文整理汇总了PHP中Variable::LoadAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Variable::LoadAll方法的具体用法?PHP Variable::LoadAll怎么用?PHP Variable::LoadAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Variable
的用法示例。
在下文中一共展示了Variable::LoadAll方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lstVariable_Create
protected function lstVariable_Create()
{
$this->lstVariable = new QListBox($this);
$this->lstVariable->Name = QApplication::Translate('Variable');
$this->lstVariable->Required = true;
if (!$this->blnEditMode) {
$this->lstVariable->AddItem(QApplication::Translate('- Select One -'), null);
}
$objVariableArray = Variable::LoadAll();
if ($objVariableArray) {
foreach ($objVariableArray as $objVariable) {
$objListItem = new QListItem($objVariable->__toString(), $objVariable->Id);
if ($this->objClassProperty->Variable && $this->objClassProperty->Variable->Id == $objVariable->Id) {
$objListItem->Selected = true;
}
$this->lstVariable->AddItem($objListItem);
}
}
}
示例2: dtgVariable_Bind
protected function dtgVariable_Bind()
{
// Get Total Count b/c of Pagination
$this->dtgVariable->TotalItemCount = Variable::CountAll();
$objClauses = array();
if ($objClause = $this->dtgVariable->OrderByClause) {
array_push($objClauses, $objClause);
}
if ($objClause = $this->dtgVariable->LimitClause) {
array_push($objClauses, $objClause);
}
$this->dtgVariable->DataSource = Variable::LoadAll($objClauses);
}
示例3: lstAdditionalVariable_Create
protected function lstAdditionalVariable_Create()
{
$this->lstAdditionalVariable = new QListBox($this);
$this->lstAdditionalVariable->Name = QApplication::Translate('Additional Variable');
$this->lstAdditionalVariable->AddItem(QApplication::Translate('- Select One -'), null);
$objAdditionalVariableArray = Variable::LoadAll();
if ($objAdditionalVariableArray) {
foreach ($objAdditionalVariableArray as $objAdditionalVariable) {
$objListItem = new QListItem($objAdditionalVariable->__toString(), $objAdditionalVariable->Id);
if ($this->objOperation->AdditionalVariable && $this->objOperation->AdditionalVariable->Id == $objAdditionalVariable->Id) {
$objListItem->Selected = true;
}
$this->lstAdditionalVariable->AddItem($objListItem);
}
}
}