/** * 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"]); }
/** * 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']); }
/** * 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); }