diff --git a/src/Entity/Footprint.php b/src/Entity/Footprint.php index 0b9a43eb..2c269e95 100644 --- a/src/Entity/Footprint.php +++ b/src/Entity/Footprint.php @@ -107,7 +107,7 @@ class Footprint extends PartsContainingDBElement * This method is used to get all footprints with broken filename * (Footprint::get_broken_filename_footprints()). * - * @note An empty filename is a valid filename. + * An empty filename is a valid filename. * * @return boolean @li true if file exists or filename is empty * @li false if there is no file with this filename @@ -127,7 +127,7 @@ class Footprint extends PartsContainingDBElement * This method is used to get all footprints with broken 3d filename * (Footprint::get_broken_3d_filename_footprints()). * - * @note An empty filename is a valid filename. + * An empty filename is a valid filename. * * @return boolean @li true if file exists or filename is empty * @li false if there is no file with this filename @@ -159,20 +159,20 @@ class Footprint extends PartsContainingDBElement /** * Change the filename of this footprint * - * @note The filename won't be checked if it is valid. + * The filename won't be checked if it is valid. * It's not really a Problem if there is no such file... * (For this purpose we have the method Footprint::get_broken_filename_footprints()) * * @param string $new_filename @li the new filename (absolute path from filesystem root, as a UNIX path [only slashes!] !! ) * @li see also lib.functions.php::to_unix_path() * - * @warning It's really important that you pass the whole (UNIX) path from filesystem root! + * It's really important that you pass the whole (UNIX) path from filesystem root! * If the file is located in the base directory of Part-DB, the base path * will be automatically replaced with a placeholder before write it in the database. * This way, the filenames are still correct if the installation directory * of Part-DB is moved. * - * @note The path-replacing will be done in Footprint::check_values_validity(), not here. + * The path-replacing will be done in Footprint::check_values_validity(), not here. * * @throws Exception if there was an error */ diff --git a/src/Entity/NamedDBElement.php b/src/Entity/NamedDBElement.php index de57d911..3c2c4609 100644 --- a/src/Entity/NamedDBElement.php +++ b/src/Entity/NamedDBElement.php @@ -95,7 +95,7 @@ abstract class NamedDBElement extends DBElement /** * Change the name of this element * - * @note Spaces at the begin and at the end of the string will be removed + * Spaces at the begin and at the end of the string will be removed * automatically in NamedDBElement::check_values_validity(). * So you don't have to do this yourself. * diff --git a/src/Entity/Part.php b/src/Entity/Part.php index ea43975e..263c6084 100644 --- a/src/Entity/Part.php +++ b/src/Entity/Part.php @@ -243,7 +243,7 @@ class Part extends AttachmentContainingDBElement /** * Get if this part is obsolete * - * @note A Part is marked as "obsolete" if all their orderdetails are marked as "obsolete". + * A Part is marked as "obsolete" if all their orderdetails are marked as "obsolete". * If a part has no orderdetails, the part isn't marked as obsolete. * * @return boolean @li true if this part is obsolete @@ -598,7 +598,7 @@ class Part extends AttachmentContainingDBElement * @return array all prices as an array of strings (if "$delimeter == NULL" & "$float_array == false") * @return string all prices as a string, delimeted by $delimeter (if $delimeter is a string) * - * @warning If there are orderdetails without prices, for these orderdetails there + * If there are orderdetails without prices, for these orderdetails there * will be a "NULL" in the returned float array (or a "-" in the string array)!! * (This is needed for the HTML output, if there are all orderdetails and prices listed.) * @@ -968,7 +968,7 @@ class Part extends AttachmentContainingDBElement /** * Set the ID of the category * - * @note Every part must have a valid category (in contrast to the + * Every part must have a valid category (in contrast to the * attributes "footprint", "storelocation", ...)! * * @param integer $new_category_id the ID of the category diff --git a/src/Entity/Pricedetail.php b/src/Entity/Pricedetail.php index 10335b72..16f8099b 100644 --- a/src/Entity/Pricedetail.php +++ b/src/Entity/Pricedetail.php @@ -82,7 +82,7 @@ class Pricedetail extends DBElement * @param integer $multiplier The returned price (float or string) will be multiplied * with this multiplier. * - * @note You will get the price for $multiplier parts. If you want the price which is stored + * You will get the price for $multiplier parts. If you want the price which is stored * in the database, you have to pass the "price_related_quantity" count as $multiplier. * * @return float the price as a float number (if "$as_money_string == false") @@ -142,7 +142,7 @@ class Pricedetail extends DBElement * * @param float $new_price the new price as a float number * - * @warning @li This is the price for "price_related_quantity" parts!! + * @li This is the price for "price_related_quantity" parts!! * @li Example: if "price_related_quantity" is '10', * you have to set here the price for 10 parts! */ diff --git a/src/Entity/Storelocation.php b/src/Entity/Storelocation.php index 6608f206..4ca23f53 100644 --- a/src/Entity/Storelocation.php +++ b/src/Entity/Storelocation.php @@ -44,8 +44,8 @@ class Storelocation extends PartsContainingDBElement /** * Get the "is full" attribute * - * @note "is_full == true" means that there is no more space in this storelocation. - * @note This attribute is only for information, it has no effect. + * "is_full == true" means that there is no more space in this storelocation. + * This attribute is only for information, it has no effect. * * @return boolean @li true if the storelocation is full * @li false if the storelocation isn't full @@ -64,8 +64,8 @@ class Storelocation extends PartsContainingDBElement /** * Change the "is full" attribute of this storelocation * - * @note "is_full" = true means that there is no more space in this storelocation. - * @note This attribute is only for information, it has no effect. + * "is_full" = true means that there is no more space in this storelocation. + * This attribute is only for information, it has no effect. * * @param boolean $new_is_full @li true means that the storelocation is full * @li false means that the storelocation isn't full diff --git a/src/Entity/StructuralDBElement.php b/src/Entity/StructuralDBElement.php index 614cf99f..3f5cf35c 100644 --- a/src/Entity/StructuralDBElement.php +++ b/src/Entity/StructuralDBElement.php @@ -151,7 +151,7 @@ abstract class StructuralDBElement extends AttachmentContainingDBElement /** * Get the level * - * @note The level of the root node is -1. + * The level of the root node is -1. * * @return integer the level of this element (zero means a most top element * [a subelement of the root node]) diff --git a/templates/show_part_info.html.twig b/templates/show_part_info.html.twig index ec075be1..de9835be 100644 --- a/templates/show_part_info.html.twig +++ b/templates/show_part_info.html.twig @@ -198,7 +198,7 @@
-

{{ part.datetimeAdded | date}} +

{{ part.addedDate | date}} {#{if !empty($creation_user)} {% trans %}by{% endtrans %} {if $can_visit_user} {$creation_user} @@ -213,7 +213,7 @@

-

{{ part.addedDate | date }} +

{{ part.lastModified | date }} {# {if !empty($last_modified_user)} {% trans %}by{% endtrans %} {if $can_visit_user} {$last_modified_user}