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

podio-community / podio-php / 5730982429

pending completion
5730982429

push

github

web-flow
Merge pull request #233 from podio-community/232-improvements-beta

fix: make podio_client first parameter of functions + remove podio_client member from models

235 of 235 new or added lines in 67 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

32.17 hits per line

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

57.14
/models/PodioAppField.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/applications
4
 */
5
class PodioAppField extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
64✔
10
        $this->property('field_id', 'integer', array('id' => true));
64✔
11
        $this->property('type', 'string');
64✔
12
        $this->property('external_id', 'string');
64✔
13
        $this->property('config', 'hash');
64✔
14
        $this->property('status', 'string');
64✔
15
        $this->property('label', 'string');
64✔
16

17
        $this->init($attributes);
64✔
18
    }
19

20
    /**
21
     * @see https://developers.podio.com/doc/applications/add-new-app-field-22354
22
     */
23
    public static function create(PodioClient $podio_client, $app_id, $attributes = array())
24
    {
25
        $body = $podio_client->post("/app/{$app_id}/field/", $attributes)->json_body();
×
26
        return $body['field_id'];
×
27
    }
28

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

37
    /**
38
     * @see https://developers.podio.com/doc/applications/update-an-app-field-22356
39
     */
40
    public static function update(PodioClient $podio_client, $app_id, $field_id, $attributes = array())
41
    {
42
        return $podio_client->put("/app/{$app_id}/field/{$field_id}", $attributes);
×
43
    }
44

45
    /**
46
     * @see https://developers.podio.com/doc/applications/delete-app-field-22355
47
     */
48
    public static function delete(PodioClient $podio_client, $app_id, $field_id, $attributes = array())
49
    {
50
        $body = $podio_client->delete("/app/{$app_id}/field/{$field_id}", $attributes)->json_body();
×
51
        return $body['revision'];
×
52
    }
53
}
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