Documentation is available at UrlSC.class.php
- <?php
- require_once(HARMONI."GUIManager/StyleComponent.class.php");
- /**
- * The UrlSC represents CSS "url" values. The URL format is:
- * <ul style="font-family: monospace;">
- * <li> url(URL) - where URL is an absolute or relative link (optionally quoted
- * with single or double quotes).</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: UrlSC.class.php,v 1.9 2007/09/04 20:25:23 adamfranco Exp $
- */
- class UrlSC extends StyleComponent {
- /**
- * The constructor.
- * @param string value The value to assign to this SC.
- * @access public
- ***/
- function UrlSC($value) {
- $errDescription = "Could not validate the url StyleComponent value \"%s\".
- Allowed values are: url(URL), where URL is an absolute or relative link
- (optionally quoted with single or double quotes).";
- $rule = RegexValidatorRule::getRule("^url\(.+\)$");
- $displayName = "URL";
- $description = "Specifies a url linking to a resource (an image, an audio file, etc).
- Allowed values are: url(URL), where URL is an absolute or relative link
- (optionally quoted with single or double quotes).";
- $this->StyleComponent($value, $rule, null, null, $errDescription, $displayName, $description);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:27:37 -0400 by phpDocumentor 1.3.0RC3