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


PHP Collection::Collection方法代码示例

本文整理汇总了PHP中Collection::Collection方法的典型用法代码示例。如果您正苦于以下问题:PHP Collection::Collection方法的具体用法?PHP Collection::Collection怎么用?PHP Collection::Collection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Collection的用法示例。


在下文中一共展示了Collection::Collection方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Competition

 /**
  * An ongoing competition such as a league or cup
  *
  * @param SiteSettings $o_settings
  * @return Competition
  */
 function Competition(SiteSettings $o_settings)
 {
     $this->o_settings = $o_settings;
     parent::Collection();
     $this->s_item_class = 'Season';
     $this->SetWorkingIndex(-1);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:13,代码来源:competition.class.php

示例2: array

 /**
  * @return Season
  * @param SiteSettings $o_settings
  * @desc Creates a new stoolball season
  */
 function __construct(SiteSettings $o_settings)
 {
     $this->o_settings = $o_settings;
     $this->a_teams = array();
     $this->teams_withdrawn_from_league = new Collection();
     $this->match_types = new Collection();
     $this->o_possible_results = new Collection(null, 'MatchResult');
     $this->o_points_adjustments = new Collection(null, 'PointsAdjustment');
     parent::Collection();
     $this->s_item_class = 'Match';
     # Default to hiding league table
     $this->SetShowTable(false);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:18,代码来源:season.class.php

示例3: CategoryCollection

 function CategoryCollection($a_items = null)
 {
     $this->SetItemClass('Category');
     parent::Collection($a_items);
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:5,代码来源:category-collection.class.php

示例4: DataManager

 /**
  * @return DataManager
  * @param SiteSettings $o_settings
  * @param MySqlConnection $o_db
  * @desc Create a DataManager to read and write structured data
  */
 function DataManager(SiteSettings $o_settings, MySqlConnection $o_db)
 {
     $this->o_settings = $o_settings;
     $this->o_db = $o_db;
     parent::Collection();
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:12,代码来源:data-manager.class.php

示例5: ForumTopic

 function ForumTopic(SiteSettings $o_settings, $a_items = null)
 {
     parent::Collection($a_items);
     $this->o_settings = $o_settings;
     $this->s_item_class = 'ForumMessage';
 }
开发者ID:stoolball-england,项目名称:stoolball-england-website,代码行数:6,代码来源:forum-topic.class.php

示例6: Map

 /**
  * Hidden constructor
  *
  * Use Map::getInstance to get an instance
  */
 protected function Map()
 {
     parent::Collection();
 }
开发者ID:BackupTheBerlios,项目名称:medick-svn,代码行数:9,代码来源:Map.php


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