From 1def2adae269a22ea286151cf9abbe0c93f44edc Mon Sep 17 00:00:00 2001 From: Philip Lehmann-Boehm Date: Mon, 27 Nov 2017 16:34:01 +0100 Subject: [PATCH] regenerated the documentation --- .../0.13.0/_sources/api/EntityDefinition.txt | 23 +++++++++- docs/html/0.13.0/_sources/api/MySQLData.txt | 20 +++++++++ .../_sources/manual/crudyamlreference.txt | 2 + .../0.13.0/_sources/manual/datastructures.txt | 1 + .../_sources/manual/extendedfeatures.txt | 19 ++++++++ docs/html/0.13.0/api/EntityDefinition.html | 42 +++++++++++++++++- docs/html/0.13.0/api/MySQLData.html | 37 +++++++++++++++ docs/html/0.13.0/genindex.html | 28 ++++++++++-- docs/html/0.13.0/index.html | 1 + .../html/0.13.0/manual/crudyamlreference.html | 2 + docs/html/0.13.0/manual/datastructures.html | 3 +- docs/html/0.13.0/manual/extendedfeatures.html | 16 +++++++ docs/html/0.13.0/objects.inv | Bin 1999 -> 2043 bytes docs/html/0.13.0/searchindex.js | 2 +- 14 files changed, 186 insertions(+), 10 deletions(-) diff --git a/docs/html/0.13.0/_sources/api/EntityDefinition.txt b/docs/html/0.13.0/_sources/api/EntityDefinition.txt index 86ee0da..93a5fa0 100644 --- a/docs/html/0.13.0/_sources/api/EntityDefinition.txt +++ b/docs/html/0.13.0/_sources/api/EntityDefinition.txt @@ -102,6 +102,12 @@ CRUDlex\\EntityDefinition Holds the initial sort order. + .. php:attr:: hardDeletion + + protected bool + + Holds whether hard deletion is activated. + .. php:attr:: navBarGroup protected string @@ -367,17 +373,30 @@ CRUDlex\\EntityDefinition .. php:method:: setInitialSortAscending($initialSortAscending) - Sets the initial sort order. + Sets whether the initial sort order is ascending. :type $initialSortAscending: boolean :param $initialSortAscending: the initial sort order, true if ascending .. php:method:: isInitialSortAscending() - Gets the initial sort order. + Gets whether the initial sort order is ascending. :returns: boolean the initial sort order, true if ascending + .. php:method:: setHardDeletion($hardDeletion) + + Sets the hard deletion state. + + :type $hardDeletion: boolean + :param $hardDeletion: the hard deletion state + + .. php:method:: isHardDeletion() + + Gets the hard deletion state. + + :returns: boolean the hard deletion state + .. php:method:: getNavBarGroup() Gets the navigation bar group where the entity belongs. diff --git a/docs/html/0.13.0/_sources/api/MySQLData.txt b/docs/html/0.13.0/_sources/api/MySQLData.txt index 3fffb4e..729aa07 100644 --- a/docs/html/0.13.0/_sources/api/MySQLData.txt +++ b/docs/html/0.13.0/_sources/api/MySQLData.txt @@ -50,6 +50,19 @@ CRUDlex\\MySQLData Holds the events. + .. php:method:: addSoftDeletionToQuery(EntityDefinition $definition, QueryBuilder $queryBuilder, $fieldPrefix = '', $method = 'andWhere') + + Adds the soft deletion parameters if activated. + + :type $definition: EntityDefinition + :param $definition: the entity definition which might have soft deletion activated + :type $queryBuilder: QueryBuilder + :param $queryBuilder: the query builder to add the deletion condition to + :type $fieldPrefix: string + :param $fieldPrefix: the prefix to add before the deleted_at field like an table alias + :type $method: string + :param $method: the method to use of the query builder, "where" or "andWhere" + .. php:method:: setValuesAndParameters(Entity $entity, QueryBuilder $queryBuilder, $setMethod) Sets the values and parameters of the upcoming given query according @@ -70,6 +83,13 @@ CRUDlex\\MySQLData :param $id: the current entities id :returns: boolean true if the entity still has children + .. php:method:: deleteManyToManyReferences(Entity $entity) + + Deletes any many to many references pointing to the given entity. + + :type $entity: Entity + :param $entity: the referenced entity + .. php:method:: doDelete(Entity $entity, $deleteCascade) {@inheritdoc} diff --git a/docs/html/0.13.0/_sources/manual/crudyamlreference.txt b/docs/html/0.13.0/_sources/manual/crudyamlreference.txt index d452258..ec235d9 100644 --- a/docs/html/0.13.0/_sources/manual/crudyamlreference.txt +++ b/docs/html/0.13.0/_sources/manual/crudyamlreference.txt @@ -95,6 +95,8 @@ required, along with the default value or behaviour. # the label which should be displayed if the "de" is selected as language label_de: Bücher table: book + # database entries will be hard deleted for this entry + hardDeletion: true fields: title: type: text diff --git a/docs/html/0.13.0/_sources/manual/datastructures.txt b/docs/html/0.13.0/_sources/manual/datastructures.txt index 9aaf501..fb52873 100644 --- a/docs/html/0.13.0/_sources/manual/datastructures.txt +++ b/docs/html/0.13.0/_sources/manual/datastructures.txt @@ -83,6 +83,7 @@ more fields per table: updated * deleted_at datetime DEFAULT NULL: defines when this entry was deleted in UTC. CRUDlex uses a soft delete mechanism hiding all rows where this is not null + (only if hard deletion is not activated) * version int(11) NOT NULL: used for optimistic locking See the CRUDlexSample.sql in the `sample `_ diff --git a/docs/html/0.13.0/_sources/manual/extendedfeatures.txt b/docs/html/0.13.0/_sources/manual/extendedfeatures.txt index 03fc1d2..420d1b7 100644 --- a/docs/html/0.13.0/_sources/manual/extendedfeatures.txt +++ b/docs/html/0.13.0/_sources/manual/extendedfeatures.txt @@ -138,6 +138,25 @@ Currently, the listview contains all entries on the pages. Often, it is desirabl type: integer label: Pages +------------- +Hard Deletion +------------- + +By default, CRUDlex uses a soft deletion mechanism by only setting a deleted_at field. Hard deletion from the database +can be activated though via the "hardDeletion" flag like this: + +.. code-block:: yaml + + library: + table: library + hardDeletion: true + fields: + name: + type: text + label: Name + +If activated, the column "deleted_at" is not needed in the entities table. + ------------------------------------ Group entities in the Navigation Bar ------------------------------------ diff --git a/docs/html/0.13.0/api/EntityDefinition.html b/docs/html/0.13.0/api/EntityDefinition.html index 61d5597..1ffebbe 100644 --- a/docs/html/0.13.0/api/EntityDefinition.html +++ b/docs/html/0.13.0/api/EntityDefinition.html @@ -277,6 +277,13 @@

CRUDlex\EntityDefinition +
+property hardDeletion
+

protected bool

+

Holds whether hard deletion is activated.

+
+
property navBarGroup
@@ -845,7 +852,7 @@

CRUDlex\EntityDefinition
setInitialSortAscending($initialSortAscending)
-

Sets the initial sort order.

+

Sets whether the initial sort order is ascending.

@@ -862,7 +869,7 @@

CRUDlex\EntityDefinition
isInitialSortAscending()
-

Gets the initial sort order.

+

Gets whether the initial sort order is ascending.

@@ -873,6 +880,37 @@

CRUDlex\EntityDefinition +
+setHardDeletion($hardDeletion)
+

Sets the hard deletion state.

+

+++ + + + +
Parameters:
    +
  • $hardDeletion (boolean) – the hard deletion state
  • +
+
+

+ +
+
+isHardDeletion()
+

Gets the hard deletion state.

+ +++ + + + +
Returns:boolean the hard deletion state
+
+
getNavBarGroup()
diff --git a/docs/html/0.13.0/api/MySQLData.html b/docs/html/0.13.0/api/MySQLData.html index 78d21d3..2035417 100644 --- a/docs/html/0.13.0/api/MySQLData.html +++ b/docs/html/0.13.0/api/MySQLData.html @@ -227,6 +227,26 @@

CRUDlex\MySQLData +
+addSoftDeletionToQuery(EntityDefinition $definition, QueryBuilder $queryBuilder, $fieldPrefix = '', $method = 'andWhere')
+

Adds the soft deletion parameters if activated.

+ +++ + + + +
Parameters:
    +
  • $definition (EntityDefinition) – the entity definition which might have soft deletion activated
  • +
  • $queryBuilder (QueryBuilder) – the query builder to add the deletion condition to
  • +
  • $fieldPrefix (string) – the prefix to add before the deleted_at field like an table alias
  • +
  • $method (string) – the method to use of the query builder, “where” or “andWhere”
  • +
+
+

+
setValuesAndParameters(Entity $entity, QueryBuilder $queryBuilder, $setMethod)
@@ -267,6 +287,23 @@

CRUDlex\MySQLData +
+deleteManyToManyReferences(Entity $entity)
+

Deletes any many to many references pointing to the given entity.

+ +++ + + + +
Parameters:
    +
  • $entity (Entity) – the referenced entity
  • +
+
+

+
doDelete(Entity $entity, $deleteCascade)
diff --git a/docs/html/0.13.0/genindex.html b/docs/html/0.13.0/genindex.html index 0c35dc4..8d99c7d 100644 --- a/docs/html/0.13.0/genindex.html +++ b/docs/html/0.13.0/genindex.html @@ -242,12 +242,12 @@

A

AbstractData::DELETION_SUCCESS (class constant)
-
-
addChild() (EntityDefinition method)
+
+
addFilter() (MySQLData method)
@@ -257,6 +257,10 @@

A

+
addSoftDeletionToQuery() (MySQLData method) +
+ +
addSort() (MySQLData method)
@@ -442,8 +446,6 @@

D

deleteCascade (EntityDefinition property)
-
-
deleteChildren() (AbstractData method)
@@ -454,6 +456,8 @@

D

+ +
deleteFile() (ControllerProvider method)
@@ -469,6 +473,10 @@

D

+
deleteManyToManyReferences() (MySQLData method) +
+ +
doCreate() (AbstractData method)
@@ -901,6 +909,10 @@

H

+
hardDeletion (EntityDefinition property) +
+ +
hasChildren() (MySQLData method)
@@ -967,6 +979,10 @@

I

+
isHardDeletion() (EntityDefinition method) +
+ +
isInitialSortAscending() (EntityDefinition method)
@@ -1195,6 +1211,10 @@

S

+
setHardDeletion() (EntityDefinition method) +
+ +
setInitialSortAscending() (EntityDefinition method)
diff --git a/docs/html/0.13.0/index.html b/docs/html/0.13.0/index.html index ad49339..76da044 100644 --- a/docs/html/0.13.0/index.html +++ b/docs/html/0.13.0/index.html @@ -243,6 +243,7 @@

Welcome to CRUDlex’s documentation!Displayed Fields in the List
  • Pagination
  • Filters
  • +
  • Hard Deletion
  • Group entities in the Navigation Bar
  • I18n
    • Set the Translations of Entity- and Field-Labels
    • diff --git a/docs/html/0.13.0/manual/crudyamlreference.html b/docs/html/0.13.0/manual/crudyamlreference.html index 4ae975e..1e88d3e 100644 --- a/docs/html/0.13.0/manual/crudyamlreference.html +++ b/docs/html/0.13.0/manual/crudyamlreference.html @@ -254,6 +254,8 @@

      CRUD YAML Reference# the label which should be displayed if the "de" is selected as language label_de: Bücher table: book + # database entries will be hard deleted for this entry + hardDeletion: true fields: title: type: text diff --git a/docs/html/0.13.0/manual/datastructures.html b/docs/html/0.13.0/manual/datastructures.html index a0d7735..2e8ba8c 100644 --- a/docs/html/0.13.0/manual/datastructures.html +++ b/docs/html/0.13.0/manual/datastructures.html @@ -238,7 +238,8 @@

      Fieldssample diff --git a/docs/html/0.13.0/manual/extendedfeatures.html b/docs/html/0.13.0/manual/extendedfeatures.html index f90c79f..988e9ae 100644 --- a/docs/html/0.13.0/manual/extendedfeatures.html +++ b/docs/html/0.13.0/manual/extendedfeatures.html @@ -100,6 +100,7 @@
    • Displayed Fields in the List
    • Pagination
    • Filters
    • +
    • Hard Deletion
    • Group entities in the Navigation Bar
    • I18n
      • Set the Translations of Entity- and Field-Labels
      • @@ -309,6 +310,21 @@

        Filters +

        Hard Deletion

        +

        By default, CRUDlex uses a soft deletion mechanism by only setting a deleted_at field. Hard deletion from the database +can be activated though via the “hardDeletion” flag like this:

        +
        library:
        +    table: library
        +    hardDeletion: true
        +    fields:
        +        name:
        +            type: text
        +            label: Name
        +
        +
        +

        If activated, the column “deleted_at” is not needed in the entities table.

        +

        Group entities in the Navigation Bar

        Each entity represents and option in the navigation bar at the top. If there are diff --git a/docs/html/0.13.0/objects.inv b/docs/html/0.13.0/objects.inv index 8aa03adc2e62e95639d8b35f254b18aff893f02a..07f23531ec7531ffbb16cb9677ca3c2dcfdcfbbc 100644 GIT binary patch delta 1939 zcmV;E2W5+^nH$D?7*Se}C;5QXxOzbahx7`q&n@ z*-)%O*4w-NgB|rzHllOo#2&Tl{8 zqMCd>eYkJg-I-)C_<&(WD$;g`(jy_5j~w2h5!G7qAJD53@-&A3r}WM)%`M zHe6)iv!{921%I^SB7!uVk0+DGG#h2p?CBvJ#zAMV4-eUF76i#@Q;9FzR=WXFQ0yaS zfCR*7vrR1mE5}emXyu*up&%t@Pz5sRL&WQ2I*e&QeXVhD-B2--7g;5U*#01*cm#nC ztJ|Bl1`#YAo?C_xM0T_eA@UJrn-PH$ha<*#PM^>Q9)D3C%#hZ68`+F0tUylY9LAxL z0&&%jS?GWkTg-wdWl6Y@Q<4z~Y<=UkA|9x6%w-Aeh0!;HfnE8w>moM!V6beYIeD!o z@)Qvw!XlAwp=3c6p(LF>%&R6?2T`4`0G z%9cO#B!4wLQE70R3ah{>9;iaR)wZ+asc33Q_0X7)dWd*;a1ZfUQv85y;_N2hkO@WA@fpAAe%mc_)ke)HQWKUly}&wTu!tR^d>5 zv1oS~tkHQTlSmsPS_<33LW^vQ-rdXBv~JWI_)gFiel@^7n#g_LN6`7U2G{ZzuYNt~ z#{y=l9M$}EZ*w)So{)(;Bsd9ALwUPx7ved>5Jg(WH)eH=(LxagVz`YLjO)!2)P6$c zjDIq5&vWT5NwrP|Y{xAM)}0YW5!#qIdd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