| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Models; |
| 4 |
|
| 5 |
use Yoast\WP\Lib\Model; |
| 6 |
|
| 7 |
/** |
| 8 |
* Table definition for the SEO Links table. |
| 9 |
* |
| 10 |
* @property int $id |
| 11 |
* @property string $url |
| 12 |
* @property int $post_id |
| 13 |
* @property int $target_post_id |
| 14 |
* @property string $type |
| 15 |
* @property int $indexable_id |
| 16 |
* @property int $target_indexable_id |
| 17 |
* @property int $height |
| 18 |
* @property int $width |
| 19 |
* @property int $size |
| 20 |
* @property string $language |
| 21 |
* @property string $region |
| 22 |
*/ |
| 23 |
class SEO_Links extends Model { |
| 24 |
|
| 25 |
/** |
| 26 |
* Indicates that the link is external. |
| 27 |
* |
| 28 |
* @var string |
| 29 |
*/ |
| 30 |
public const TYPE_INTERNAL = 'internal'; |
| 31 |
|
| 32 |
/** |
| 33 |
* Indicates that the link is internal. |
| 34 |
* |
| 35 |
* @var string |
| 36 |
*/ |
| 37 |
public const TYPE_EXTERNAL = 'external'; |
| 38 |
|
| 39 |
/** |
| 40 |
* Indicates the link is an internal image. |
| 41 |
* |
| 42 |
* @var string |
| 43 |
*/ |
| 44 |
public const TYPE_INTERNAL_IMAGE = 'image-in'; |
| 45 |
|
| 46 |
/** |
| 47 |
* Indicates the link is an external image. |
| 48 |
* |
| 49 |
* @var string |
| 50 |
*/ |
| 51 |
public const TYPE_EXTERNAL_IMAGE = 'image-ex'; |
| 52 |
|
| 53 |
/** |
| 54 |
* Holds the parsed URL. May not be set. |
| 55 |
* |
| 56 |
* @var array |
| 57 |
*/ |
| 58 |
public $parsed_url; |
| 59 |
|
| 60 |
/** |
| 61 |
* Which columns contain int values. |
| 62 |
* |
| 63 |
* @var array |
| 64 |
*/ |
| 65 |
protected $int_columns = [ |
| 66 |
'id', |
| 67 |
'post_id', |
| 68 |
'target_post_id', |
| 69 |
'indexable_id', |
| 70 |
'target_indexable_id', |
| 71 |
'height', |
| 72 |
'width', |
| 73 |
'size', |
| 74 |
]; |
| 75 |
} |
| 76 |
|