Skip to content

Commit

Permalink
Dev Added support for text attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Mar 19, 2013
1 parent dfe32f1 commit a0bf3a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions application/helpers/PluginSettingsHelper.php
Expand Up @@ -96,6 +96,19 @@ public function renderHtml($name, array $metaData, $form = null)
$out .= Chtml::tag('div', array('class' => implode(' ', $metaData['class'])), CHtml::textArea($id, $value, array('id' => $id, 'form' => $form, 'readonly' => $readOnly)));
return $out;
}
public function renderText($name, array $metaData, $form = null)
{
$out = '';
$id = $name;
$value = isset($metaData['current']) ? $metaData['current'] : '';
$readOnly = isset($metaData['readOnly']) ? $metaData['readOnly'] : false;
if (isset($metaData['label']))
{
$out .= CHtml::label($metaData['label'], $id);
}
$out .= Chtml::tag('div', array('class' => implode(' ', $metaData['class'])), CHtml::textArea($id, $value, array('id' => $id, 'form' => $form, 'readonly' => $readOnly)));
return $out;
}

public function renderInt($name, array $metaData, $form = null)
{
Expand Down

0 comments on commit a0bf3a6

Please sign in to comment.