1<?php
2
3class CSSWidows extends CSSPropertyHandler {
4  function CSSWidows() {
5    $this->CSSPropertyHandler(true, false);
6  }
7
8  function default_value() { return 2; }
9
10  function parse($value) {
11    return (int)$value;
12  }
13
14  function get_property_code() {
15    return CSS_WIDOWS;
16  }
17
18  function get_property_name() {
19    return 'widows';
20  }
21}
22
23CSS::register_css_property(new CSSWidows);
24
25?>