added toolbar to customer screen #28 (#49)

* fixed filter query #28
* fixed annotation #28
* merge message files #28
* added page size type #28
* added visibility type #28
* added filter toolbar to customer screen #28
This commit is contained in:
Kevin Papst
2018-01-07 21:42:27 +01:00
committed by GitHub
parent c5c9f37de7
commit 79e87ecdbe
17 changed files with 289 additions and 87 deletions

View File

@@ -59,7 +59,7 @@ class BaseQuery
/**
* @param int $page
* @return BaseQuery
* @return $this
*/
public function setPage($page)
{
@@ -77,7 +77,7 @@ class BaseQuery
/**
* @param int $pageSize
* @return BaseQuery
* @return $this
*/
public function setPageSize($pageSize)
{
@@ -99,7 +99,7 @@ class BaseQuery
* You need to validate carefully if this value is used from a user-input.
*
* @param string $orderBy
* @return BaseQuery
* @return $this
*/
public function setOrderBy($orderBy)
{
@@ -117,7 +117,7 @@ class BaseQuery
/**
* @param string $order
* @return BaseQuery
* @return $this
*/
public function setOrder($order)
{
@@ -137,7 +137,7 @@ class BaseQuery
/**
* @param string $resultType
* @return BaseQuery
* @return $this
*/
public function setResultType($resultType)
{

View File

@@ -30,11 +30,13 @@ trait VisibilityTrait
/**
* @param int $visibility
* @return ProjectQuery
* @return self
*/
public function setVisibility($visibility)
{
$this->visibility = $visibility;
if (in_array($visibility, [self::SHOW_BOTH, self::SHOW_VISIBLE, self::SHOW_HIDDEN])) {
$this->visibility = $visibility;
}
return $this;
}
}