missed a spot in https://github.com/opnsense/core/issues/2670 leading to basemodel to being able to find iterateItems(), previous functionality used a specialized property which was passed using __get()

This commit is contained in:
Ad Schellevis 2018-10-11 08:28:53 +02:00
parent b27a62b7f5
commit 239e89fd5f

View File

@ -366,6 +366,15 @@ abstract class BaseModel
return $this->internalData->setNodes($data);
}
/**
* iterate (non virtual) child nodes
* @return mixed
*/
public function iterateItems()
{
return $this->internalData->iterateItems();
}
/**
* validate full model using all fields and data in a single (1 deep) array
* @param bool $validateFullModel validate full model or only changed fields