本文整理汇总了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);
}
示例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);
}
示例3: CategoryCollection
function CategoryCollection($a_items = null)
{
$this->SetItemClass('Category');
parent::Collection($a_items);
}
示例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();
}
示例5: ForumTopic
function ForumTopic(SiteSettings $o_settings, $a_items = null)
{
parent::Collection($a_items);
$this->o_settings = $o_settings;
$this->s_item_class = 'ForumMessage';
}
示例6: Map
/**
* Hidden constructor
*
* Use Map::getInstance to get an instance
*/
protected function Map()
{
parent::Collection();
}