protected function initInternal() { parent::initInternal(); if ($this->id === null || $this->comment->author !== null) { $this->ui->getWidget('fullname_field')->visible = false; $this->ui->getWidget('link_field')->visible = false; $this->ui->getWidget('email_field')->visible = false; $this->ui->getWidget('status_field')->visible = false; } }
protected function initInternal() { parent::initInternal(); $this->photographers = $this->getPhotographers(); }