Hey guys,
Really simple one here. I'm wondering if one can take two DataObjectSets (from two separate DataObject::get requests) and join them together.
I have two different DataObjects, Module.php and Course.php. I want to call both of them using one function, so I can order both Modules AND Courses by Title ASC using a control block.
Currently the code I have is:
function Modules(){
return DataObject::get("Module");
}
function Courses(){
return DataObject::get("Course");
}
Can I do what i'm trying to achieve in it's own function? Or can I reference the above functions in another function to achieve the join?
Cheers,
Josh