convertParameters() 보호된 메소드

Convert parameters array to Criteria
protected convertParameters ( integer $firstResult, array $parameters ) : Criteria
$firstResult integer
$parameters array
리턴 Newscoop\Criteria
예제 #1
0
 /**
  * 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);
 }