public function __construct(Tracker_ArtifactFactory $artifact_factory, Tracker_Artifact_Changeset_FieldsValidator $fields_validator, Tracker_Artifact_Changeset_InitialChangesetCreatorBase $changeset_creator) { $this->artifact_dao = $artifact_factory->getDao(); $this->artifact_factory = $artifact_factory; $this->fields_validator = $fields_validator; $this->changeset_creator = $changeset_creator; }
public function __construct(Tracker_ArtifactFactory $artifact_factory, Planning_Milestone $milestone, array $item_names, array $descendant_trackers, AgileDashboard_BacklogItemDao $item_dao, $limit = null, $offset = null) { $this->milestone = $milestone; $this->backlogitem_trackers = $item_names; $this->dao = $item_dao; $this->descendant_trackers = $descendant_trackers; $this->limit = $limit; $this->offset = $offset; $this->items_finder = new AgileDashboard_Milestone_Backlog_DescendantItemsFinder($item_dao, $artifact_factory->getDao(), $artifact_factory, $milestone, $this->getDescendantTrackerIds()); }