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

podio-community / podio-php / 5625598883

pending completion
5625598883

Pull #233

github

web-flow
Merge 617660f6f into b5bb41606
Pull Request #233: fix: make podio_client first parameter of functions

145 of 145 new or added lines in 40 files covered. (100.0%)

917 of 2108 relevant lines covered (43.5%)

24.11 hits per line

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

0.0
/models/PodioUser.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/users
4
 */
5
class PodioUser extends PodioObject
6
{
7
    public function __construct(PodioClient $podio_client, $attributes = array())
8
    {
9
        parent::__construct($podio_client);
×
10
        $this->property('user_id', 'integer', array('id' => true));
×
11
        $this->property('profile_id', 'integer');
×
12
        $this->property('name', 'string');
×
13
        $this->property('link', 'string');
×
14
        $this->property('avatar', 'integer');
×
15
        $this->property('mail', 'string');
×
16
        $this->property('status', 'string');
×
17
        $this->property('locale', 'string');
×
18
        $this->property('timezone', 'string');
×
19
        $this->property('flags', 'array');
×
20
        $this->property('type', 'string');
×
21
        $this->property('created_on', 'datetime');
×
22

23
        $this->has_one('profile', 'Contact');
×
24
        $this->has_many('mails', 'UserMail');
×
25

26
        $this->init($attributes);
×
27
    }
28

29
    /**
30
     * @see https://developers.podio.com/doc/users/get-user-22378
31
     */
32
    public static function get(PodioClient $podio_client)
33
    {
34
        return self::member($podio_client, $podio_client->get("/user"));
×
35
    }
36

37
    /**
38
     * @see https://developers.podio.com/doc/users/get-user-property-29798
39
     */
40
    public static function get_property(PodioClient $podio_client, $name)
41
    {
42
        return $podio_client->get("/user/property/{$name}")->json_body();
×
43
    }
44

45
    /**
46
     * @see https://developers.podio.com/doc/users/set-user-property-29799
47
     */
48
    public static function set_property(PodioClient $podio_client, $name, $value)
49
    {
50
        return $podio_client->put("/user/property/{$name}", $value);
×
51
    }
52

53
    /**
54
     * @see https://developers.podio.com/doc/users/set-user-properties-9052829
55
     */
56
    public static function set_properties(PodioClient $podio_client, $attributes)
57
    {
58
        return $podio_client->put("/user/property/", $attributes);
×
59
    }
60

61
    /**
62
     * @see https://developers.podio.com/doc/users/delete-user-property-29800
63
     */
64
    public static function delete_property(PodioClient $podio_client, $name)
65
    {
66
        return $podio_client->delete("/user/property/{$name}");
×
67
    }
68

69
    /**
70
     * @see https://developers.podio.com/doc/users/update-profile-22402
71
     */
72
    public static function update_profile(PodioClient $podio_client, $attributes)
73
    {
74
        return $podio_client->put("/user/profile/", $attributes);
×
75
    }
76

77
    /**
78
     * @see https://developers.podio.com/doc/users/get-profile-field-22380
79
     */
80
    public static function get_profile_field(PodioClient $podio_client, $field)
81
    {
82
        return $podio_client->get("/user/profile/{$field}")->json_body();
×
83
    }
84
}
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