Prado\Data\DataGateway\TSqlCriteria::__toString PHP Method

__toString() public method

public __toString ( ) : string
return string string representation of the parameters. Useful for debugging.
    public function __toString()
    {
        $str = '';
        if (strlen((string) $this->getCondition()) > 0) {
            $str .= '"' . (string) $this->getCondition() . '"';
        }
        $params = array();
        foreach ($this->getParameters() as $k => $v) {
            $params[] = "{$k} => {$v}";
        }
        if (count($params) > 0) {
            $str .= ', "' . implode(', ', $params) . '"';
        }
        $orders = array();
        foreach ($this->getOrdersBy() as $k => $v) {
            $orders[] = "{$k} => {$v}";
        }
        if (count($orders) > 0) {
            $str .= ', "' . implode(', ', $orders) . '"';
        }
        if ($this->_limit !== null) {
            $str .= ', ' . $this->_limit;
        }
        if ($this->_offset !== null) {
            $str .= ', ' . $this->_offset;
        }
        return $str;
    }