• 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

0.0
/models/PodioStatus.php
1
<?php
2
/**
3
 * @see https://developers.podio.com/doc/status
4
 */
5
class PodioStatus extends PodioObject
6
{
7
    public function __construct($attributes = array())
8
    {
9
        parent::__construct();
×
10
        $this->property('status_id', 'integer', array('id' => true));
×
11
        $this->property('value', 'string');
×
12
        $this->property('rich_value', 'string');
×
13
        $this->property('link', 'string');
×
14
        $this->property('ratings', 'hash');
×
15
        $this->property('subscribed', 'boolean');
×
16
        $this->property('user_ratings', 'hash');
×
17
        $this->property('created_on', 'datetime');
×
18

19
        $this->has_one('created_by', 'ByLine');
×
20
        $this->has_one('created_via', 'Via');
×
21
        $this->has_one('embed', 'Embed', array('json_value' => 'embed_id', 'json_target' => 'embed_id'));
×
22
        $this->has_one('embed_file', 'File', array('json_value' => 'file_id', 'json_target' => 'embed_file_id'));
×
23
        $this->has_many('comments', 'Comment');
×
24
        $this->has_many('conversations', 'Conversation');
×
25
        $this->has_many('tasks', 'Task');
×
26
        $this->has_many('shares', 'AppMarketShare');
×
27
        $this->has_many('files', 'File', array('json_value' => 'file_id', 'json_target' => 'file_ids'));
×
28
        $this->has_many('questions', 'Question');
×
29

30
        $this->init($attributes);
×
31
    }
32

33
    /**
34
     * @see https://developers.podio.com/doc/status/add-new-status-message-22336
35
     */
36
    public static function create(PodioClient $podio_client, $space_id, $attributes = array())
37
    {
38
        return self::member($podio_client, $podio_client->post("/status/space/{$space_id}/", $attributes));
×
39
    }
40

41
    /**
42
     * @see https://developers.podio.com/doc/status/get-status-message-22337
43
     */
44
    public static function get(PodioClient $podio_client, $status_id)
45
    {
46
        return self::member($podio_client, $podio_client->get("/status/{$status_id}"));
×
47
    }
48

49
    /**
50
     * @see https://developers.podio.com/doc/status/delete-a-status-message-22339
51
     */
52
    public static function delete(PodioClient $podio_client, $status_id)
53
    {
54
        return $podio_client->delete("/status/{$status_id}");
×
55
    }
56
}
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