Base.php
4 months ago
Field.php
4 months ago
Group.php
4 months ago
Playbook.php
4 months ago
Pod.php
4 months ago
Tools.php
4 months ago
Pod.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Pods\CLI\Commands; |
| 4 | |
| 5 | // Don't load directly. |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | die( '-1' ); |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Class Pod |
| 12 | * |
| 13 | * @since 2.8.0 |
| 14 | */ |
| 15 | class Pod extends Base { |
| 16 | |
| 17 | /** |
| 18 | * @var string |
| 19 | */ |
| 20 | protected $command = 'pod'; |
| 21 | |
| 22 | /** |
| 23 | * Setup endpoint object. |
| 24 | * |
| 25 | * @since 2.8.0 |
| 26 | */ |
| 27 | public function __construct() { |
| 28 | $this->endpoint_archive = pods_container( 'pods.rest-v1.endpoints.pods' ); |
| 29 | $this->endpoint_single = pods_container( 'pods.rest-v1.endpoints.pod' ); |
| 30 | $this->endpoint_single_slug = pods_container( 'pods.rest-v1.endpoints.pod-slug' ); |
| 31 | } |
| 32 | } |
| 33 |