From 014da73eedc2a68d671e43e66a9a79d403f76e2c Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 19 Sep 2012 11:17:32 -0400 Subject: [PATCH] heredoc sql --- airtime_mvc/application/models/StoredFile.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index c005243db..7254583dd 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -993,15 +993,18 @@ SQL; /** * * Enter description here ... - * @param $dir_id - if this is not provided, it returns all files with full path constructed. + * @param $dir_id - if this is not provided, it returns all files with full + * path constructed. */ public static function listAllFiles($dir_id=null, $all) { $con = Propel::getConnection(); - $sql = "SELECT filepath as fp" - ." FROM CC_FILES as f" - ." WHERE f.directory = :dir_id"; + $sql = <<