convertParameters() protected method

Convert parameters array to Criteria
protected convertParameters ( integer $firstResult, array $parameters ) : Criteria
$firstResult integer
$parameters array
return Newscoop\Criteria
 /**
  * Converts parameters array to Criteria
  * 
  * @param  integer  $firstResult
  * @param  array    $parameters
  * 
  * @return void
  */
 protected function convertParameters($firstResult, $parameters)
 {
     $this->criteria->orderBy = array();
     // run default simple parameters converting
     parent::convertParameters($firstResult, $parameters);
     if (array_key_exists('length', $parameters)) {
         $parameter = (int) $parameters['length'];
         if ($parameter < 0) {
             throw new \Exception("Invalid value of parameter \"length\" in statement list_community_feeds", 1);
         }
         $this->criteria->length = $parameter;
     }
 }
 protected function convertParameters($firstResult, $parameters)
 {
     $this->criteria->orderBy = array();
     // run default simple parameters converting
     parent::convertParameters($firstResult, $parameters);
 }