This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from baleen/docs-reference
sphpdox
- Loading branch information
Showing
86 changed files
with
3,028 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ EXECPATH=`dirname $0` | |
cd $EXECPATH | ||
cd .. | ||
|
||
rm build -Rf | ||
#rm -rf build | ||
sphinx-build -b html en build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
EXECPATH=`dirname $0` | ||
cd $EXECPATH | ||
cd .. | ||
|
||
rm -rf en/ref/Baleen | ||
mkdir -p en/ref/Baleen | ||
../vendor/bin/sphpdox process -o en/ref Baleen\\Migrations ../lib | ||
find en/ref -name "*.rst" -exec bash -c 'mv "$1" "$(sed "s/\.rst$/.txt/" <<< "$1")"' - '{}' \; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Domain Model | ||
============ | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 2 | ||
|
||
domain-model/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docs/en/ref/Baleen/Migrations/Event/CanDispatchEventsTrait.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
------------------------------------------------- | ||
Baleen\\Migrations\\Event\\CanDispatchEventsTrait | ||
------------------------------------------------- | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event | ||
|
||
.. php:trait:: CanDispatchEventsTrait | ||
|
||
Allows classes to OPTIONALLY receive an EventDispatcher to dispatch events. Making it optional puts responsibility | ||
on the implementation: if the EventDispatcher is not available then no events are dispatched. | ||
|
||
.. php:attr:: eventDispatcher | ||
|
||
protected null|EventDispatcherInterface | ||
|
||
.. php:method:: getEventDispatcher() | ||
|
||
:returns: null|EventDispatcherInterface | ||
|
||
.. php:method:: setEventDispatcher(EventDispatcherInterface $eventDispatcher) | ||
|
||
:type $eventDispatcher: EventDispatcherInterface | ||
:param $eventDispatcher: | ||
|
||
.. php:method:: dispatchEvent($name, Event $event) | ||
|
||
Dispatches an event if an EventDispatcher is available. | ||
|
||
:param $name: | ||
:type $event: Event | ||
:param $event: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
------------------------------------------- | ||
Baleen\\Migrations\\Event\\EmitterInterface | ||
------------------------------------------- | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event | ||
|
||
.. php:interface:: EmitterInterface | ||
|
||
Interface EmitterInterface. | ||
|
||
.. php:method:: setEventDispatcher(EventDispatcherInterface $eventDispatcher) | ||
|
||
:type $eventDispatcher: EventDispatcherInterface | ||
:param $eventDispatcher: | ||
|
||
.. php:method:: getEventDispatcher() | ||
|
||
:returns: EventDispatcherInterface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
----------------------------------------- | ||
Baleen\\Migrations\\Event\\EventInterface | ||
----------------------------------------- | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event | ||
|
||
.. php:interface:: EventInterface | ||
|
||
Interface MigrationsEvent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
------------------------------------------ | ||
Baleen\\Migrations\\Event\\HasEmitterTrait | ||
------------------------------------------ | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event | ||
|
||
.. php:trait:: HasEmitterTrait | ||
|
||
Trait to be used by classes that fire events through a specialised emitter. For example, the Timeline | ||
class will use this trait to fire events using the TimelineEmitter. | ||
|
||
.. php:attr:: emitter | ||
|
||
protected EmitterInterface | ||
|
||
.. php:method:: setEventDispatcher(EventDispatcherInterface $eventDispatcher) | ||
|
||
Set the EventDispatcher for the emitter. This is public to allow attaching | ||
a previously existing EventDispatcher. | ||
|
||
:type $eventDispatcher: EventDispatcherInterface | ||
:param $eventDispatcher: | ||
|
||
.. php:method:: getEmitter() | ||
|
||
Returns the emitter for the class. Creates one if necessary. | ||
|
||
:returns: EmitterInterface | ||
|
||
.. php:method:: setEmitter(EmitterInterface $emitter) | ||
|
||
Sets the emitter for the class. | ||
|
||
:type $emitter: EmitterInterface | ||
:param $emitter: | ||
|
||
.. php:method:: createEmitter() | ||
|
||
Must create and return a default emitter. | ||
|
||
:returns: EmitterInterface | ||
|
||
.. php:method:: getEventDispatcher() | ||
|
||
Get the event dispatcher from the emitter. | ||
|
||
:returns: EventDispatcherInterface |
54 changes: 54 additions & 0 deletions
54
docs/en/ref/Baleen/Migrations/Event/Timeline/CollectionEvent.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
---------------------------------------------------- | ||
Baleen\\Migrations\\Event\\Timeline\\CollectionEvent | ||
---------------------------------------------------- | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event\\Timeline | ||
|
||
.. php:class:: CollectionEvent | ||
|
||
Class CollectionEvent. | ||
|
||
.. php:attr:: collection | ||
|
||
protected LinkedVersions | ||
|
||
.. php:attr:: options | ||
|
||
protected Options | ||
|
||
.. php:attr:: target | ||
|
||
protected Version | ||
|
||
.. php:attr:: progress | ||
|
||
protected Progress | ||
|
||
.. php:method:: __construct(Version $target, Options $options, LinkedVersions $versions, Progress $progress = null) | ||
|
||
CollectionEvent constructor. | ||
|
||
:type $target: Version | ||
:param $target: | ||
:type $options: Options | ||
:param $options: | ||
:type $versions: LinkedVersions | ||
:param $versions: | ||
:type $progress: Progress | ||
:param $progress: | ||
|
||
.. php:method:: getOptions() | ||
|
||
:returns: Options | ||
|
||
.. php:method:: getCollection() | ||
|
||
:returns: LinkedVersions | ||
|
||
.. php:method:: getTarget() | ||
|
||
:returns: Version | ||
|
||
.. php:method:: getProgress() | ||
|
||
:returns: Progress |
44 changes: 44 additions & 0 deletions
44
docs/en/ref/Baleen/Migrations/Event/Timeline/MigrationEvent.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--------------------------------------------------- | ||
Baleen\\Migrations\\Event\\Timeline\\MigrationEvent | ||
--------------------------------------------------- | ||
|
||
.. php:namespace: Baleen\\Migrations\\Event\\Timeline | ||
|
||
.. php:class:: MigrationEvent | ||
|
||
Class MigrationEvent. | ||
|
||
.. php:attr:: options | ||
|
||
protected Options | ||
|
||
.. php:attr:: version | ||
|
||
protected Version | ||
|
||
.. php:attr:: progress | ||
|
||
protected Progress | ||
|
||
.. php:method:: __construct(Version $version, Options $options, Progress $progress = null) | ||
|
||
MigrationEvent constructor. | ||
|
||
:type $version: Version | ||
:param $version: | ||
:type $options: Options | ||
:param $options: | ||
:type $progress: Progress | ||
:param $progress: | ||
|
||
.. php:method:: getOptions() | ||
|
||
:returns: Options | ||
|
||
.. php:method:: getVersion() | ||
|
||
:returns: Version | ||
|
||
.. php:method:: getProgress() | ||
|
||
:returns: Progress |
Oops, something went wrong.