public function __construct(array $hit, Project $project) { $this->item_title = $hit['fields']['title'][0]; $this->url = '/plugins/docman/?group_id=' . $hit['fields']['group_id'][0] . '&id=' . $hit['fields']['id'][0] . '&action=details'; $this->highlight = isset($hit['highlight']['file']) ? array_shift($hit['highlight']['file']) : ''; parent::__construct($hit, $project); }
public function __construct(array $hit, Project $project) { $page_name = $hit['fields']['page_name'][0]; $project_id = $hit['fields']['group_id'][0]; $page_identifier = urlencode($page_name); $this->item_title = $page_name; $this->url = '/wiki/index.php?group_id=' . $project_id . '&pagename=' . $page_identifier; $this->highlight = isset($hit['highlight']['content']) ? array_shift($hit['highlight']['content']) : ''; parent::__construct($hit, $project); }
public function __construct(array $hit, Project $project, Tracker_Artifact $artifact) { $this->setItemTitle($artifact); $this->url = '/plugins/tracker/?aid=' . $artifact->getId(); parent::__construct($hit, $project); }