Beispiel #1
0
 /**
  * Clones the newsletter
  *
  * @return void
  *
  * @see ElggEntity::__clone()
  */
 public function __clone()
 {
     parent::__clone();
     $this->title = elgg_echo("newsletter:duplicate_of") . " " . $this->title;
     $this->status = "concept";
     unset($this->temp_metadata["scheduled"]);
     unset($this->temp_metadata["start_time"]);
 }
Beispiel #2
0
 /**
  * Clones the newsletter
  *
  * @return void
  *
  * @see ElggEntity::__clone()
  */
 public function __clone()
 {
     parent::__clone();
     $this->title = elgg_echo('newsletter:duplicate_of') . ' ' . $this->title;
     $this->status = 'concept';
     unset($this->temp_metadata['scheduled']);
     unset($this->temp_metadata['start_time']);
 }
Beispiel #3
0
 /**
  * Initialize the Wizard object
  *
  * @see ElggObject::initializeAttributes()
  *
  * @return void
  */
 public function __clone()
 {
     parent::__clone();
     $this->title = elgg_echo('wizard:copy:of', [$this->title]);
     $this->friendly_title = elgg_get_friendly_title($this->title);
 }