diff options
author | xue <> | 2006-02-03 22:17:33 +0000 |
---|---|---|
committer | xue <> | 2006-02-03 22:17:33 +0000 |
commit | 979430b5bf60e5857846ecb561404a89c02cefcd (patch) | |
tree | cc8d51f086da6b36542e5ee9622329590fc72733 /framework/Web/UI/WebControls/TFont.php | |
parent | baac41fc1e52c2902feabf778915195042b196b0 (diff) |
Completed datagrid tutorial part one and added a new datagrid sample.
Diffstat (limited to 'framework/Web/UI/WebControls/TFont.php')
-rw-r--r-- | framework/Web/UI/WebControls/TFont.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/Web/UI/WebControls/TFont.php b/framework/Web/UI/WebControls/TFont.php index 51d864c3..2f95e2bd 100644 --- a/framework/Web/UI/WebControls/TFont.php +++ b/framework/Web/UI/WebControls/TFont.php @@ -56,7 +56,7 @@ class TFont extends TComponent private $_size='';
/**
- * @return boolean whether the font is in bold face
+ * @return boolean whether the font is in bold face. Defaults to false.
*/
public function getBold()
{
@@ -69,14 +69,14 @@ class TFont extends TComponent public function setBold($value)
{
$this->_flags |= self::IS_SET_BOLD;
- if($value)
+ if(TPropertyValue::ensureBoolean($value))
$this->_flags |= self::IS_BOLD;
else
$this->_flags &= ~self::IS_BOLD;
}
/**
- * @return boolean whether the font is in italic face
+ * @return boolean whether the font is in italic face. Defaults to false.
*/
public function getItalic()
{
@@ -89,14 +89,14 @@ class TFont extends TComponent public function setItalic($value)
{
$this->_flags |= self::IS_SET_ITALIC;
- if($value)
+ if(TPropertyValue::ensureBoolean($value))
$this->_flags |= self::IS_ITALIC;
else
$this->_flags &= ~self::IS_ITALIC;
}
/**
- * @return boolean whether the font is overlined
+ * @return boolean whether the font is overlined. Defaults to false.
*/
public function getOverline()
{
@@ -109,7 +109,7 @@ class TFont extends TComponent public function setOverline($value)
{
$this->_flags |= self::IS_SET_OVERLINE;
- if($value)
+ if(TPropertyValue::ensureBoolean($value))
$this->_flags |= self::IS_OVERLINE;
else
$this->_flags &= ~self::IS_OVERLINE;
@@ -133,7 +133,7 @@ class TFont extends TComponent }
/**
- * @return boolean whether the font is strikeout
+ * @return boolean whether the font is strikeout. Defaults to false.
*/
public function getStrikeout()
{
@@ -146,14 +146,14 @@ class TFont extends TComponent public function setStrikeout($value)
{
$this->_flags |= self::IS_SET_STRIKEOUT;
- if($value)
+ if(TPropertyValue::ensureBoolean($value))
$this->_flags |= self::IS_STRIKEOUT;
else
$this->_flags &= ~self::IS_STRIKEOUT;
}
/**
- * @return boolean whether the font is underlined
+ * @return boolean whether the font is underlined. Defaults to false.
*/
public function getUnderline()
{
@@ -166,7 +166,7 @@ class TFont extends TComponent public function setUnderline($value)
{
$this->_flags |= self::IS_SET_UNDERLINE;
- if($value)
+ if(TPropertyValue::ensureBoolean($value))
$this->_flags |= self::IS_UNDERLINE;
else
$this->_flags &= ~self::IS_UNDERLINE;
|