<?php

class MBaseLabel extends MOutputControl
{
    public function __construct( $name = NULL, $text = NULL, $color = '', $hint = '', $bold = false )
    {
        parent::__construct( $name, '', '', $color, $hint );
        $this->setText($text);
        $this->setBold($bold);
    }

    public function setBold( $value = true )
    {
        if ($value) $this->font->weight = 'bold';
    }
}

class MLabel extends MBaseLabel
{
    public function __construct( $text = NULL, $color = '', $bold = false )
    {
        parent::__construct( NULL, $text, $color, NULL, $bold );
    }

    public function generateInner()
    {
        if ( $this->getClass() == '' )
        {
            $this->setClass( 'mLabel' );
        }
        $this->inner = $this->getRender( 'text' );
    }
}

?>