当前位置: 首页>>代码示例>>PHP>>正文


PHP Horde_Icalendar::getAllAttributes方法代码示例

本文整理汇总了PHP中Horde_Icalendar::getAllAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Horde_Icalendar::getAllAttributes方法的具体用法?PHP Horde_Icalendar::getAllAttributes怎么用?PHP Horde_Icalendar::getAllAttributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Horde_Icalendar的用法示例。


在下文中一共展示了Horde_Icalendar::getAllAttributes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testVcalendar20

    public function testVcalendar20()
    {
        $ical = new Horde_Icalendar();
        $ical->parsevCalendar(file_get_contents(__DIR__ . '/fixtures/vcal20.ics'));
        $this->assertEquals(array(0 => array('name' => 'PRODID', 'params' => array(), 'value' => '-//Google Inc//Google Calendar 70.9054//EN', 'values' => array(0 => '-//Google Inc//Google Calendar 70.9054//EN')), 1 => array('name' => 'VERSION', 'params' => array(), 'value' => '2.0', 'values' => array(0 => '2.0')), 2 => array('name' => 'CALSCALE', 'params' => array(), 'value' => 'GREGORIAN', 'values' => array(0 => 'GREGORIAN')), 3 => array('name' => 'METHOD', 'params' => array(), 'value' => 'PUBLISH', 'values' => array(0 => 'PUBLISH')), 4 => array('name' => 'X-WR-CALNAME', 'params' => array(), 'value' => 'PEAR - PHP Extension and Application Repository', 'values' => array(0 => 'PEAR - PHP Extension and Application Repository')), 5 => array('name' => 'X-WR-TIMEZONE', 'params' => array(), 'value' => 'Atlantic/Reykjavik', 'values' => array(0 => 'Atlantic/Reykjavik')), 6 => array('name' => 'X-WR-CALDESC', 'params' => array(), 'value' => 'pear.php.net activity calendar, bug triage, group meetings, qa, conferences or similar', 'values' => array(0 => 'pear.php.net activity calendar, bug triage, group meetings, qa, conferences or similar'))), $ical->getAllAttributes());
        $this->assertEquals(array(0 => array('name' => 'DTSTART', 'params' => array(), 'value' => 1224950400, 'values' => array(0 => 1224950400)), 1 => array('name' => 'DTEND', 'params' => array(), 'value' => 1224968400, 'values' => array(0 => 1224968400)), 2 => array('name' => 'DTSTAMP', 'params' => array(), 'value' => 1219138073, 'values' => array(0 => 1219138073)), 3 => array('name' => 'UID', 'params' => array(), 'value' => 'ntnrt4go4482q2trk18bt62c0o@google.com', 'values' => array(0 => 'ntnrt4go4482q2trk18bt62c0o@google.com')), 4 => array('name' => 'RECURRENCE-ID', 'params' => array(), 'value' => 1224950400, 'values' => array(0 => 1224950400)), 5 => array('name' => 'CLASS', 'params' => array(), 'value' => 'PUBLIC', 'values' => array(0 => 'PUBLIC')), 6 => array('name' => 'CREATED', 'params' => array(), 'value' => 1204763165, 'values' => array(0 => 1204763165)), 7 => array('name' => 'DESCRIPTION', 'params' => array(), 'value' => 'Bug Triage session

Not been invited ? Want to attend ? Let us know and we\'ll add you!', 'values' => array(0 => 'Bug Triage session

Not been invited ? Want to attend ? Let us know and we\'ll add you!')), 8 => array('name' => 'LAST-MODIFIED', 'params' => array(), 'value' => 1216413606, 'values' => array(0 => 1216413606)), 9 => array('name' => 'LOCATION', 'params' => array(), 'value' => '#pear-bugs Efnet', 'values' => array(0 => '#pear-bugs Efnet')), 10 => array('name' => 'SEQUENCE', 'params' => array(), 'value' => 2, 'values' => array(0 => 2)), 11 => array('name' => 'STATUS', 'params' => array(), 'value' => 'CONFIRMED', 'values' => array(0 => 'CONFIRMED')), 12 => array('name' => 'SUMMARY', 'params' => array(), 'value' => 'Bug Triage', 'values' => array(0 => 'Bug Triage')), 13 => array('name' => 'TRANSP', 'params' => array(), 'value' => 'OPAQUE', 'values' => array(0 => 'OPAQUE')), 14 => array('name' => 'CATEGORIES', 'params' => array(), 'value' => 'foo,bar,fuz buz,blah, blah', 'values' => array(0 => 'foo', 1 => 'bar', 2 => 'fuz buz', 3 => 'blah, blah'))), $ical->getComponent(0)->getAllAttributes());
    }
开发者ID:kossamums,项目名称:horde,代码行数:11,代码来源:ParseTest.php


注:本文中的Horde_Icalendar::getAllAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。