for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2021
* @package Controller
* @subpackage Frontend
*/
namespace Aimeos\Controller\Frontend\Common\Decorator;
* Decorator trait class for controllers
*
trait Traits
{
* Adds the given compare, combine or sort expression to the list of expressions
* @param \Aimeos\MW\Criteria\Expression\Iface $expr Compare, combine or sort expression
* @return \Aimeos\Controller\Frontend\Iface Controller object for chaining method calls
public function addExpression( \Aimeos\MW\Criteria\Expression\Iface $expr ) : Iface
$this->getController()->addExpression( $expr );
return $this;
}
* Returns the compare and combine expressions added by addExpression()
* @return array List of compare and combine expressions
public function getConditions() : array
$this->getController()->getConditions();
* @return array List of sort expressions
public function getSortations() : array
$this->getController()->getSortations();
* Returns the frontend controller
* @return \Aimeos\Controller\Frontend\Iface Frontend controller object
abstract protected function getController() : \Aimeos\Controller\Frontend\Iface;