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

podio-community / podio-php / 5637886045

pending completion
5637886045

Pull #233

github

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

231 of 231 new or added lines in 64 files covered. (100.0%)

916 of 2104 relevant lines covered (43.54%)

24.12 hits per line

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

0.0
/models/PodioForm.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/forms
4
 */
5
class PodioForm extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('form_id', 'integer', array('id' => true));
×
11
        $this->property('app_id', 'integer');
×
12
        $this->property('space_id', 'integer');
×
13
        $this->property('status', 'string');
×
14
        $this->property('settings', 'hash');
×
15
        $this->property('domains', 'array');
×
16
        $this->property('fields', 'array');
×
17
        $this->property('attachments', 'boolean');
×
18

19
        $this->init($attributes);
×
20
    }
21

22
    /**
23
     * @see https://developers.podio.com/doc/forms/activate-form-1107439
24
     */
25
    public static function activate(PodioClient $podio_client, $form_id)
26
    {
27
        return $podio_client->post("/form/{$form_id}/activate");
×
28
    }
29

30
    /**
31
     * @see https://developers.podio.com/doc/forms/deactivate-form-1107378
32
     */
33
    public static function deactivate(PodioClient $podio_client, $form_id)
34
    {
35
        return $podio_client->post("/form/{$form_id}/deactivate");
×
36
    }
37

38
    /**
39
     * @see https://developers.podio.com/doc/forms/create-form-53803
40
     */
41
    public static function create(PodioClient $podio_client, $app_id, $attributes = array())
42
    {
43
        return self::member($podio_client, $podio_client->post("/form/app/{$app_id}/", $attributes));
×
44
    }
45

46
    /**
47
     * @see https://developers.podio.com/doc/forms/delete-from-53810
48
     */
49
    public static function delete(PodioClient $podio_client, $form_id)
50
    {
51
        return $podio_client->delete("/form/{$form_id}");
×
52
    }
53

54
    /**
55
     * @see https://developers.podio.com/doc/forms/get-form-53754
56
     */
57
    public static function get(PodioClient $podio_client, $form_id)
58
    {
59
        return self::member($podio_client, $podio_client->get("/form/{$form_id}"));
×
60
    }
61

62
    /**
63
     * @see https://developers.podio.com/doc/forms/get-forms-53771
64
     */
65
    public static function get_for_app(PodioClient $podio_client, $app_id)
66
    {
67
        return self::listing($podio_client, $podio_client->get("/form/app/{$app_id}/"));
×
68
    }
69

70
    /**
71
     * @see https://developers.podio.com/doc/forms/update-form-53808
72
     */
73
    public static function update(PodioClient $podio_client, $form_id, $attributes = array())
74
    {
75
        return $podio_client->put("/form/{$form_id}", $attributes);
×
76
    }
77
}
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