コード例 #1
0
ファイル: BuildConfig.php プロジェクト: TheSavior/WhiteBoard
 protected static function setValues()
 {
     $timestamp = time();
     // Default values for config entities
     self::$defaultValues = array("group" => "general", "time_modified" => $timestamp);
     // The config values to insert
     self::$insertValues = array(array("name" => "SiteName", "value" => "Forum_Name", "description" => "The name of the website to appear in the titlebar, and at the start of breadcrumbs."), array("name" => "ForumVersion", "value" => "1.0", "description" => "The version of the forum system"), array("name" => "DefaultTheme", "value" => 1, "description" => "The default theme to use for the forum"), array("name" => "CrumbSeperator", "value" => "»", "description" => "The seperator used in the breadcrumbs"), array("name" => "TimeZone", "value" => "America/Los_Angeles", "description" => "The default timezone for the board to use."), array("name" => "DateFormat", "value" => "n/j/y", "description" => "The date format to use on the board. Format according to PHP's date() function"), array("name" => "TimeFormat", "value" => "g:ia", "description" => "The time format to use on the board. Format according to PHP\\'s date() function."), array("name" => "PostsPerPage", "value" => 10, "description" => "The number of posts to display on a single page"), array("name" => "TopicsPerPage", "value" => 20, "description" => "The number of topics to display on a single page"), array("name" => "UsersOnlineOffset", "value" => "15", "description" => "The number of minutes for the Users Online list to display"));
 }