Esempio n. 1
0
 public function __get($name)
 {
     if ($name == 'tree_path') {
         return $this->getTreePath();
     }
     return parent::__get($name);
 }
Esempio n. 2
0
 public function __get($name)
 {
     if ($name == 'columns') {
         throw new Kwf_Exception("Theres no field named 'columns' anymore. Getting the column count is implemented in Kwc_Basic_Table_Component->getColumnCount()");
     } else {
         return parent::__get($name);
     }
 }
Esempio n. 3
0
 public function getMasterValueIfNoTrl($name)
 {
     if (!$this->hasTrl($name)) {
         return parent::__get($name);
     } else {
         return '';
     }
 }
Esempio n. 4
0
 public function __get($name)
 {
     if (array_key_exists($name, $this->_cacheData)) {
         return $this->_cacheData[$name];
     } else {
         $this->_getRow();
         return parent::__get($name);
     }
 }
 public function __get($name)
 {
     $ret = null;
     if ($this->_trlRow->hasColumn($name)) {
         $ret = $this->_trlRow->{$name};
     }
     if ($name != 'visible' && !$ret) {
         $ret = parent::__get($name);
     }
     return $ret;
 }
Esempio n. 6
0
 public function __get($name)
 {
     if ($name == 'info_short') {
         $info = $this->getInfo();
         return $info['shortText'];
     } else {
         if ($name == 'info') {
             $info = $this->getInfo();
             return $info['text'];
         } else {
             if ($name == 'subject') {
                 $model = $this->getModel()->getDependentModel('Mail');
                 $id = $this->component_id . '_' . $this->id . '_mail';
                 $mailRow = $model->getRow($id);
                 if ($mailRow) {
                     return $mailRow->subject;
                 }
                 return '';
             } else {
                 return parent::__get($name);
             }
         }
     }
 }
 public function __get($columnName)
 {
     if ($columnName == 'password1' || $columnName == 'password2') {
         return '';
     } else {
         if ($columnName == 'nickname') {
             if (parent::__isset('nickname') && parent::__get('nickname') != '') {
                 return parent::__get('nickname');
             } else {
                 return trim($this->firstname . ' ' . substr($this->lastname, 0, 1));
             }
         } else {
             if ($columnName == 'email_gender') {
                 return $this->gender == 'male' ? Kwc_Mail_Recipient_GenderInterface::MAIL_GENDER_MALE : Kwc_Mail_Recipient_GenderInterface::MAIL_GENDER_FEMALE;
             } else {
                 if ($columnName == 'email_format') {
                     return Kwc_Mail_Recipient_Interface::MAIL_FORMAT_HTML;
                 } else {
                     return parent::__get($columnName);
                 }
             }
         }
     }
 }