1 | <?php |
||
5 | class Visibility extends \ArrayObject |
||
6 | { |
||
7 | use EntityValueTrait; |
||
8 | |||
9 | /** |
||
10 | * @param array $array |
||
11 | */ |
||
12 | public function __construct(array $array = []) |
||
16 | |||
17 | /** |
||
18 | * @param array $pages Specify pages by using their paths. The '*' character |
||
19 | * is a wildcard. Example paths are |
||
20 | * http://mywebsite.com/user for the current user's page |
||
21 | * and http://mywebsite.com/user/* for every user page |
||
22 | * |
||
23 | * @return \Acquia\LiftClient\Entity\Visibility |
||
24 | */ |
||
25 | public function setPages(array $pages = []) |
||
31 | |||
32 | /** |
||
33 | * Gets the 'pages' parameter. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getPages() |
||
41 | |||
42 | /** |
||
43 | * @param string $condition Can be 'show' or 'hide'. Any other option will |
||
44 | * be ignored |
||
45 | * |
||
46 | * @return \Acquia\LiftClient\Entity\Visibility |
||
47 | */ |
||
48 | public function setCondition($condition) |
||
56 | |||
57 | /** |
||
58 | * Gets the 'condition' parameter. |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | public function getCondition() |
||
66 | |||
67 | /** |
||
68 | * @param string $key |
||
69 | * @param string $default |
||
70 | * |
||
71 | * @return mixed |
||
72 | */ |
||
73 | protected function getEntityValue($key, $default) |
||
77 | } |
||
78 |