Source for file FontWeightSP.class.php

Documentation is available at FontWeightSP.class.php

  1. <?php
  2.  
  3. require_once(HARMONI."GUIManager/StyleProperty.class.php");
  4. require_once(HARMONI."GUIManager/StyleComponents/FontWeightSC.class.php");
  5.  
  6. /**
  7. * The FontWeightSP represents the 'font-weight' StyleProperty.
  8. *
  9. * A StyleProperty (SP) is one of the tree building pieces of CSS styles. It stores
  10. * information about a single CSS style property by storing one or more
  11. * <code>StyleComponents</code>.
  12. *
  13. * The other two CSS styles building pieces are <code>StyleComponents</code> and
  14. * <code>StyleCollections</code>.
  15. *
  16. * @package harmoni.gui.sps
  17. *
  18. * @copyright Copyright &copy; 2005, Middlebury College
  19. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  20. *
  21. * @version $Id: FontWeightSP.class.php,v 1.5 2006/06/02 15:56:07 cws-midd Exp $
  22. */
  23. class FontWeightSP extends StyleProperty {
  24.  
  25. /**
  26. * The constructor. All parameters but weight and weight could be null,
  27. * in which case they will not be taken in consideration.
  28. * @access public
  29. * @param string weight The font weight.
  30. ***/
  31. function FontWeightSP($weight) {
  32. $this->StyleProperty("font-weight", "Font Weight", "This property sets the font weight.");
  33.  
  34. if (!is_null($weight)) $this->addSC(new FontWeightSC($weight));
  35. }
  36.  
  37. }
  38.  
  39. ?>

Documentation generated on Wed, 19 Sep 2007 10:23:20 -0400 by phpDocumentor 1.3.0RC3