private function getSettings($key) { $settings = $this->plugin->getDetail($key); if (!$settings) { $settings = $this->plugin->getFields(SqlParser::MOD_INSERT); } return $settings; }
private function getSettings() { if ($this->settings) { return $this->settings; } $this->settings = $this->plugin->getDetail(array()); if (!$this->settings) { $this->settings = $this->plugin->getFields(SqlParser::MOD_INSERT); } return $this->settings; }