menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

 Class TLabel

Description

Implements interfaces:

Label Widget

Located in /widget/form/TLabel.php (line 19)

TField
   |
    --TLabel
Variable Summary
 mixed $id
 mixed $size
 mixed $value
Method Summary
 __construct ($value $value, [ $color = null], [ $size = null], [ $decoration = null]) TLabel
 add ($content $content) void
 getValue () void
 setFontColor ($color $color) void
 setFontFace ($font $font) void
 setFontSize ($size $size) void
 setFontStyle ($decoration $decoration) void
 show () void
 __clone () void
Variables
mixed $id (line 25)
  • access: protected

Redefinition of:
TField::$id
mixed $size (line 24)
  • access: protected

Redefinition of:
TField::$size
mixed $value (line 23)
  • access: protected

Redefinition of:
TField::$value

Inherited Variables

Inherited from TField

TField::$editable
TField::$formName
TField::$label
TField::$name
TField::$tag
Methods
Constructor __construct (line 31)

Class Constructor

  • access: public
TLabel __construct ($value $value, [ $color = null], [ $size = null], [ $decoration = null])
  • $value $value: text label
  • $color
  • $size
  • $decoration

Redefinition of:
TField::__construct()
Class Constructor
add (line 122)

Add a content inside the label

void add ($content $content)
  • $content $content
getValue (line 135)

Get value

  • access: public
void getValue ()

Redefinition of:
TField::getValue()
Returns the field's value

Implementation of:
AdiantiWidgetInterface::getValue()
setFontColor (line 113)

Define the font color

  • access: public
void setFontColor ($color $color)
  • $color $color: Font Color
setFontFace (line 104)

Define the font face

  • access: public
void setFontFace ($font $font)
  • $font $font: Font Family Name
setFontSize (line 73)

Define the font size

  • access: public
void setFontSize ($size $size)
  • $size $size: Font size in pixels
setFontStyle (line 82)

Define the style

  • access: public
void setFontStyle ($decoration $decoration)
  • $decoration $decoration: text decorations (b=bold, i=italic, u=underline)
show (line 143)

Shows the widget at the screen

  • access: public
void show ()

Implementation of:
AdiantiWidgetInterface::show()
__clone (line 63)

Clone the object

  • access: public
void __clone ()

Redefinition of:
TField::__clone()
Clone the object

Inherited Methods

Inherited From TField

 TField::__construct()
 TField::addValidation()
 TField::clearField()
 TField::disableField()
 TField::enableField()
 TField::getContents()
 TField::getEditable()
 TField::getId()
 TField::getLabel()
 TField::getName()
 TField::getPostData()
 TField::getProperty()
 TField::getSize()
 TField::getValidations()
 TField::getValue()
 TField::isRequired()
 TField::setEditable()
 TField::setFormName()
 TField::setId()
 TField::setLabel()
 TField::setName()
 TField::setProperty()
 TField::setSize()
 TField::setTip()
 TField::setValue()
 TField::validate()
 TField::__call()
 TField::__clone()
 TField::__get()
 TField::__set()