• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

podio-community / podio-php / 5919248423

20 Aug 2023 07:35PM UTC coverage: 54.871% (+1.4%) from 53.497%
5919248423

Pull #242

github

daniel-sc
fix linter II
Pull Request #242: More fixes

181 of 181 new or added lines in 43 files covered. (100.0%)

1149 of 2094 relevant lines covered (54.87%)

34.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/models/PodioCalendarEvent.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/calendar
4
 */
5
class PodioCalendarEvent extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('id', 'integer');
×
11
        $this->property('type', 'string');
×
12
        $this->property('group', 'string');
×
13
        $this->property('title', 'string');
×
14
        $this->property('description', 'string');
×
15
        $this->property('location', 'string');
×
16
        $this->property('status', 'string');
×
17
        $this->property('link', 'string');
×
18
        $this->property('start', 'datetime');
×
19
        $this->property('end', 'datetime');
×
20

21
        $this->init($attributes);
×
22
    }
23

24
    /**
25
     * @see https://developers.podio.com/doc/actions/get-action-1701120
26
     */
27
    public static function get(PodioClient $podio_client, $attributes = array())
28
    {
29
        return self::listing($podio_client->get("/calendar/", $attributes));
×
30
    }
31

32
    /**
33
     * @see https://developers.podio.com/doc/calendar/get-space-calendar-22459
34
     */
35
    public static function get_for_space(PodioClient $podio_client, $space_id, $attributes = array())
36
    {
37
        return self::listing($podio_client->get("/calendar/space/{$space_id}/", $attributes));
×
38
    }
39

40
    /**
41
     * @see https://developers.podio.com/doc/calendar/get-app-calendar-22460
42
     */
43
    public static function get_for_app(PodioClient $podio_client, $app_id, $attributes = array())
44
    {
45
        return self::listing($podio_client->get("/calendar/app/{$app_id}/", $attributes));
×
46
    }
47

48
    /**
49
     * @see https://developers.podio.com/doc/calendar/get-global-calendar-as-ical-22513
50
     */
51
    public static function ical(PodioClient $podio_client, $user_id, $token)
52
    {
53
        return $podio_client->get("/calendar/ics/{$user_id}/{$token}/")->body;
×
54
    }
55

56
    /**
57
     * @see https://developers.podio.com/doc/calendar/get-space-calendar-as-ical-22514
58
     */
59
    public static function ical_for_space(PodioClient $podio_client, $space_id, $user_id, $token)
60
    {
61
        return $podio_client->get("/calendar/space/{$space_id}/ics/{$user_id}/{$token}/")->body;
×
62
    }
63

64
    /**
65
     * @see https://developers.podio.com/doc/calendar/get-app-calendar-as-ical-22515
66
     */
67
    public static function ical_for_app(PodioClient $podio_client, $app_id, $user_id, $token)
68
    {
69
        return $podio_client->get("/calendar/app/{$app_id}/ics/{$user_id}/{$token}/")->body;
×
70
    }
71

72
    /**
73
     * @see https://developers.podio.com/doc/calendar/get-calendar-summary-1609256
74
     */
75
    public static function get_summary(PodioClient $podio_client, $attributes = array())
76
    {
77
        $result = $podio_client->get("/calendar/summary", $attributes)->json_body();
×
78
        $result['today']['events'] = self::listing($result['today']['events']);
×
79
        $result['upcoming']['events'] = self::listing($result['upcoming']['events']);
×
80
        return $result;
×
81
    }
82

83
    /**
84
     * @see https://developers.podio.com/doc/calendar/get-calendar-summary-for-personal-1657903
85
     */
86
    public static function get_summary_personal(PodioClient $podio_client, $attributes = array())
87
    {
88
        $result = $podio_client->get("/calendar/personal/summary", $attributes)->json_body();
×
89
        $result['today']['events'] = self::listing($result['today']['events']);
×
90
        $result['upcoming']['events'] = self::listing($result['upcoming']['events']);
×
91
        return $result;
×
92
    }
93

94
    /**
95
     * @see https://developers.podio.com/doc/calendar/get-calendar-summary-for-space-1609328
96
     */
97
    public static function get_summary_for_space(PodioClient $podio_client, $space_id, $attributes = array())
98
    {
99
        $result = $podio_client->get("/calendar/space/{$space_id}/summary", $attributes)->json_body();
×
100
        $result['today']['events'] = self::listing($result['today']['events']);
×
101
        $result['upcoming']['events'] = self::listing($result['upcoming']['events']);
×
102
        return $result;
×
103
    }
104
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc