Esempio n. 1
0
 public function duplicate($source, $target, Zend_ProgressBar $progressBar = null)
 {
     //pages are not duplicated because they are not returned by 'inherit'=>false
     //so duplicate them here
     $s = array('generatorFlags' => array('pageGenerator' => true), 'ignoreVisible' => true);
     foreach ($source->getChildComponents($s) as $c) {
         $c->generator->duplicateChild($c, $target, $progressBar);
     }
     parent::duplicate($source, $target, $progressBar);
 }
Esempio n. 2
0
 public function duplicate($source, $target, $progressBar = null)
 {
     parent::duplicate($source, $target, $progressBar);
     $this->_duplicated[] = array('source' => $source->componentId, 'target' => $target->componentId);
 }