当前位置: 首页>>代码示例>>PHP>>正文


PHP DataManager::DataManager方法代码示例

本文整理汇总了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);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:13,代码来源:ground-manager.class.php

示例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);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:14,代码来源:team-manager.class.php

示例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();
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:13,代码来源:match-manager.class.php

示例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);
     }
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:15,代码来源:short-url-manager.class.php

示例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';
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:11,代码来源:category-manager.class.php

示例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');
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:11,代码来源:player-manager.class.php

示例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';
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:11,代码来源:school-manager.class.php

示例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';
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:11,代码来源:season-manager.class.php

示例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);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:9,代码来源:statistics-manager.class.php


注:本文中的DataManager::DataManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。