protected function lstInterface_Create() { $this->lstInterface = new QListBox($this); $this->lstInterface->Name = QApplication::Translate('Interface'); $this->lstInterface->AddItem(QApplication::Translate('- Select One -'), null); $objInterfaceArray = QcodoInterface::LoadAll(); if ($objInterfaceArray) { foreach ($objInterfaceArray as $objInterface) { $objListItem = new QListItem($objInterface->__toString(), $objInterface->Id); if ($this->objQcodoClass->Interface && $this->objQcodoClass->Interface->Id == $objInterface->Id) { $objListItem->Selected = true; } $this->lstInterface->AddItem($objListItem); } } }
/** * Counts all associated QcodoInterfaces * @return int */ public function CountQcodoInterfaces() { if (is_null($this->intId)) { return 0; } return QcodoInterface::CountByClassGroupId($this->intId); }
public function dtgQcodoInterface_Bind() { // Get Total Count b/c of Pagination $this->dtgQcodoInterface->TotalItemCount = QcodoInterface::CountAll(); $objClauses = array(); if ($objClause = $this->dtgQcodoInterface->OrderByClause) { array_push($objClauses, $objClause); } if ($objClause = $this->dtgQcodoInterface->LimitClause) { array_push($objClauses, $objClause); } $this->dtgQcodoInterface->DataSource = QcodoInterface::LoadAll($objClauses); }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objQcodoClass) { $objObject->objQcodoClass = QcodoClass::GetSoapObjectFromObject($objObject->objQcodoClass, false); } else { if (!$blnBindRelatedObjects) { $objObject->intQcodoClassId = null; } } if ($objObject->objQcodoInterface) { $objObject->objQcodoInterface = QcodoInterface::GetSoapObjectFromObject($objObject->objQcodoInterface, false); } else { if (!$blnBindRelatedObjects) { $objObject->intQcodoInterfaceId = null; } } if ($objObject->objReturnVariable) { $objObject->objReturnVariable = Variable::GetSoapObjectFromObject($objObject->objReturnVariable, false); } else { if (!$blnBindRelatedObjects) { $objObject->intReturnVariableId = null; } } if ($objObject->objAdditionalVariable) { $objObject->objAdditionalVariable = Variable::GetSoapObjectFromObject($objObject->objAdditionalVariable, false); } else { if (!$blnBindRelatedObjects) { $objObject->intAdditionalVariableId = null; } } if ($objObject->objFile) { $objObject->objFile = File::GetSoapObjectFromObject($objObject->objFile, false); } else { if (!$blnBindRelatedObjects) { $objObject->intFileId = null; } } return $objObject; }
public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) { if ($objObject->objParentQcodoInterface) { $objObject->objParentQcodoInterface = QcodoInterface::GetSoapObjectFromObject($objObject->objParentQcodoInterface, false); } else { if (!$blnBindRelatedObjects) { $objObject->intParentQcodoInterfaceId = null; } } if ($objObject->objClassGroup) { $objObject->objClassGroup = ClassGroup::GetSoapObjectFromObject($objObject->objClassGroup, false); } else { if (!$blnBindRelatedObjects) { $objObject->intClassGroupId = null; } } if ($objObject->objFile) { $objObject->objFile = File::GetSoapObjectFromObject($objObject->objFile, false); } else { if (!$blnBindRelatedObjects) { $objObject->intFileId = null; } } return $objObject; }