/** * Verifies the consistency of the imported Tracker * * @return true if Tracler is ok */ public function testImport() { if (parent::testImport()) { if (!($this->default_properties['maxchars'] && $this->default_properties['size'])) { var_dump($this, 'Properties must be "maxchars" and "size"'); return false; } } return true; }
/** * Verifies the consistency of the imported Tracker * * @return true if Tracler is ok */ public function testImport() { if (parent::testImport()) { if (get_class($this) == 'Tracker_FormElement_Field_Text') { if (!(isset($this->default_properties['rows']) && isset($this->default_properties['cols']))) { var_dump($this, 'Properties must be "rows" and "cols"'); return false; } } elseif (get_class($this) == 'Tracker_FormElement_Field_String') { if (!(isset($this->default_properties['maxchars']) && isset($this->default_properties['size']))) { var_dump($this, 'Properties must be "maxchars" and "size"'); return false; } } } return true; }