Exemplo n.º 1
0
 private static function getResultData($result, $singleColumn = false, $singleRow = false)
 {
     if ($singleColumn && $singleRow) {
         return SqlManager::getResultValue($result);
     }
     if ($singleRow) {
         return SqlManager::getResultRow($result);
     }
     if ($singleColumn) {
         return SqlManager::getResultColumn($result, 0);
     }
     return SqlManager::getResultRowsAssoc($result);
 }