Documentation is available at AutoLengthSC.class.php
- <?php
- require_once(HARMONI."GUIManager/StyleComponent.class.php");
- require_once(HARMONI."GUIManager/StyleComponents/LengthSC.class.php");
- /**
- * The AutoLengthSC represents CSS "top", "left", "right", "bottom",
- * "width", and "height" values. The allowed values are:
- * <ul style="font-family: monospace;">
- * <li> auto </li>
- * <li> [specific length] - a length value (%, px, in, etc.) </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: AutoLengthSC.class.php,v 1.11 2007/09/04 20:25:22 adamfranco Exp $
- */
- class AutoLengthSC extends StyleComponent {
- /**
- * The constructor.
- * @param string value The value to assign to this SC.
- * @access public
- ***/
- function AutoLengthSC($value) {
- $options = array("auto");
- $errDescription = "Could not validate the AutoLength StyleComponent value \"%s\".
- Allowed values are: ".implode(", ", $options).", or a specific
- value (a length value, i.e. px, in, %, etc.).";
- $rule = CSSLengthValidatorRuleWithOptions::getRule($options);
- $displayName = "AutoLength";
- $description = "Specifies the values for CSS properties 'top', 'left', 'right',
- 'bottom', 'width', and 'height'. Allowed values are:
- ".implode(", ", $options).", or a specific value
- (a length value, i.e. px, in, %, etc.).";
- $this->StyleComponent($value, $rule, $options, false, $errDescription, $displayName, $description);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:21:42 -0400 by phpDocumentor 1.3.0RC3