本文整理汇总了PHP中Setting::getValue方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::getValue方法的具体用法?PHP Setting::getValue怎么用?PHP Setting::getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Setting
的用法示例。
在下文中一共展示了Setting::getValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sys_var
function sys_var($setting_name) {
try{
$setting = New Setting(array('name' => $setting_name,'owner_id' => 0));
$value = $setting->getValue();
} catch (fNotFoundException $e) {
$setting = $GLOBALS['default_plugin_settings'][$setting_name];
$value = $setting['default'];
}
return $value;
}
示例2: showFrontPage
/**
*
*/
public function showFrontPage()
{
$this->subdirectory = '/';
$this->template = '/default/view.tpl';
$this->path = '/index';
if ($this->getClearRender()) {
$competitionGenders = array(GENDER_HEREN_NEFUB_NAME, GENDER_DAMES_NEFUB_NAME, GENDER_MIXED_NEFUB_NAME);
$aCompetitions = array();
foreach ($competitionGenders as $competitionGender) {
$oGender = Gender::getByNefubName($competitionGender);
$aGenreCompetitions = Competition::getAll(array('gender_id' => $oGender->getId(), 'season_nefub_id' => $this->season->nefub_id), 'genre_id`,`name');
$aCompetitions = array_merge($aCompetitions, $aGenreCompetitions);
}
$this->assign('aCompetitions', $aCompetitions);
$plannedGames = Game::getPlannedGamesSorted($this->season, Setting::getValue('front_limit_calendar_days'));
$sortedCalendar = array();
foreach ($plannedGames as $oGame) {
if (!isset($sortedCalendar[$oGame->date])) {
$sortedCalendar[$oGame->date] = array('events' => array(), 'games' => array());
}
$sortedCalendar[$oGame->date]['games'][] = $oGame;
}
$plannedEvents = Event::getPlannedEvents();
foreach ($plannedEvents as $oEvent) {
if (!isset($sortedCalendar[$oEvent->date])) {
$sortedCalendar[$oEvent->date] = array('events' => array(), 'games' => array());
$sortedCalendar[$oEvent->date]['events'][] = $oEvent;
}
}
ksort($sortedCalendar);
$this->assign('plannedGames', $plannedGames);
$this->assign('plannedEvents', $plannedEvents);
$this->assign('sortedCalendar', $sortedCalendar);
$aResultGames = Game::getRecentGamesSorted($this->season, Setting::getValue('front_limit_results'));
$this->assign('aResultGames', $aResultGames);
$this->assign('home', true);
$this->assign('updateTime', time());
}
$this->showOutput();
}
示例3: fetchForJQDT
/** Method that fetches admins from database for JQuery Data Table
* @param string $column Column name of the data to be fetched
* @param string $condition Additional condition e.g category_id > 9
* @param string $sort column name to be used as sort parameter
* @return JSON JSON encoded admin details
*/
public function fetchForJQDT($draw, $totalData, $totalFiltered, $customSql = "", $column = "*", $condition = "", $sort = "id")
{
$sql = "SELECT {$column} FROM admin ORDER BY {$sort}";
if (!empty($condition)) {
$sql = "SELECT {$column} FROM admin WHERE {$condition} ORDER BY {$sort}";
}
if ($customSql != "") {
$sql = $customSql;
}
$data = $this->dbObj->fetchAssoc($sql);
$result = array();
if (count($data) > 0) {
foreach ($data as $r) {
$fetAdminRole = 'icon-check-empty';
$fetAdminRolCol = 'btn-warning';
$fetAdminRolTit = "Upgrade Admin";
if ($r['role'] == "Admin") {
$fetAdminRole = 'icon-check';
$fetAdminRolCol = 'btn-success';
$fetAdminRolTit = "Degrade Admin";
}
$deleteActionLink = '<button data-role="' . $r['role'] . '" data-name="' . $r['name'] . '" data-id="' . $r['id'] . '" class="btn ' . $fetAdminRolCol . ' btn-small upgrade-admin" title="' . $fetAdminRolTit . '"><i class="btn-icon-only ' . $fetAdminRole . '"> </i></button> <button data-role="' . $r['role'] . '" data-id="' . $r['id'] . '" data-name="' . $r['name'] . '" class="btn btn-danger btn-small delete-admin" title="Delete"><i class="btn-icon-only icon-trash"> </i></button>';
$multiActionBox = '<input type="checkbox" class="multi-action-box" data-id="' . $r['id'] . '" data-role="' . $r['role'] . '" />';
if ($r['role'] == "Admin" && $r['email'] == trim(stripcslashes(strip_tags(Setting::getValue($this->dbObj, 'COMPANY_EMAIL'))))) {
$deleteActionLink = '';
$multiActionBox = '';
}
$result[] = array(utf8_encode($multiActionBox), $r['id'], utf8_encode($r['name']), utf8_encode($r['email']), utf8_encode($r['username']), utf8_encode($r['role']), utf8_encode($r['date_registered']), utf8_encode(' <button data-role="' . $r['role'] . '" data-name="' . $r['name'] . '" data-email="' . $r['email'] . '" data-username="' . $r['username'] . '" data-id="' . $r['id'] . '" class="btn btn-info btn-small edit-admin" title="Edit"><i class="btn-icon-only icon-pencil"> </i></button> ' . $deleteActionLink));
}
$json = array("status" => 1, "draw" => intval($draw), "recordsTotal" => intval($totalData), "recordsFiltered" => intval($totalFiltered), "data" => $result);
} else {
$json = array("status" => 2, "msg" => "Necessary parameters not set. Or empty result. " . mysqli_error($this->dbObj->connection), "draw" => intval($draw), "recordsTotal" => intval($totalData), "recordsFiltered" => intval($totalFiltered), "data" => false);
}
$this->dbObj->close();
header('Content-type: application/json');
return json_encode($json);
}
示例4: array
<?php
$max_age_season_details = Setting::getValue('max_age_season_details');
$max_age_competition_details = Setting::getValue('max_age_competition_details');
$max_age_poule_details = Setting::getValue('max_age_poule_details');
$max_age_person_details = Setting::getValue('max_age_person_details');
$max_age_team_details = Setting::getValue('max_age_team_details');
$max_age_team_results = Setting::getValue('max_age_team_results');
$max_age_team_schedule = Setting::getValue('max_age_team_schedule');
$max_age_club_details = Setting::getValue('max_age_club_details');
$max_age_location_details = Setting::getValue('max_age_location_details');
define('MAX_AGE_SEASON_DETAILS', $max_age_season_details);
define('MAX_AGE_COMPETITION_DETAILS', $max_age_competition_details);
define('MAX_AGE_POULE_DETAILS', $max_age_poule_details);
define('MAX_AGE_PERSON_DETAILS', $max_age_person_details);
define('MAX_AGE_TEAM_DETAILS', $max_age_team_details);
define('MAX_AGE_TEAM_RESULTS', $max_age_team_results);
define('MAX_AGE_TEAM_SCHEDULE', $max_age_team_schedule);
define('MAX_AGE_CLUB_DETAILS', $max_age_club_details);
define('MAX_AGE_LOCATION_DETAILS', $max_age_location_details);
class MapperRetriever extends Retriever
{
protected $retrievedPersonNefubIds = array();
protected $retrievedTeamGamesNefubIds = array();
protected $retrievedTeamNefubIds = array();
protected $retrievedClubNefubIds = array();
protected $retrievedScheduledGameNefubIds = array();
protected $retrievedLocationNefubIds = array();
protected $addedNefubObjects;
private static $instance;
/**
示例5: utf8_decode
" />
<meta property="twitter:title" content="<?php
echo $thisPage->title;
?>
" />
<meta property="twitter:description" content="<?php
echo $thisPage->description;
?>
" />
<meta property="og:image" content="<?php
echo SITE_URL;
?>
images/favicon.png"/>
<meta property="og:image:type" content="image/jpeg"/>
<meta property="og:image:width" content="200"/>
<meta property="og:image:height" content="200"/>
<meta property="fb:admins" content="<?php
echo FACEBOOK_ADMINS;
?>
" />
<meta property="fb:app_id" content="<?php
echo FACEBOOK_APP_ID;
?>
"/>
<meta property="twitter_id" content="<?php
echo TWITTER_ID;
?>
"/>
<?php
echo utf8_decode(Setting::getValue($dbObj, 'ANALYTICS'));
示例6: trim
</a></h4>
<?php
} else {
?>
<h4 class="media-heading"><a href="<?php
echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[3]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[3])))) : '';
?>
" ><?php
echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[1]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[1])))) : '';
?>
</a></h4>
<?php
}
?>
<p><?php
echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[2]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[2])))) : '';
?>
</p>
</div>
</div>
<style scoped="scoped"> #un-icon-box-1 .un-icon{ background: #ffffff}#un-icon-box-1 .un-icon:hover{ background: #f71111}#un-icon-box-1 .media-heading{ color: #dddddd}#un-icon-box-1 .media-body p{ color: #f4f4f4} </style>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
示例7: url
<!-- <div class="sc_socials_item">
<a href="<?php
//echo DRIBBBLE_LINK;
?>
" target="_blank" class="social_icons social_dribbble" style="background-image: url(<?php
//echo SITE_URL;
?>
themes/education/fw/images/socials/dribbble.png);"><span class="sc_socials_hover" style="background-image: url(<?php
//echo SITE_URL;
?>
themes/education/fw/images/socials/dribbble.png);"></span>
</a>
</div>-->
</div>
</div> <!-- /.content_wrap -->
</footer> <!-- /.contacts_wrap -->
<div class="copyright_wrap">
<div class="content_wrap">
<p>© <?php
$currYear = new DateTime();
echo $currYear->format('Y');
?>
All Rights Reserved.</p>
</div>
</div>
<?php
echo Setting::getValue($dbObj, 'ADDTHIS_SHARE_BUTTON') ? Setting::getValue($dbObj, 'ADDTHIS_SHARE_BUTTON') : '';
?>
示例8: define
<?php
define("FACEBOOK_APP_ID", Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '');
define("FACEBOOK_ADMINS", Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '');
define("TWITTER_ID", Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '');
define("WEBSITE_AUTHOR", Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '');
define("WELCOME_MESSAGE", Setting::getValue($dbObj, 'WELCOME_MESSAGE') ? Setting::getValue($dbObj, 'WELCOME_MESSAGE') : '');
define("FACEBOOK_LINK", Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '');
define("GOOGLEPLUS_LINK", Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '');
define("LINKEDIN_LINK", Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '');
define("TWITTER_LINK", Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '');
define("YOUTUBE_LINK", Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '');
define("COMPANY_HOTLINE", Setting::getValue($dbObj, 'COMPANY_HOTLINE') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_HOTLINE')))) : '');
define("COMPANY_EMAIL", Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '');
define("COMPANY_ADDRESS", Setting::getValue($dbObj, 'COMPANY_ADDRESS') ? Setting::getValue($dbObj, 'COMPANY_ADDRESS') : '');
define("COMPANY_NUMBERS", Setting::getValue($dbObj, 'COMPANY_NUMBERS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_NUMBERS')))) : '');
define("COMPANY_ACC_DETAILS", Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') ? Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') : '');
define("COMPANY_OTHER_EMAILS", Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS')))) : '');
示例9: testSetting
public function testSetting()
{
$set = new Setting(123, 'Theme', 'default');
$this->assertEquals(123, $set->getID());
$this->assertEquals('Theme', $set->getName());
$this->assertEquals('default', $set->getValue());
}
示例10:
</ul>
</li>
<li> <a href="#"><i class="fa fa-picture-o fa-2x"></i> Gallery Manager<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="add-gallery-image">Add Images</a> </li>
<li> <a href="manage-gallery">Manage Gallery</a> </li>
</ul>
</li>
<li> <a href="#"><i class="fa fa-video-camera fa-2x"></i> Video Manager<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="manage-videos">Add Video</a> </li>
<li> <a href="manage-videos">Manage Videos</a> </li>
</ul>
</li>
<?php
if (isset($_SESSION['ITCadminEmail']) && $_SESSION['ITCadminEmail'] == trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL'))))) {
?>
<li> <a href="#"><i class="fa fa-cog fa-2x"></i>Settings Manager<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="manage-settings"><i class="fa fa-cogs fa-1x"></i> General Settings</a> </li>
<li> <a href="manage-webpages"><i class="fa fa-globe fa-1x"></i> Manage Web Pages</a> </li>
</ul>
</li>
<?php
}
?>
<li>
<a href="profile"><i class="fa fa-book fa-2x"></i> My Profile</a>
</li>
<li>
<a href="#" class="logout"><i class="fa fa-sign-out fa-2x"></i> Logout</a>
示例11: trim
<?php
$cfg->fbAppId = Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '';
$cfg->fbAdmins = Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '';
$cfg->fbLink = Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '';
$cfg->twitterId = Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '';
$cfg->twitterLink = Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '';
$cfg->author = Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '';
$cfg->gplusLink = Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '';
$cfg->linkedinLink = Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '';
$cfg->youTubeLink = Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '';
$cfg->pinterestLink = Setting::getValue($dbObj, 'PINTEREST_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'PINTEREST_LINK')))) : '';
$cfg->returnUrl = Setting::getValue($dbObj, 'RETURN_URL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'RETURN_URL')))) : '';
$cfg->companyEmail = Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '';
示例12: define
<?php
define("FACEBOOK_APP_ID", Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '');
define("FACEBOOK_ADMINS", Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '');
define("TWITTER_ID", Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '');
define("WEBSITE_AUTHOR", Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '');
define("WELCOME_MESSAGE", Setting::getValue($dbObj, 'WELCOME_MESSAGE') ? Setting::getValue($dbObj, 'WELCOME_MESSAGE') : '');
define("FACEBOOK_LINK", Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '');
define("GOOGLEPLUS_LINK", Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '');
define("LINKEDIN_LINK", Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '');
define("TWITTER_LINK", Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '');
define("PINTEREST_LINK", Setting::getValue($dbObj, 'PINTEREST_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'PINTEREST_LINK')))) : '');
define("DRIBBBLE_LINK", Setting::getValue($dbObj, 'DRIBBLE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'DRIBBLE_LINK')))) : '');
define("YOUTUBE_LINK", Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '');
define("COMPANY_HOTLINE", Setting::getValue($dbObj, 'COMPANY_HOTLINE') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_HOTLINE')))) : '');
define("COMPANY_EMAIL", Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '');
define("COMPANY_ADDRESS", Setting::getValue($dbObj, 'COMPANY_ADDRESS') ? Setting::getValue($dbObj, 'COMPANY_ADDRESS') : '');
define("COMPANY_ADDRESS_GMAP", Setting::getValue($dbObj, 'COMPANY_ADDRESS_GMAP') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_ADDRESS_GMAP')))) : '');
define("COMPANY_NUMBERS", Setting::getValue($dbObj, 'COMPANY_NUMBERS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_NUMBERS')))) : '');
define("COMPANY_ACC_DETAILS", Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') ? Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') : '');
define("COMPANY_OTHER_EMAILS", Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS')))) : '');
define("SETTINGS_PANEL", Setting::getValue($dbObj, 'SETTINGS_PANEL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'SETTINGS_PANEL')))) : '');
示例13:
</div><!--/container-->
</div>
<!--/page-heading-->
<?php
include 'includes/sidebar-top.php';
?>
<!--/Top sidebar-->
<div id="body" >
<div class="container">
<div class="content-pad-3x">
<div class="row">
<div id="content" class="col-md-9" role="main">
<article class="single-page-content">
<?php
echo Setting::getValue($dbObj, 'ABOUT_US') ? Setting::getValue($dbObj, 'ABOUT_US') : '';
?>
</article>
</div><!--/content-->
<?php
include 'includes/sidebar.php';
?>
<!--#sidebar-->
</div><!--/row-->
</div><!--/content-pad-3x-->
</div><!--/container-->
</div><!--/body-->
<?php
include 'includes/sidebar-bottom.php';
?>
<?php
示例14: unset
'
});
</script>
<?php
unset($_SESSION['msg']);
unset($_SESSION['msgStatus']);
}
?>
</div>
<header class="top_panel_wrap bg_tint_dark" >
<div class="menu_user_wrap">
<div class="content_wrap clearfix">
<div class="menu_user_area menu_user_right menu_user_nav_area">
<ul id="menu_user" class="menu_user_nav">
<?php
if (trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'BOOKMARK_BUTTON')))) == "TRUE") {
?>
<li class="menu_user_bookmarks"><a href="#" class="bookmarks_show icon-star-1" title="Show bookmarks"></a>
<ul class="bookmarks_list">
<li><a href="#" class="bookmarks_add icon-star-empty" title="Add the current page into bookmarks">Add bookmark</a></li>
</ul>
</li>
<?php
}
?>
<?php
include 'login-section.php';
?>
</ul>
</div>
<!-- <div class="menu_user_area menu_user_left menu_user_contact_area" <?php
示例15: __construct
private function __construct()
{
$this->competition_retrieve_frequency = Setting::getValue('competition_retrieve_frequency');
}