Browse Source

PHPDoc fixes as suggested by @MorrisJobke.

tags/v8.0.0alpha1
Bernhard Reiter 9 years ago
parent
commit
b416f7d8ac
4 changed files with 9 additions and 5 deletions
  1. 4
    0
      lib/private/tagging/tag.php
  2. 1
    1
      lib/private/tagging/tagmapper.php
  3. 2
    2
      lib/private/tags.php
  4. 2
    2
      lib/public/itags.php

+ 4
- 0
lib/private/tagging/tag.php View File

@@ -55,8 +55,11 @@ class Tag extends Entity {

/**
* Transform a database columnname to a property
*
* @param string $columnName the name of the column
* @return string the property name
* @todo migrate existing database columns to the correct names
* to be able to drop this direct mapping
*/
public function columnToProperty($columnName){
if ($columnName === 'category') {
@@ -70,6 +73,7 @@ class Tag extends Entity {

/**
* Transform a property to a database column name
*
* @param string $property the name of the property
* @return string the column name
*/

+ 1
- 1
lib/private/tagging/tagmapper.php View File

@@ -27,7 +27,7 @@ use \OCP\AppFramework\Db\Mapper,
\OCP\IDb;

/**
* Thin wrapper around \OCP\AppFramework\Db\Mapper.
* Mapper for Tag entity
*/
class TagMapper extends Mapper {


+ 2
- 2
lib/private/tags.php View File

@@ -324,7 +324,7 @@ class Tags implements \OCP\ITags {
/**
* Rename tag.
*
* @param string $from The name of the existing tag
* @param string|integer $from The name or ID of the existing tag
* @param string $to The new name of the tag.
* @return bool
*/
@@ -639,7 +639,7 @@ class Tags implements \OCP\ITags {
/**
* Delete tags from the database.
*
* @param string[] $names An array of tags (names or IDs) to delete
* @param string[]|integer[] $names An array of tags (names or IDs) to delete
* @return bool Returns false on error
*/
public function delete($names) {

+ 2
- 2
lib/public/itags.php View File

@@ -114,7 +114,7 @@ interface ITags {
/**
* Rename tag.
*
* @param string $from The name of the existing tag
* @param string|integer $from The name or ID of the existing tag
* @param string $to The new name of the tag.
* @return bool
*/
@@ -183,7 +183,7 @@ interface ITags {
/**
* Delete tags from the database
*
* @param string[] $names An array of tags to delete
* @param string[]|integer[] $names An array of tags (names or IDs) to delete
* @return bool Returns false on error
*/
public function delete($names);

Loading…
Cancel
Save