getSettings() public static method

Get all settings for a profile.
public static getSettings ( integer $id ) : array
$id integer Profile id.
return array
Example #1
0
 /**
  * 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;
 }