當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。