Browse Source
- Preliminary work on enclosures - Feed and entry language - Better API docs - Class constant visibilitymaster
J. King
4 years ago
17 changed files with 328 additions and 66 deletions
@ -0,0 +1,22 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Enclosure; |
|||
|
|||
class Collection extends \JKingWeb\Lax\Collection { |
|||
|
|||
/** Returns the primary ("best") enclosure of the collection |
|||
* |
|||
* Videos are preferred over audios, which are preferred over images, which are preferred over anything else |
|||
* |
|||
* Videos are first ranked by length, then resolution (total pixels), then bitrate, then size; audios are ranked by length, then bitrate, then size; images are ranked by resolution (total pixels), then size |
|||
* |
|||
*/ |
|||
public function primary(): ?Enclosure { |
|||
# stub |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2018 J. King et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace JKingWeb\Lax\Enclosure; |
|||
|
|||
class Enclosure { |
|||
public $url; |
|||
public $type; |
|||
public $title; |
|||
public $height; |
|||
public $width; |
|||
public $duration; |
|||
public $bitrate; |
|||
public $size; |
|||
public $preferred; |
|||
} |
Loading…
Reference in new issue