Purl\Query::setQuery PHP Method

setQuery() public method

Set the string query for this Query instance and sets initialized to false.
public setQuery ( $query )
    public function setQuery($query)
    {
        $this->initialized = false;
        $this->query = $query;
    }

Usage Example

Example #1
0
 public function testGetSetQuery()
 {
     $query = new Query();
     $this->assertEquals('', $query->getQuery());
     $query->setQuery('param1=value1&param2=value2');
     $this->assertEquals('param1=value1&param2=value2', $query->getQuery());
 }