forked from doctrine-extensions/DoctrineExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update doc block comments and inline examples on marker interfaces
- Loading branch information
Showing
11 changed files
with
56 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\Blameable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified as | ||
* Blameable | ||
* Marker interface for objects which can be identified as blamable. | ||
* | ||
* @author Gediminas Morkevicius <[email protected]> | ||
*/ | ||
|
@@ -21,35 +19,35 @@ interface Blameable | |
// blameable expects annotations on properties | ||
|
||
/* | ||
* @gedmo:Blameable(on="create") | ||
* @Gedmo\Blameable(on="create") | ||
* fields which should be updated on insert only | ||
*/ | ||
|
||
/* | ||
* @gedmo:Blameable(on="update") | ||
* @Gedmo\Blameable(on="update") | ||
* fields which should be updated on update and insert | ||
*/ | ||
|
||
/* | ||
* @gedmo:Blameable(on="change", field="field", value="value") | ||
* @Gedmo\Blameable(on="change", field="field", value="value") | ||
* fields which should be updated on changed "property" | ||
* value and become equal to given "value" | ||
*/ | ||
|
||
/* | ||
* @gedmo:Blameable(on="change", field="field") | ||
* @Gedmo\Blameable(on="change", field="field") | ||
* fields which should be updated on changed "property" | ||
*/ | ||
|
||
/* | ||
* @gedmo:Blameable(on="change", fields={"field1", "field2"}) | ||
* @Gedmo\Blameable(on="change", fields={"field1", "field2"}) | ||
* fields which should be updated if at least one of the given fields changed | ||
*/ | ||
|
||
/* | ||
* example | ||
* | ||
* @gedmo:Blameable(on="create") | ||
* @Gedmo\Blameable(on="create") | ||
* @Column(type="string") | ||
* $created | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\IpTraceable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified as | ||
* IpTraceable | ||
* Marker interface for objects which can be identified as IP traceable. | ||
* | ||
* @author Pierre-Charles Bertineau <[email protected]> | ||
*/ | ||
|
@@ -21,35 +19,35 @@ interface IpTraceable | |
// ipTraceable expects annotations on properties | ||
|
||
/* | ||
* @gedmo:IpTraceable(on="create") | ||
* @Gedmo\IpTraceable(on="create") | ||
* strings which should be updated on insert only | ||
*/ | ||
|
||
/* | ||
* @gedmo:IpTraceable(on="update") | ||
* @Gedmo\IpTraceable(on="update") | ||
* strings which should be updated on update and insert | ||
*/ | ||
|
||
/* | ||
* @gedmo:IpTraceable(on="change", field="field", value="value") | ||
* @Gedmo\IpTraceable(on="change", field="field", value="value") | ||
* strings which should be updated on changed "property" | ||
* value and become equal to given "value" | ||
*/ | ||
|
||
/* | ||
* @gedmo:IpTraceable(on="change", field="field") | ||
* @Gedmo\IpTraceable(on="change", field="field") | ||
* strings which should be updated on changed "property" | ||
*/ | ||
|
||
/* | ||
* @gedmo:IpTraceable(on="change", fields={"field1", "field2"}) | ||
* @Gedmo\IpTraceable(on="change", fields={"field1", "field2"}) | ||
* strings which should be updated if at least one of the given fields changed | ||
*/ | ||
|
||
/* | ||
* example | ||
* | ||
* @gedmo:IpTraceable(on="create") | ||
* @Gedmo\IpTraceable(on="create") | ||
* @Column(type="string") | ||
* $created | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\Loggable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Domain Objects which in some cases needs to be identified as | ||
* Loggable | ||
* Marker interface for objects which can be identified as loggable. | ||
* | ||
* @author Gediminas Morkevicius <[email protected]> | ||
*/ | ||
|
@@ -21,14 +19,14 @@ interface Loggable | |
// this interface is not necessary to implement | ||
|
||
/* | ||
* @gedmo:Loggable | ||
* to mark the class as loggable use class annotation @gedmo:Loggable | ||
* @Gedmo\Loggable | ||
* to mark the class as loggable use class annotation @Gedmo\Loggable | ||
* this object will contain now a history | ||
* available options: | ||
* logEntryClass="My\LogEntryObject" (optional) defaultly will use internal object class | ||
* example: | ||
* | ||
* @gedmo:Loggable(logEntryClass="My\LogEntryObject") | ||
* @Gedmo\Loggable(logEntryClass="My\LogEntryObject") | ||
* class MyEntity | ||
*/ | ||
} |
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\ReferenceIntegrity; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified te have | ||
* ReferenceIntegrity checks | ||
* Marker interface for objects which can be identified as requiring reference integrity checks. | ||
* | ||
* @author Evert Harmeling <[email protected]> | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\Sluggable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified as | ||
* Sluggable | ||
* Marker interface for objects which can be identified as sluggable. | ||
* | ||
* @author Gediminas Morkevicius <[email protected]> | ||
*/ | ||
|
@@ -21,13 +19,13 @@ interface Sluggable | |
// use now annotations instead of predefined methods, this interface is not necessary | ||
|
||
/* | ||
* @gedmo:Sluggable | ||
* to mark the field as sluggable use property annotation @gedmo:Sluggable | ||
* @Gedmo\Sluggable | ||
* to mark the field as sluggable use property annotation @Gedmo\Sluggable | ||
* this field value will be included in built slug | ||
*/ | ||
|
||
/* | ||
* @gedmo:Slug - to mark property which will hold slug use annotation @gedmo:Slug | ||
* @Gedmo\Slug - to mark property which will hold slug use annotation @Gedmo\Slug | ||
* available options: | ||
* updatable (optional, default=true) - true to update the slug on sluggable field changes, false - otherwise | ||
* unique (optional, default=true) - true if slug should be unique and if identical it will be prefixed, false - otherwise | ||
|
@@ -40,7 +38,7 @@ interface Sluggable | |
* | ||
* example: | ||
* | ||
* @gedmo:Slug(style="camel", separator="_", prefix="", suffix="", updatable=false, unique=false) | ||
* @Gedmo\Slug(style="camel", separator="_", prefix="", suffix="", updatable=false, unique=false) | ||
* @Column(type="string", length=64) | ||
* $property | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\SoftDeleteable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Domain Objects which in some cases needs to be identified as | ||
* SoftDeleteable | ||
* Marker interface for objects which can be identified as soft-deletable. | ||
* | ||
* @author Gustavo Falco <[email protected]> | ||
* @author Gediminas Morkevicius <[email protected]> | ||
|
@@ -22,12 +20,12 @@ interface SoftDeleteable | |
// this interface is not necessary to implement | ||
|
||
/* | ||
* @gedmo:SoftDeleteable | ||
* to mark the class as SoftDeleteable use class annotation @gedmo:SoftDeleteable | ||
* @Gedmo\SoftDeleteable | ||
* to mark the class as SoftDeleteable use class annotation @Gedmo\SoftDeleteable | ||
* this object will be able to be soft deleted | ||
* example: | ||
* | ||
* @gedmo:SoftDeleteable | ||
* @Gedmo\SoftDeleteable | ||
* class MyEntity | ||
*/ | ||
} |
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\Sortable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified as | ||
* Sortable | ||
* Marker interface for objects which can be identified as sortable. | ||
* | ||
* @author Lukas Botsch <[email protected]> | ||
*/ | ||
|
@@ -21,27 +19,27 @@ interface Sortable | |
// use now annotations instead of predefined methods, this interface is not necessary | ||
|
||
/* | ||
* @gedmo:SortablePosition - to mark property which will hold the item position use annotation @gedmo:SortablePosition | ||
* @Gedmo\SortablePosition - to mark property which will hold the item position use annotation @Gedmo\SortablePosition | ||
* This property has to be numeric. The position index can be negative and will be counted from right to left. | ||
* | ||
* example: | ||
* | ||
* @gedmo:SortablePosition | ||
* @Gedmo\SortablePosition | ||
* @Column(type="int") | ||
* $position | ||
* | ||
* @gedmo:SortableGroup | ||
* @Gedmo\SortableGroup | ||
* @Column(type="string", length=64) | ||
* $category | ||
* | ||
*/ | ||
|
||
/* | ||
* @gedmo:SortableGroup - to group node sorting by a property use annotation @gedmo:SortableGroup on this property | ||
* @Gedmo\SortableGroup - to group node sorting by a property use annotation @Gedmo\SortableGroup on this property | ||
* | ||
* example: | ||
* | ||
* @gedmo:SortableGroup | ||
* @Gedmo\SortableGroup | ||
* @Column(type="string", length=64) | ||
* $category | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -10,9 +10,7 @@ | |
namespace Gedmo\Timestampable; | ||
|
||
/** | ||
* This interface is not necessary but can be implemented for | ||
* Entities which in some cases needs to be identified as | ||
* Timestampable | ||
* Marker interface for objects which can be identified as timestampable. | ||
* | ||
* @author Gediminas Morkevicius <[email protected]> | ||
*/ | ||
|
@@ -21,35 +19,35 @@ interface Timestampable | |
// timestampable expects annotations on properties | ||
|
||
/* | ||
* @gedmo:Timestampable(on="create") | ||
* @Gedmo\Timestampable(on="create") | ||
* dates which should be updated on insert only | ||
*/ | ||
|
||
/* | ||
* @gedmo:Timestampable(on="update") | ||
* @Gedmo\Timestampable(on="update") | ||
* dates which should be updated on update and insert | ||
*/ | ||
|
||
/* | ||
* @gedmo:Timestampable(on="change", field="field", value="value") | ||
* @Gedmo\Timestampable(on="change", field="field", value="value") | ||
* dates which should be updated on changed "property" | ||
* value and become equal to given "value" | ||
*/ | ||
|
||
/* | ||
* @gedmo:Timestampable(on="change", field="field") | ||
* @Gedmo\Timestampable(on="change", field="field") | ||
* dates which should be updated on changed "property" | ||
*/ | ||
|
||
/* | ||
* @gedmo:Timestampable(on="change", fields={"field1", "field2"}) | ||
* @Gedmo\Timestampable(on="change", fields={"field1", "field2"}) | ||
* dates which should be updated if at least one of the given fields changed | ||
*/ | ||
|
||
/* | ||
* example | ||
* | ||
* @gedmo:Timestampable(on="create") | ||
* @Gedmo\Timestampable(on="create") | ||
* @Column(type="date") | ||
* $created | ||
*/ | ||
|
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
Oops, something went wrong.