src/Ubiquity/controllers/rest/RestBaseController.php
public function _get($condition = "1=1", $include = false, $useCache = false) {
		try {
			$condition = $this->getCondition ( $condition );
			$include = $this->getInclude ( $include );
			$useCache = UString::isBooleanTrue ( $useCache );
			$datas = DAO::getAll ( $this->model, $condition, $include, null, $useCache );
			echo $this->_getResponseFormatter ()->get ( $datas );
		} catch ( \Exception $e ) {
			$this->_setResponseCode ( 500 );
			echo $this->_getResponseFormatter ()->formatException ( $e );
		}
	}
public function _get($condition = "1=1", $include = false, $useCache = false) {
		try {
			$condition = $this->getCondition ( $condition );
			$include = $this->getInclude ( $include );
			$useCache = UString::isBooleanTrue ( $useCache );
			$datas = DAO::getAll ( $this->model, $condition, $include, null, $useCache );
			echo $this->_getResponseFormatter ()->get ( $datas );
		} catch ( \Exception $e ) {
			$this->_setResponseCode ( 500 );
			echo $this->_getResponseFormatter ()->formatException ( $e );
		}
	}
public function _get ( $ condition = "1=1" , $ include = false , $ useCache = false ) { try { $ condition = $ this -> getCondition ( $ condition ) ; $ include = $ this -> getInclude ( $ include ) ; $ useCache = UString :: isBooleanTrue ( $ useCache ) ; $ datas = DAO :: getAll ( $ this -> model , $ condition , $ include , null , $ useCache ) ; echo $ this -> _getResponseFormatter ( ) -> get ( $ datas ) ; } catch ( \ Exception $ e ) { $ this -> _setResponseCode ( 500 ) ; echo $ this -> _getResponseFormatter ( ) -> formatException ( $ e ) ; } }
Returns a list of objects from the server.

@param string $condition the sql Where part
@param boolean|string $include if true, loads associate members with associations, if string, example : client.*,commands
@param boolean $useCache
Returns a list of objects from the server .