Inheritance: extends QControl
Exemplo n.º 1
0
 public function __set($strName, $mixValue)
 {
     //$this->blnModified = true;
     switch ($strName) {
         case "ReadyFunction":
             // The name of a javascript function to call after the CKEditor instance is ready, so that you can do further initialization
             // This function will receive the formId and controlId as parameters, and "this" will be the ckeditor instance.
             try {
                 $this->strJsReadyFunc = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         case "Configuration":
             // The configuration string. Could be a name of an object, or a javascript object (sourrounded by braces {})
             try {
                 $this->strConfiguration = \QType::Cast($mixValue, \QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }
Exemplo n.º 2
0
 public function __set($strName, $mixValue)
 {
     //$this->blnModified = true;
     switch ($strName) {
         case "ReadyFunction":
             // The name of a javascript function to call after the CKEditor instance is ready, so that you can do further initialization
             try {
                 $this->strJsReadyFunc = QType::Cast($mixValue, QType::String);
                 break;
             } catch (QInvalidCastException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
         default:
             try {
                 parent::__set($strName, $mixValue);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             break;
     }
 }