/** * Exibe o widget na tela */ public function show() { // atribui as propriedades da TAG $this->tag->name = $this->name; $this->tag->value = $this->value; $this->tag->type = 'radio'; // se o campo não é editável if (!parent::getEditable()) { // desabilita a TAG input $this->tag->readonly = "1"; } // exibe a tag $this->tag->show(); }
/** * Exibe o widget na tela */ public function show() { // atribui as propriedades da TAG $this->tag->name = $this->name; // nome da TAG $this->tag->value = $this->value; // valor da TAG $this->tag->type = 'password'; // tipo do input $this->tag->style = "width:{$this->size}px"; // tamanho em pixels // se o campo não é editável if (!parent::getEditable()) { $this->tag->readonly = "1"; } // exibe a tag $this->tag->show(); }