-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCell.php
More file actions
45 lines (35 loc) · 898 Bytes
/
Copy pathCell.php
File metadata and controls
45 lines (35 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
declare(strict_types=1);
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/core/blob/master/LICENSE
*/
namespace Quid\Core;
use Quid\Orm;
use Quid\Routing;
// cell
// extended class to represent an existing cell within a row
class Cell extends Orm\Cell
{
// trait
use _accessAlias;
use Routing\_attrRoute;
// config
protected static array $config = [];
// hasImage
// retourne vrai si la colonne peut potentiellement fournir une image
public function hasImage():bool
{
return $this->col()->isMedia();
}
// isMediaOrLike
// retourne vrai si la colonne contient un media ou similaire à média
public function isMediaOrLike():bool
{
return $this->col()->isMedia();
}
}
// init
Cell::__init();
?>