public function btnEdit_Click($strFormId, $strControlId, $strParameter)
 {
     $strParameterArray = explode(',', $strParameter);
     $objDirectoryToken = DirectoryToken::Load($strParameterArray[0]);
     $objEditPanel = new DirectoryTokenEditPanel($this, $this->strCloseEditPanelMethod, $objDirectoryToken);
     $strMethodName = $this->strSetEditPanelMethod;
     $this->objForm->{$strMethodName}($objEditPanel);
 }
Exemplo n.º 2
0
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'Id':
             /**
              * Gets the value for intId (Read-Only PK)
              * @return integer
              */
             return $this->intId;
         case 'DirectoryId':
             /**
              * Gets the value for intDirectoryId (Not Null)
              * @return integer
              */
             return $this->intDirectoryId;
         case 'Path':
             /**
              * Gets the value for strPath (Not Null)
              * @return string
              */
             return $this->strPath;
         case 'DeprecatedMajorVersion':
             /**
              * Gets the value for intDeprecatedMajorVersion 
              * @return integer
              */
             return $this->intDeprecatedMajorVersion;
         case 'DeprecatedMinorVersion':
             /**
              * Gets the value for intDeprecatedMinorVersion 
              * @return integer
              */
             return $this->intDeprecatedMinorVersion;
         case 'DeprecatedBuild':
             /**
              * Gets the value for intDeprecatedBuild 
              * @return integer
              */
             return $this->intDeprecatedBuild;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Directory':
             /**
              * Gets the value for the DirectoryToken object referenced by intDirectoryId (Not Null)
              * @return DirectoryToken
              */
             try {
                 if (!$this->objDirectory && !is_null($this->intDirectoryId)) {
                     $this->objDirectory = DirectoryToken::Load($this->intDirectoryId);
                 }
                 return $this->objDirectory;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '_Operation':
             /**
              * Gets the value for the private _objOperation (Read-Only)
              * if set due to an expansion on the operation.file_id reverse relationship
              * @return Operation
              */
             return $this->_objOperation;
         case '_OperationArray':
             /**
              * Gets the value for the private _objOperationArray (Read-Only)
              * if set due to an ExpandAsArray on the operation.file_id reverse relationship
              * @return Operation[]
              */
             return (array) $this->_objOperationArray;
         case '_QcodoClass':
             /**
              * Gets the value for the private _objQcodoClass (Read-Only)
              * if set due to an expansion on the qcodo_class.file_id reverse relationship
              * @return QcodoClass
              */
             return $this->_objQcodoClass;
         case '_QcodoClassArray':
             /**
              * Gets the value for the private _objQcodoClassArray (Read-Only)
              * if set due to an ExpandAsArray on the qcodo_class.file_id reverse relationship
              * @return QcodoClass[]
              */
             return (array) $this->_objQcodoClassArray;
         case '_QcodoConstant':
             /**
              * Gets the value for the private _objQcodoConstant (Read-Only)
              * if set due to an expansion on the qcodo_constant.file_id reverse relationship
              * @return QcodoConstant
              */
             return $this->_objQcodoConstant;
         case '_QcodoConstantArray':
             /**
              * Gets the value for the private _objQcodoConstantArray (Read-Only)
              * if set due to an ExpandAsArray on the qcodo_constant.file_id reverse relationship
              * @return QcodoConstant[]
              */
             return (array) $this->_objQcodoConstantArray;
         case '_QcodoInterface':
             /**
              * Gets the value for the private _objQcodoInterface (Read-Only)
              * if set due to an expansion on the qcodo_interface.file_id reverse relationship
              * @return QcodoInterface
              */
             return $this->_objQcodoInterface;
         case '_QcodoInterfaceArray':
             /**
              * Gets the value for the private _objQcodoInterfaceArray (Read-Only)
              * if set due to an ExpandAsArray on the qcodo_interface.file_id reverse relationship
              * @return QcodoInterface[]
              */
             return (array) $this->_objQcodoInterfaceArray;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }