-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.txt
105 lines (79 loc) · 4.77 KB
/
test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php echo "Lalalala" ?>
/// <container name="@FrontPage">
/// Welcome to the online documentation for Sitemagic Framework and CMS.
///
/// Please select a class or an example section in the menu on your left.
/// For more information about Sitemagic CMS, please refer to our website.
///
/// http://sitemagic.org
/// </container>
# New way to describe types, introduced september 2020.
# We can not add members and functions within containers.
# This construct allow members and functions to be defined
# without the container attribute, as this information can
# now be determined by the parent relation.
# This is useful to describe types without having actual code.
/// <container name="Animal">
/// <description> Represents an animal </description>
/// <member name="Name" type="string" access="public"> Property - Animal name </member>
/// <member name="Gender" type="string" access="public"> Property - Animal gender </member>
/// <member name="_name" type="string" access="private"> Internal variable - Animal name </member>
/// <member name="_gender" type="string" access="private"> Internal variable - Animal gender </member>
/// <function name="GetNumberOfLegs" access="public" returns="integer">
/// <description> Get number of legs </description>
/// </function>
/// <function name="WalkWround" access="public">
/// <description> Make animal walk around </description>
/// <param name="walkingMode" type='"Casually"|"Aggressively"|"Sleepy"'> The way to walk around </param>
/// </function>
/// <function name="_walkWroundCasually" access="private">
/// <description> Make animal walk around casually </description>
/// </function>
/// </container>
/// <container name="Person"> Represents person in our object model </container>
/// <member container="Person" name="_name" type="string" access="private"> Internal variable - Person's name </member>
/// <member container="Person" name="_age" type="integer" access="private"> Internal variable - Person's age </member>
/// <member container="Person" name="_gender" type="string" access="private"> Internal variable - Person's gender </member>
/// <member container="Person" name="Name" type="string" access="public"> Property - Person's name </member>
/// <member container="Person" name="Age" type="integer" access="public"> Property - Person's age </member>
/// <member container="Person" name="Gender" type="string" access="public"> Property - Person's gender </member>
/// <function container="Person" name="GetPerson" access="public" static="true" returntype="Person">
/// <description> Fetch person by name </description>
/// <param name="Name" type="string"> Enter name of person </param>
/// </function>
/// <function container="Person" name="IncrementAge" access="public">
/// <description> Increment person's age by one </description>
/// </function>
/// <container name="Car" />
/// <member container="Car" name="Brand" type="string" access="public"> Brand (e.g. Ford or Hyundai) </member>
/// <member container="Car" name="MaxSpeed" type="integer" access="public"> Maximum speed (km/h) </member>
/// <member container="Car" name="Color" type="string" access="public"> Car's color </member>
/// <function container="Car" name="__construct" access="public">
/// <description> Construct a new car </description>
/// <param default="null" name="brand" type="string"> See description for member Brand </param>
/// <param name="maxSpeed" type="string"> See description for member MaxSpeed </param>
/// <param name="color" type="string" default="red"> See description for member Color </param>
/// </function>
/// <function container="Car" name="StartEngine" access="public" returntype="boolean">
/// <description> Starts engine - engine sound is on. Returns True on success, otherwise False. </description>
/// </function>
/// <function container="Car" name="StopEngine" access="public" returntype="boolean">
/// <description> Stops engine - engine sound is off. Returns True on success, otherwise False. </description>
/// </function>
/// <function container="Car" name="Drive" access="public" returntype="boolean">
/// <description> Drive car. Returns True on success, otherwise False. </description>
/// <param name="direction" type="Direction"> Specify direction </param>
/// <param name="speed" type="string"> Specify car's speed (km/h) </param>
/// <param name="duration" type="integer"> Specify number of seconds to drive </param>
/// </function>
/// <container name="Direction"> Enum </container>
/// <member container="Direction" name="Left" />
/// <member container="Direction" name="Right" />
/// <member container="Direction" name="Up" />
/// <member container="Direction" name="Down" />
/// <function name="DumpMemoryUsage">
/// <description>
/// Dump memory usage to screen
/// - "nice"
/// </description>
/// </function>