Documentation is available at BorderStyleSC.class.php
- <?php
- require_once(HARMONI."GUIManager/StyleComponent.class.php");
- /**
- * The BorderStyleSC represents CSS border-style values. The allowed values are:
- * <ul style="font-family: monospace;">
- * <li> none </li>
- * <li> dotted </li>
- * <li> dashed </li>
- * <li> solid </li>
- * <li> groove </li>
- * <li> ridge </li>
- * <li> inset </li>
- * <li> outset </li>
- * <li> double </li>
- * </ul>
- * <br /><br />
- * The <code>StyleComponent</code> (SC) is the most basic of the three building pieces
- * of CSS styles. It combines a CSS property value with a ValidatorRule to ensure that
- * the value follows a certain format.<br /><br />
- *
- * @package harmoni.gui.scs
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: BorderStyleSC.class.php,v 1.7 2006/08/15 20:44:58 sporktim Exp $
- */
- class BorderStyleSC extends StyleComponent {
- /**
- * The constructor.
- * @param string value The value to assign to this SC.
- * @access public
- ***/
- function BorderStyleSC($value) {
- $options = array("none", "dotted", "dashed",
- "solid", "groove", "ridge",
- "inset", "outset", "double");
- $errDescription = "Could not validate the border-style StyleComponent value \"%s\". ";
- $errDescription .= "Allowed values are ".implode(", ", $options).".";
- $displayName = "Border Style";
- $description = "Specifies the border style. Allowed values are: ".implode(", ", $options).".";
- $rule = RegexValidatorRule::getRuleByArray($options);
- $this->StyleComponent($value, $rule, $options, true, $errDescription, $displayName, $description);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:21:48 -0400 by phpDocumentor 1.3.0RC3