Roeland Jago Douma
ece41318b8
Check if the favorite tag exists
If the tag does not exist there is no need to do :boom: and log an
exception on error level
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 роки тому
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 роки тому
Roeland Jago Douma
f4fd0224db
Do not use \OCP\DB anymore
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 роки тому
Morris Jobke
3579487798
Remove unused and deprecated methods of OCP\DB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 роки тому
Morris Jobke
2b335fd607
Use insertIfNotExist of the new interface
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 роки тому
Morris Jobke
8195b17ed7
Remove deprecated and unsused methods of OCP\DB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 роки тому
Morris Jobke
2a38605545
Properly log the full exception instead of only the message
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 роки тому
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 роки тому
Julius Härtl
4cfa1c66b8
Doc: Fix phpDoc issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 роки тому
Roeland Jago Douma
ede15f0988
Fix L10N::t
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 роки тому
Joas Schilling
0215b004da
Update with robin
8 роки тому
Joas Schilling
ba87db3fcc
Fix others
8 роки тому
Roeland Jago Douma
f52c5b31b6
Move more from \OC to PSR-4
* \OC\OCSClient
* \OC\Preview
* \OC\PreviewManager
* \OC\Repair
* \OC\RepairException
* \OC\Search
* \OC\ServerContainer
* \OC\ServerNotAvailableException
* \OC\ServiceUnavailableException
* \OC\Setup
* \OC\Streamer
* \OC\SubAdmin
* \OC\SystemConfig
* \OC\TagManager
* \OC\Tags
* \OC\TempManager
* \OC\TemplateLayout
* \OC\URLGenerator
* \OC\Updater
8 роки тому
Joas Schilling
09ae160463
Replace other usages
8 роки тому
Thomas Müller
682821c71e
Happy new year!
8 роки тому
Morris Jobke
190cc2bb67
Remove OC_DB::getConnection
8 роки тому
Joas Schilling
50f6386c63
Fix undefined variable $tagId
9 роки тому
Morris Jobke
e837927ad5
fix followup issues with unneeded parameters
9 роки тому
Morris Jobke
ccf47f40aa
Remove unused variables
* should make scrutinizer a lot more happy
* reduces maybe memory footprint
9 роки тому
Clark Tomlinson
3ffb2d8abd
remove unessesary logging of methods instantiation
9 роки тому
Jenkins for ownCloud
b585d87d9d
Update license headers
9 роки тому
Joas Schilling
1a26263123
Do not walk over the users directory, but over the list of tagged objects
Way quicker
9 роки тому
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 роки тому
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 роки тому
Vincent Petry
ef8d38ca27
Fix chunked query for tags + unit test
9 роки тому
Robin McCorkell
2b99fc76ec
Cleanup of PHPDoc return types
9 роки тому
derkostka
1c22b1f626
Fix Undefined variable: result at tags.php#231
Fix app":"PHP","message":"Undefined variable: result at \/var\/www\/owncloud\/lib\/private\/tags.php#231" by moving the function call into the respective loop
Adjust indentation
Do it right - indentation
sorry, this is my first one
9 роки тому
Vincent Petry
cae600722e
Add getTagsForObjects in ITags
Returns the list of tags that are set on the given object ids.
9 роки тому
Bernhard Reiter
b416f7d8ac
PHPDoc fixes as suggested by @MorrisJobke.
9 роки тому
Bernhard Reiter
1770179648
Add getTag() function for accessing of a single tag.
9 роки тому
Bernhard Reiter
bc265e8b52
Make loading of tags from DB more explicit.
9 роки тому
Bernhard Reiter
226d7233e1
In Tags::rename($from, $to), check if there already is a tag named $to.
9 роки тому
Bernhard Reiter
7e9baafc53
Add option to include tags for shared items.
9 роки тому
Bernhard Reiter
7963125c41
Remove two obsolete try...catch blocks.
9 роки тому
Bernhard Reiter
5471189fe6
Implement Tag and TagMapper classes.
Subclassed from \OCP\AppFramework\Db\Entity and Mapper,
respectively. This will allow us to also deal with shared tags.
9 роки тому
Bernhard Reiter
cf6fb2c2e4
Remove redundant null initializations.
9 роки тому
Bernhard Reiter
3e5d725502
Test addMultiple() with $sync=true.
9 роки тому
Robin Appelman
d0266c0bf8
Use public api for getting l10n
9 роки тому
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
10 роки тому
Thomas Tanghus
b54b0b2153
Yet another cleanup
10 роки тому
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
10 роки тому
Thomas Tanghus
a3fbad43c1
Use DEBUG instead of ERROR when favourites not found. Fix #6419
10 роки тому
Thomas Müller
8e0060405d
reorganize file in lib
10 роки тому
Thomas Tanghus
aaed871cee
Add factory class for the server container.
10 роки тому
Thomas Tanghus
60bff6c589
Use fetchOne() instead of numRows() when doing a COUNT(*).
10 роки тому
Thomas Tanghus
be402fab53
Forgot to return false if add() didn't add anything.
10 роки тому
Thomas Tanghus
8a02afd87a
Added more error checking in add()
10 роки тому
Thomas Tanghus
1bbeb12e2e
Updated method names and added a few more tests.
10 роки тому
Thomas Müller
b63acdb125
fixing namespaces and rename hasCategory to hasTag
10 роки тому
Thomas Tanghus
45f73feb69
OC_VCategories=>OC\Tags. Public interface + getter in server container
10 роки тому