1<?php
2// $Header: /cvsroot/html2ps/css.border.bottom.width.inc.php,v 1.2 2007/02/04 17:08:18 Konstantin Exp $
3
4class CSSBorderBottomWidth extends CSSSubProperty {
5  function CSSBorderBottomWidth(&$owner) {
6    $this->CSSSubProperty($owner);
7  }
8
9  function set_value(&$owner_value, &$value) {
10    if ($value != CSS_PROPERTY_INHERIT) {
11      $owner_value->bottom->width = $value->copy();
12    } else {
13      $owner_value->bottom->width = $value;
14    };
15  }
16
17  function get_value(&$owner_value) {
18    return $owner_value->bottom->width;
19  }
20
21  function get_property_code() {
22    return CSS_BORDER_BOTTOM_WIDTH;
23  }
24
25  function get_property_name() {
26    return 'border-bottom-width';
27  }
28
29  function parse($value) {
30    if ($value == 'inherit') {
31      return CSS_PROPERTY_INHERIT;
32    }
33
34    $width_handler = CSS::get_handler(CSS_BORDER_WIDTH);
35    $width = $width_handler->parse_value($value);
36    return $width;
37  }
38}
39
40?>