/** * Remove control with given name from controls collection * * @param string $name */ public function removeControl($name) { parent::removeControl($name); if (array_key_exists($name, $this->databaseControls)) { unset($this->databaseControls[$name]); if (array_key_exists($name, $this->readOnlyDbControls)) { unset($this->readOnlyDbControls[$name]); } } }