示例#1
0
 /**
  * PN 19-Jun-11: Construct an element error string.
  *
  * @return  string
  */
 public function selfDiagnose()
 {
     $retStr = parent::selfDiagnose();
     if ($this->pluginName == 'databasejoin') {
         $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($this->labelParam) && !$params->get($this->concatLabelParam)) {
             $retStr = "\nMissing Label";
         }
     }
     return $retStr;
 }