protected function Deprecate() { $objFileArray = File::LoadAll(); foreach ($objFileArray as $objFile) { if (array_key_exists('id' . $objFile->Id, $this->blnFileProcessedArray) && $this->blnFileProcessedArray['id' . $objFile->Id]) { } else { if (is_null($objFile->DeprecatedBuild)) { $objFile->DeprecatedMajorVersion = $this->intMajor; $objFile->DeprecatedMinorVersion = $this->intMinor; $objFile->DeprecatedBuild = $this->intBuild; $objFile->Save(); } } } }
protected function lstFile_Create() { $this->lstFile = new QListBox($this); $this->lstFile->Name = QApplication::Translate('File'); $this->lstFile->AddItem(QApplication::Translate('- Select One -'), null); $objFileArray = File::LoadAll(); if ($objFileArray) { foreach ($objFileArray as $objFile) { $objListItem = new QListItem($objFile->__toString(), $objFile->Id); if ($this->objQcodoClass->File && $this->objQcodoClass->File->Id == $objFile->Id) { $objListItem->Selected = true; } $this->lstFile->AddItem($objListItem); } } }
public function dtgFile_Bind() { // Get Total Count b/c of Pagination $this->dtgFile->TotalItemCount = File::CountAll(); $objClauses = array(); if ($objClause = $this->dtgFile->OrderByClause) { array_push($objClauses, $objClause); } if ($objClause = $this->dtgFile->LimitClause) { array_push($objClauses, $objClause); } $this->dtgFile->DataSource = File::LoadAll($objClauses); }