1 | <?php |
||
8 | class Visibility extends Entity |
||
9 | { |
||
10 | /** |
||
11 | * @param array $array |
||
12 | */ |
||
13 | 30 | public function __construct(array $array = []) |
|
17 | |||
18 | /** |
||
19 | * @param array $pages Specify pages by using their paths. The '*' character |
||
20 | * is a wildcard. Example paths are |
||
21 | * http://mywebsite.com/user for the current user's page |
||
22 | * and http://mywebsite.com/user/* for every user page |
||
23 | * |
||
24 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
25 | * |
||
26 | * @return \Acquia\LiftClient\Entity\Visibility |
||
27 | */ |
||
28 | 15 | public function setPages(array $pages = []) |
|
38 | |||
39 | /** |
||
40 | * Gets the 'pages' parameter. |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | 15 | public function getPages() |
|
48 | |||
49 | /** |
||
50 | * @param string $condition Can be 'show' or 'hide'. Any other option will |
||
51 | * be ignored |
||
52 | * |
||
53 | * @throws \Acquia\LiftClient\Exception\LiftSdkException |
||
54 | * |
||
55 | * @return \Acquia\LiftClient\Entity\Visibility |
||
56 | */ |
||
57 | 18 | public function setCondition($condition) |
|
70 | |||
71 | /** |
||
72 | * Gets the 'condition' parameter. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | 15 | public function getCondition() |
|
80 | } |
||
81 |