Esempio n. 1
0
 public function getFields($asString = false)
 {
     if (!$asString) {
         return $this->fields;
     }
     $query = new puzzle_Query($this->fields);
     return (string) $query->setEncodingType(puzzle_Query::RFC1738)->setAggregator($this->getAggregator());
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function setEncodingType($type)
 {
     $this->_assertNotFrozen();
     $this->_delegate->setEncodingType($type);
     return $this;
 }
Esempio n. 3
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testValidatesEncodingType()
 {
     $q = new puzzle_Query(array('bar' => 'bam boozle'));
     $q->setEncodingType('foo');
 }