Пример #1
0
 public function selfDiagnose()
 {
     $retStr = parent::selfDiagnose();
     if ($this->_pluginName == 'fabrikdatabasejoin') {
         //Get the attributes as a parameter object:
         $params = $this->getParams();
         //Process the possible errors returning an error string:
         if (!$params->get('join_db_name')) {
             $retStr .= "\nMissing Table";
         }
         if (!$params->get('join_key_column')) {
             $retStr .= "\nMissing Key";
         }
         if (!$params->get('join_val_column') && !$params->get('join_val_column_concat')) {
             $retStr = "\nMissing Label";
         }
     }
     return $retStr;
 }