Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
dd70d1b8
Commit
dd70d1b8
authored
10 years ago
by
Morris Jobke
Browse files
Options
Downloads
Plain Diff
Merge pull request #11090 from owncloud/fix-undefined-class-and-phpdoc
Fix unexisting class and PHPDoc
parents
af52ffc5
4f0f7e35
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/ocs/result.php
+8
-16
8 additions, 16 deletions
lib/private/ocs/result.php
with
8 additions
and
16 deletions
lib/private/ocs/result.php
+
8
−
16
View file @
dd70d1b8
...
@@ -5,19 +5,9 @@
...
@@ -5,19 +5,9 @@
* @author Tom Needham
* @author Tom Needham
* @copyright 2012 Tom Needham tom@owncloud.com
* @copyright 2012 Tom Needham tom@owncloud.com
*
*
* This library is free software; you can redistribute it and/or
* This file is licensed under the Affero General Public License version 3 or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* later.
* License as published by the Free Software Foundation; either
* See the COPYING-README file.
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
*/
class
OC_OCS_Result
{
class
OC_OCS_Result
{
...
@@ -27,6 +17,8 @@ class OC_OCS_Result{
...
@@ -27,6 +17,8 @@ class OC_OCS_Result{
/**
/**
* create the OCS_Result object
* create the OCS_Result object
* @param mixed $data the data to return
* @param mixed $data the data to return
* @param int $code
* @param null|string $message
*/
*/
public
function
__construct
(
$data
=
null
,
$code
=
100
,
$message
=
null
)
{
public
function
__construct
(
$data
=
null
,
$code
=
100
,
$message
=
null
)
{
if
(
$data
===
null
)
{
if
(
$data
===
null
)
{
...
@@ -44,7 +36,7 @@ class OC_OCS_Result{
...
@@ -44,7 +36,7 @@ class OC_OCS_Result{
* optionally set the total number of items available
* optionally set the total number of items available
* @param int $items
* @param int $items
*/
*/
public
function
setTotalItems
(
int
$items
)
{
public
function
setTotalItems
(
$items
)
{
$this
->
items
=
$items
;
$this
->
items
=
$items
;
}
}
...
@@ -52,7 +44,7 @@ class OC_OCS_Result{
...
@@ -52,7 +44,7 @@ class OC_OCS_Result{
* optionally set the the number of items per page
* optionally set the the number of items per page
* @param int $items
* @param int $items
*/
*/
public
function
setItemsPerPage
(
int
$items
)
{
public
function
setItemsPerPage
(
$items
)
{
$this
->
perPage
=
$items
;
$this
->
perPage
=
$items
;
}
}
...
@@ -92,7 +84,7 @@ class OC_OCS_Result{
...
@@ -92,7 +84,7 @@ class OC_OCS_Result{
}
}
/**
/**
* return bool
if
the method succe
d
ded
* return bool
Whether
the method succe
e
ded
* @return bool
* @return bool
*/
*/
public
function
succeeded
()
{
public
function
succeeded
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment