TZID, $this->root); } /** * A simple list of validation rules. * * This is simply a list of properties, and how many times they either * must or must not appear. * * Possible values per property: * * 0 - Must not appear. * * 1 - Must appear exactly once. * * + - Must appear at least once. * * * - Can appear any number of times. * * ? - May appear, but not more than once. * * @var array */ function getValidationRules() { return array( 'TZID' => 1, 'LAST-MODIFIED' => '?', 'TZURL' => '?', // At least 1 STANDARD or DAYLIGHT must appear, or more. But both // cannot appear in the same VTIMEZONE. // // The validator is not specific yet to pick this up, so these // rules are too loose. 'STANDARD' => '*', 'DAYLIGHT' => '*', ); } }