Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /**
  * PN 19-Jun-11: Construct an element error string.
  *
  * @return  string
  */
 public function selfDiagnose()
 {
     $retStr = parent::selfDiagnose();
     if ($this->_pluginName == 'fabrikdatabasejoin') {
         $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;
 }