Exemplo n.º 1
0
	/**
	 * Returns a readonly version of this field
	 */
	 
	function performReadonlyTransformation() {
		$field = new CheckboxField_Readonly($this->name, $this->title, $this->value ? 'Yes' : 'No');
		$field->setForm($this->form);
		return $field;	
	}
Exemplo n.º 2
0
 /**
  * Returns a readonly version of this field
  */
 function performReadonlyTransformation()
 {
     $field = new CheckboxField_Readonly($this->name, $this->title, $this->value ? _t('CheckboxField.YES', 'Yes') : _t('CheckboxField.NO', 'No'));
     $field->setForm($this->form);
     return $field;
 }