public function selfDiagnose() { $retStr = parent::selfDiagnose(); if (!$retStr) { //Get the attributes as a parameter object: $params = $this->getParams(); //Process the possible errors returning an error string: if (!$params->get('cascadingdropdown_table')) { $retStr .= "\nMissing Table"; } if (!$params->get('cascadingdropdown_table')) { $retStr .= "\nMissing Table"; } if (!$params->get('cascadingdropdown_observe')) { $retStr .= "\nNot observing an element"; } if (!$params->get('cascadingdropdown_label') && !$params->get('cascadingdropdown_label_concat')) { $retStr = "\nMissing Label"; } } return $retStr; }