/** * Template method implementation * * Creates a Page object using values in parameter $array * Called by parent::createObject() * * @param $array assoc contains page values in format 'column' => 'value' * @return $object Page the created instance of Page */ protected function doCreateObject(array $array) { $object = new Page(); $object->loadFromArray($array); return $object; }