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