示例#1
0
 public function __set($strName, $mixValue)
 {
     // These are included here because this class is constructed before code generation
     // include_once(__INCLUDES__ . '/qcodo/_core/codegen/QConvertNotationBase.class.php');
     include_once __INCLUDES__ . '/qcodo/codegen/QConvertNotation.class.php';
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         default:
             try {
                 $objAdminSetting = AdminSetting::LoadByShortDescription(QConvertNotation::UnderscoreFromCamelCase($strName));
                 $objAdminSetting->Value = $mixValue;
                 return $objAdminSetting->Save();
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
		}

		protected function btnDelete_Click($strFormId, $strControlId, $strParameter) {
			// Delegate "Delete" processing to the <?php 
echo $objTable->ClassName;
?>
MetaControl
			$this->mct<?php 
echo $objTable->ClassName;
?>
->Delete<?php 
echo $objTable->ClassName;
?>
();
			$this->RedirectToListPage();
		}

		protected function btnCancel_Click($strFormId, $strControlId, $strParameter) {
			$this->RedirectToListPage();
		}

		// Other Methods

		protected function RedirectToListPage() {
			QApplication::Redirect(__VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/<?php 
echo QConvertNotation::UnderscoreFromCamelCase($objTable->ClassName);
?>
_list.php');
		}
	}
?>
	}

//	protected function Form_Load() {}

<?php 
include 'edit_form_create.tpl.php';
?>

<?php 
include 'edit_create_buttons.tpl.php';
?>

<?php 
include 'edit_button_click.tpl.php';
?>

}

// Go ahead and run this form object to render the page and its event handlers, implicitly using
// <?php 
echo QConvertNotation::UnderscoreFromCamelCase($strPropertyName);
?>
_edit.tpl.php as the included HTML template file
<?php 
echo $strPropertyName;
?>
EditForm::Run('<?php 
echo $strPropertyName;
?>
EditForm');