本文整理汇总了PHP中DataManager::DataManager方法的典型用法代码示例。如果您正苦于以下问题:PHP DataManager::DataManager方法的具体用法?PHP DataManager::DataManager怎么用?PHP DataManager::DataManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager
的用法示例。
在下文中一共展示了DataManager::DataManager方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
/**
* @return GroundManager
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
* @desc Read and write Grounds
*/
function __construct(SiteSettings $o_settings, MySqlConnection $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'Ground';
# Exclude once-only teams by default
$this->filter_team_types = array(Team::CLOSED_GROUP, Team::OCCASIONAL, Team::REGULAR, Team::REPRESENTATIVE);
}
示例2: TeamManager
/**
* @return TeamManager
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
* @desc Read and write Teams
*/
public function TeamManager(SiteSettings $o_settings, MySqlConnection $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'Team';
$this->b_inactive_last = true;
# Exclude once-only teams and schools by default
$this->filter_team_types = array(Team::CLOSED_GROUP, Team::OCCASIONAL, Team::REGULAR, Team::REPRESENTATIVE);
}
示例3: __construct
/**
* @return MatchManager
* @param SiteSettings $o_settings
* @desc Read and write matches
*/
public function __construct($o_settings, $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'Match';
$this->filter_by_match_types = array();
$this->filter_by_player_types = array();
$this->filter_by_teams = array();
}
示例4: __construct
/**
* Instantiates a ShortUrlManager
*
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
*/
public function __construct(SiteSettings $o_settings, MySqlConnection $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->SetItemClass('ShortUrl');
$a_formats = $this->GetSettings()->GetShortUrlFormats();
foreach ($a_formats as $o_format) {
$this->AddUrlFormat($o_format);
}
}
示例5: __construct
/**
* @return AuthenticationManager
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
* @param PermissionType $i_permission_required
* @desc Read and write activation requests
*/
public function __construct($o_settings, $o_db, $i_permission_required = null)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'User';
# If a permission is supplied this is the main authentication manager for the page,
# otherwise it's just an ordinary data manager class.
if (!is_null($i_permission_required)) {
# is authentication required for this page
$this->i_permission_required_for_page = $i_permission_required;
# start/resume a session
# "viewas" parameter is a way of passing PHP session id in an AJAX request
if (isset($_POST["viewas"])) {
session_id($_POST["viewas"]);
}
if (!headers_sent()) {
session_start();
}
# remember this request, so that it's possible to detect a refresh
$this->SaveRequestHash();
}
}
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:28,代码来源:authentication-manager.class.php
示例6: __construct
/**
* @return CategoryManager
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
* @desc Read and write Categories
*/
public function __construct(SiteSettings $o_settings, MySqlConnection $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'Category';
}
示例7: __construct
/**
* @return PlayerManager
* @param SiteSettings $settings
* @param MySqlConnection $connection
* @desc Creates a new PlayerManager
*/
public function __construct(SiteSettings $settings, MySqlConnection $connection)
{
parent::DataManager($settings, $connection);
$this->SetItemClass('Player');
}
示例8:
/**
* @return ClubManager
* @param SiteSettings $settings
* @param MySqlConnection $db
* @desc Read and write Clubs
*/
function __construct(SiteSettings $settings, MySqlConnection $db)
{
parent::DataManager($settings, $db);
$this->s_item_class = 'Club';
}
示例9: SeasonManager
/**
* @return SeasonManager
* @param SiteSettings $o_settings
* @param MySqlConnection $o_db
* @desc Read and write seasons
*/
function SeasonManager(SiteSettings $o_settings, MySqlConnection $o_db)
{
parent::DataManager($o_settings, $o_db);
$this->s_item_class = 'Season';
}
示例10: __construct
/**
* @return StatisticsManager
* @param SiteSettings $o_settings
* @desc Read and write player statistics
*/
public function __construct($o_settings, $o_db)
{
parent::DataManager($o_settings, $o_db);
}