| 1 | <?php |
||
| 5 | class Visibility extends \ArrayObject |
||
| 6 | { |
||
| 7 | use EntityValueTrait; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param array $array |
||
| 11 | */ |
||
| 12 | 12 | public function __construct(array $array = []) |
|
| 16 | |||
| 17 | /** |
||
| 18 | * @param array $pages |
||
| 19 | * Specify pages by using their paths. The '*' character is a wildcard. |
||
| 20 | * Example paths are 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 | 12 | 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 |
||
| 44 | * Sets the condition of this visibility object. Can be 'show' or 'hide'. |
||
| 45 | * Any other option will be ignored. |
||
| 46 | * |
||
| 47 | * @return \Acquia\LiftClient\Entity\Visibility |
||
| 48 | */ |
||
| 49 | 12 | public function setCondition($condition) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * Gets the 'condition' parameter. |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function getCondition() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * |
||
| 70 | * @param string $key |
||
| 71 | * @param string $default |
||
| 72 | * |
||
| 73 | * @return mixed |
||
| 74 | */ |
||
| 75 | protected function getEntityValue($key, $default) |
||
| 79 | } |
||
| 80 |