/** * Get all settings. * * @return array */ public function getSettings() { // if settings array does not exist then get it first if (empty($this->settings)) { $this->settings = FrontendProfilesModel::getSettings($this->getId()); } // return settings return $this->settings; }