I'm still not sure if I understand well the self / parent keywords about the forking, I have still a lot to learn I guess. There's no hurry but I will make sure to investigate it better before using my component on a live website.
Also, about forking, if I understand it, there's no way to overide only a line in the middle, right? (can explain better what I mean so here's an example...)
I have added a addWhere before getting items of a model. For now, I have forked the entire function...
protected function displayAddissue($tpl = null)
{
$document = JFactory::getDocument();
$this->title = JText::_("PROJECTLAB_LAYOUT_ADD_ISSUE");
$document->title = $document->titlePrefix . $this->title . $document->titleSuffix;
[...]
$model_issue_type = CkJModel::getInstance('Itemtypes', 'ProjectlabModel');
$model_issue_type->addGroupOrder("a.name");
Added==>[b]$model_issue_type->addWhere ("a.table LIKE '%issue%'");[/b]
$lists['fk']['issue_type'] = $model_issue_type->getItems();
$model_milestone_id = CkJModel::getInstance('Milestones', 'ProjectlabModel');
$model_milestone_id->addGroupOrder("a.title");
$lists['fk']['milestone_id'] = $model_milestone_id->getItems();
}
Do the forking can help in this case? (In added a single line marked as Added==>)