When developer wants his method to accept both list & item object, then he needs to use kDBBase class for type hinting like this:

public function getBuildParams(kDBBase $object)
{
	$value = $object->GetDBField('FieldName'); // doesn't auto-complete
}

However because of all abstract methods in kDBBase class (including method GetDBField above) has protected access they are not auto-completed by IDE.

kdbbase_abstract_protected_method_fix.patch

Related Tasks