. */ require_once('CFDBDataIterator.php'); abstract class CFDBDataIteratorDecorator extends CFDBDataIterator { /** * @var CFDBDataIterator */ var $source; /** * @param $source CFDBDataIterator */ public function setSource($source) { $this->source = $source; } public function getDisplayColumns() { if (empty($this->displayColumns)) { return $this->source->getDisplayColumns(); } return $this->displayColumns; } }