Skip to content

Commit

Permalink
phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 15, 2016
1 parent 851ca47 commit 1d271bb
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions framework/Rdo/lib/Horde/Rdo/Query.php
Expand Up @@ -10,6 +10,8 @@
/**
* @category Horde
* @package Rdo
*
* @property-read $sortby
*/
class Horde_Rdo_Query
{
Expand Down Expand Up @@ -74,6 +76,8 @@ class Horde_Rdo_Query
* object in, it will be cloned before it's returned so that it
* can be safely modified.
*
* @todo Make $mapper non-optional in H6
*
* @param mixed $query The query to convert to an object.
* @param Horde_Rdo_Mapper $mapper The Mapper object governing this query.
*
Expand Down Expand Up @@ -105,6 +109,10 @@ public static function create($query, $mapper = null)
}

/**
* Constructor.
*
* @todo Make $mapper non-optional in H6
*
* @param Horde_Rdo_Mapper $mapper Rdo mapper base class
*/
public function __construct($mapper = null)
Expand Down Expand Up @@ -186,7 +194,10 @@ public function distinct($distinct)
}

/**
* @param array $fields The fields to load with this query.
* Sets the fields to return with the query.
*
* @param array $fields The fields to load with this query.
* @param string $fieldPrefix Prefix all field names with this string.
*
* @return Horde_Rdo_Query Returns self for fluent method chaining.
*/
Expand All @@ -203,7 +214,10 @@ public function setFields($fields, $fieldPrefix = null)
}

/**
* @param array $fields Additional Fields to load with this query.
* Adds fields to return with the query.
*
* @param array $fields Additional fields to load with this query.
* @param string $fieldPrefix Prefix all field names with this string.
*
* @return Horde_Rdo_Query Returns self for fluent method chaining.
*/
Expand Down Expand Up @@ -340,8 +354,7 @@ public function __get($key)
switch ($key) {
case 'sortby':
if (!$this->_sortby && $this->mapper->defaultSort) {
// Add in any default sort values, if none are already
// set.
// Add in any default sort values, if none are already set.
$this->sortBy($this->mapper->defaultSort);
}
return $this->_sortby;
Expand Down

0 comments on commit 1d271bb

Please sign in to comment.