PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/Document/src/document/wiki/nodes/link.php

https://github.com/Yannix/zetacomponents
PHP | 75 lines | 18 code | 5 blank | 52 comment | 0 complexity | 3fc80eb1339debd77f8a0ecaa41dd04e MD5 | raw file
  1. <?php
  2. /**
  3. * File containing the ezcDocumentWikiLinkNode struct
  4. *
  5. * Licensed to the Apache Software Foundation (ASF) under one
  6. * or more contributor license agreements. See the NOTICE file
  7. * distributed with this work for additional information
  8. * regarding copyright ownership. The ASF licenses this file
  9. * to you under the Apache License, Version 2.0 (the
  10. * "License"); you may not use this file except in compliance
  11. * with the License. You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing,
  16. * software distributed under the License is distributed on an
  17. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18. * KIND, either express or implied. See the License for the
  19. * specific language governing permissions and limitations
  20. * under the License.
  21. *
  22. * @package Document
  23. * @version //autogen//
  24. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25. */
  26. /**
  27. * Struct for Wiki document inline link syntax tree nodes
  28. *
  29. * @package Document
  30. * @version //autogen//
  31. */
  32. class ezcDocumentWikiLinkNode extends ezcDocumentWikiInlineNode
  33. {
  34. /**
  35. * Link nodes
  36. *
  37. * @var array
  38. */
  39. public $link = array();
  40. /**
  41. * Link title nodes
  42. *
  43. * @var array
  44. */
  45. public $title = array();
  46. /**
  47. * Link description
  48. *
  49. * @var array
  50. */
  51. public $description = array();
  52. /**
  53. * Set state after var_export
  54. *
  55. * @param array $properties
  56. * @return void
  57. * @ignore
  58. */
  59. public static function __set_state( $properties )
  60. {
  61. $nodeClass = __CLASS__;
  62. $node = new $nodeClass( $properties['token'] );
  63. $node->nodes = $properties['nodes'];
  64. $node->link = $properties['link'];
  65. $node->title = $properties['title'];
  66. $node->description = $properties['description'];
  67. return $node;
  68. }
  69. }
  70. ?>