コード例 #1
0
ファイル: UserBase.php プロジェクト: hotarucms/hotarucms
 /**
  * Get the default user settings
  *
  * @param string $type either 'site' or 'base' (base for the originals)
  * @return array
  */
 public function getDefaultSettings($h, $type = 'site')
 {
     // since we already have all of the miscdata in $h->miscdata we should be able to get defaultsettings straight from there without going to db
     //$result = \HotaruModels\Miscdata::getUserSettings($type);
     $result = \Hotaru\Models2\Miscdata::getUserSettings($h, $type);
     if ($result) {
         return unserialize($result);
     } else {
         return false;
     }
 }