Merge code from github.com to bitbucket.org 2014-06-20 12:20

This commit is contained in:
Julio Cesar Laura
2014-06-20 12:23:47 -04:00
7 changed files with 49 additions and 20 deletions

View File

@@ -22,6 +22,14 @@ class Applications
) {
$callback = isset($callback)? $callback : "stcCallback1001";
$dir = isset($dir)? $dir : "DESC";
if (isset($sort)) {
G::LoadClass('phpSqlParser');
$parser = new PHPSQLParser($sort);
$sort = $parser->parsed;
$sort = $sort[''][0];
}
$sort = isset($sort)? $sort : "";
$start = isset($start)? $start : "0";
$limit = isset($limit)? $limit : "25";
@@ -494,10 +502,10 @@ class Applications
//execute the query
$oDataset = AppCacheViewPeer::doSelectRS( $Criteria );
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next();
//g::pr($oDataset);
//g::pr($oDataset);
$result = array ();
$result['totalCount'] = $totalCount;
$rows = array ();