Reformatted sql to use heredocs

This commit is contained in:
Rudi Grinberg 2012-09-14 17:09:05 -04:00
parent f2b07e4a83
commit 7b1b271a2c
1 changed files with 8 additions and 5 deletions

View File

@ -335,11 +335,14 @@ class Application_Model_User
public static function getUserData($id)
{
$sql = "SELECT login, first_name, last_name, type, id, email, cell_phone, skype_contact, jabber_contact"
." FROM cc_subjs"
." WHERE id = :id";
return Application_Common_Database::prepareAndExecute($sql, array(":id" => $id), 'single');
$sql = <<<SQL
SELECT login, first_name, last_name, type, id, email, cell_phone, skype_contact,
jabber_contact
FROM cc_subjs
WHERE id = :id
SQL;
return Application_Common_Database::prepareAndExecute($sql, array(
":id" => $id), 'single');
}
public static function getCurrentUser()